Public Repository

Last pushed: 9 months ago
Short Description
OpenVPN server with easy-rsa and a custom configuration file.
Full Description

Supported tags and respective Dockerfile links

Start an OpenVPN server container

The following command will generate the ca, cert, dh and key files necessary for the OpenVPN server with easy-rsa and then it will start the OpenVPN server in the background:

docker run -d --name=openvpn-server --cap-add=NET_ADMIN --device=/dev/net/tun -p 1194:1194/udp debianivanov/openvpn:2.3.4

The options --cap-add=NET_ADMIN and --device=/dev/net/tun are used by the running OpenVPN server container to communicate with the tun interface of the host.

Generate OpenVPN client certificates

The following command will generate the ca, cert and key files necessary for the OpenVPN client configuration with easy-rsa:

docker exec -d openvpn-server /usr/local/bin/openvpn-build-key.sh client-certificate-common-name

You can find the generated client certificates in /var/lib/docker/volumes/<volume-name>/_data/easy-rsa/keys/.

Docker Pull Command
Owner
debianivanov