jpetazzo/dockvpn — pull request #8 by ClashTheBunny (2014-06-06 11:03:15+00:00)
Title: EasyRSA Generation including environment variables to set parameters

Hi there,
I've been working on some improvements to dockvpn. There is a new master helper script call 'runDockVPN.sh'. It currently creates a volume only container, as suggested in:
http://docs.docker.io/use/working_with_volumes/
that containes the /etc/openvpn configuration files, so that they survive between runs.

In that directory is created an EasyRSA CA from the environment variables that you pass to it. (edit runDockVPN.sh)

The configuration files are compatible with:
TunnelBlick, NetworkManager, Android and iPhone OpenVPN connect, and anything else you can imagine, I'm sure.

It then starts up on the ports that you request and spits out the directory on the docker server where your config files are stored. Those can either be rsync'd with the command in the README or using docker's exporting of volumes.

Currently broken is the auto-hosting of the VPN config file because I no longer create the server pem like previously.

It may need some cleaning up, but it works on my amd64 and armel boxes as long as you are willing to rsync the ovpn config files down. This, after all is more of a security feature than a bug, but it may be harder to get the file on one's phone.

This is my first fully functioning Docker project, so thanks so much for a starting place!

Randall Mason