Skip to content

Instantly share code, notes, and snippets.

@rahulvramesh
Created March 4, 2019 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulvramesh/f93e6c9893620924bcd3fce108040f83 to your computer and use it in GitHub Desktop.
Save rahulvramesh/f93e6c9893620924bcd3fce108040f83 to your computer and use it in GitHub Desktop.
docker volume create - name $OVPN_DATA
docker run -v $OVPN_DATA:/etc/openvpn - log-driver=none - rm kylemanna/openvpn ovpn_genconfig -u udp://VPN.SERVERNAME.COM
#udp://VPN.SERVERNAME.COM` replace the value with your domain or IP
docker run -v $OVPN_DATA:/etc/openvpn - log-driver=none - rm -it kylemanna/openvpn ovpn_initpki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment