OpenVPN with a simple init process inside a docker container.
This image is available on Docker Hub.
Make a directory for OpenVPN configs. Start a docker container and mount configs directory as a volume.
mkdir vpn
cd vpn
docker run --detach \
--privileged \
--restart unless-stopped \
--publish 1194:1194/udp \
--volume $(pwd):/etc/openvpn \
--name openvpn \
tetafro/openvpn
vpn/client.conf, generated on a previous step, is a full config with
key, certificate and external address. Just take it to your client machine
and run with a client app.
Ubuntu example:
scp your-vpn-server:/home/user/vpn/client.conf .
sudo apt install openvpn
sudo openvpn --config client.conf
Content type
Image
Digest
Size
55.4 MB
Last updated
over 5 years ago
docker pull tetafro/openvpn