Sign inSign up

tetafro/openvpn

By tetafro

Updated over 5 years ago

OpenVPN as a docker container

Image
0

256

tetafro/openvpn repository overview

Docker OpenVPN

Release

OpenVPN with a simple init process inside a docker container.

This image is available on Docker Hub.

Server

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

Client

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

Original project

Tag summary

Content type

Image

Digest

Size

55.4 MB

Last updated

over 5 years ago

docker pull tetafro/openvpn