Currently, docker-install script supports only Ubuntu.
With reference to https://hub.docker.com/r/kylemanna/openvpn/
- Specify IP address of your host. Port might be anything as long as it's free and below 65535. Use udp protocol for gaming/streaming and tcp for downloading.
- Starts docker container and generates vpnconfig.ovpn file in the current folder. Config is a text file, so you can just copy and paste it to a new file on your OS.
- Config can be used with OpenVPN app for Windows, iOS or Android.
./install-docker.sh
./install-vpn.sh PROTOCOL IP PORT
Example:
./install-vpn.sh tcp 84.252.131.56 1194
If you need to run your vpn server again after your server restarted with the same IP, and it was already installed before with the script above just run:
./run-vpn.sh PROTOCOL PORT
If the IP of the server has changed after restart, run:
./reset-vpn.sh PROTOCOL IP PORT
Configs will be recreated, so you need to reload them to your clients again.