This image enables you with some preparation to run openvpn within a docker container.
This image can be considered a base image for other openvpn based images...
- run the
- download the ovpn config files from your vpn provider (see your vpn provider website)
- place the (extracted) files in a folder called
- create a directory called
- create a file called
credentials/openvpn-credentials.txtand put your username and password in there from your vpn provider each on a line
- run the following command:
docker run -it --privileged --name vpn --cap-add=NET_ADMIN --device=/dev/net/tun --rm --dns 126.96.36.199 --dns 188.8.131.52 -v $(pwd)/config:/config -v $(pwd)/credentials:/credentials ivonet/openvpn
If something goes wrong you hopefully get a specific message telling what to fix ;-)