Description:
Source: https://github.com/jpetazzo/dockvpn
NOTE: The keys are generate on EACH reboot and the private key is used in both the server and the client for simplicity reasons. If someone obtains your client information, they will be able to access the server and perhaps spoof a session. It's recommended that you find an alternative way of deploying a VPN server if you are keen to have 100% security.
If you wish to re-generate the certificates, simply restart your Docker container.
Running:
Start the openvpn server:
docker run -d --privileged -p 1194:1194/udp -p 443:443/tcp --name vpn cdrage/openvpn-server
Create a http server to termporarily download the configuration:
docker run --rm -ti -p 8080:8080 --volumes-from vpn cdrage/openvpn-server serveconfig
Download the configuration for your client to use:
wget https://IP:8080/ --no-check-certificate -O config.ovpn
Content type
Image
Digest
Size
85.7 MB
Last updated
almost 7 years ago
docker pull cdrage/openvpn-server