dockerfiles/openvpn
Marc Cornellà 7ac4881609 Use `apk --no-cache' on alpine images (#144)
This enables us to remove the following patterns that required
a `rm -rf /var/cache/apk`:

- `apk update`
- `apk add --update`
- `apk add --update-cache`

Supported since alpine 3.3.
2016-06-06 03:40:20 +00:00
..
docker-compose.yml Run OpenVPN in a container. Because. 2015-10-29 20:27:10 -07:00
Dockerfile Use `apk --no-cache' on alpine images (#144) 2016-06-06 03:40:20 +00:00
README.md Run OpenVPN in a container. Because. 2015-10-29 20:27:10 -07:00

LMCTVPNFY

Let Me Containerize That VPN For You

How to use this?

Drop your OpenVPN configuration file in this directory.

Let's pretend that it's called hacktheplanet.ovpn.

Then all you have to do is to run:

docker-compose run vpn hacktheplanet.ovpn

If you need a password (because your OpenVPN configuration specifies auth-user-pass) you will be prompted for it.

If the VPN server pushes routes and so forth, they will be added to your machine, because the Compose file specifies net: host so the container runs within the hosts namespace.

If you don't need to specify a password, you can use docker-compose run -d vpn hacktheplanet.ovpn to start the container in the background.

If you OpenVPN configuration needs extra files (certificates etc) you can drop them in this directory too.

Why?

Because we're the containerati and we like when things are neatly arranged in their boxes.