docker-compose-openvpn

Based on kylemanna/docker-openvpn

Screencast on YouTube

You can see this repo in action (from 4:16 to 6:10).

Start

Generate configs

Run

make genconfig host=vpn.example.com

And then

make initpki

Please save entered password. You'll need it for certificate management.

Generate new cert

make new username=example

Copy client_configs/example.ovpn to your local machine and use them in OpenVPN client.

Start VPN server

make up

Additional management commands

Stop VPN server

make stop

View the status

make ps

Revoke cert

make revoke username=example