OpenVPN is free, safe and easy to deploy
64
Deploy OpenVPN server
$ docker run -d -p 1194:1194/udp --name openvpn -h OpenVPN --cap-add=NET_ADMIN --device /dev/net/tun nhthai2005/openvpn:v2
To generate the ovpn profile for client:
$ docker exec -it openvpn bash
$ wget https://git.io/vpn -O openvpn-install.sh
$ ./openvpn-install.sh
$ cd /root/ && ls
Note: to make more secure, we should set the secret for ovpn profile by changing openvpn-install.sh script. Let delete nopass in the script before generating the ovpn profile for client.
To copy .ovpn file: suppose that you have just generated with shant.ovpn
$ docker cp openvpn:/root/shant.ovpn .
Edit .ovpn file with your ip (suppose that your ip is 192.168.99.120)
remote 192.168.99.120 1194
Installing OpenVPN client: https://openvpn.net/community-downloads/
Reference: https://www.cyberciti.biz/faq/howto-setup-openvpn-server-on-ubuntu-linux-14-04-or-16-04-lts/
Content type
Image
Digest
Size
85.8 MB
Last updated
about 5 years ago
docker pull nhthai2005/openvpn:v2