{"repo":"kylemanna/docker-openvpn","free":true,"listed":false,"github":"https://github.com/kylemanna/docker-openvpn","clone":"git clone https://github.com/kylemanna/docker-openvpn.git","description":"🔒 OpenVPN server in a Docker container complete with an EasyRSA PKI CA","language":"Shell","stars":9087,"topics":["openvpn-server","docker-container","docker-openvpn","pki","docker","openvpn","easyrsa-pki"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"OpenVPN for Docker OpenVPN server in a Docker container complete with an EasyRSA PKI CA. Extensively tested on Digital Ocean $5/mo node and has a corresponding Digital Ocean Community Tutorial. Upstream Links Docker Registry @ kylemanna/openvpn GitHub @ kylemanna/docker-openvpn Quick Start Pick a name for the $OVPN DATA data volume container. It's recommended to use the ovpn-data- prefix to operate seamlessly with the reference systemd service. Users are encourage to replace example with a descriptive name of their choosing. OVPN DATA=\"ovpn-data-example\" Initialize the $OVPN DATA container that will hold the configuration files and certificates. The container will prompt for a passphrase to protect the private key used by the newly generated certificate authority. docker volume create --name $OVPN DATA docker run -v $OVPN DATA:/etc/openvpn --rm kylemanna/openvpn ovpn genconfig -u udp://VPN.SERVERNAME.COM docker run -v $OVPN DATA:/etc/openvpn --rm -it kylemanna/openvpn ovpn initpki Start OpenVPN server process docker run -v $OVPN DATA:/etc/openvpn -d -p 1194:1194/udp --cap-add=NET ADMIN kylemanna/openvpn Generate a client certificate without a passphrase docker run -v $OVPN DATA:/etc/openvpn --rm -it kylemanna/openvpn easyrsa build-client-full CLIENTNAME nopass Retrieve the client configuration with embedded certificates docker run -v $OVPN DATA:/etc/openvpn --rm kylemanna/openvpn ovpn getclient CLIENTNAME CLIENTNAME.ovpn Next Steps More Reading Miscellaneous write-ups for adv","default_branch":null,"files":null,"tree":[],"storefront":"/r/kylemanna","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kylemanna/docker-openvpn/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}