Openvpn in a Docker container
Image from @ kylemanna/openvpn
- build docker image
docker-compose build
- create config files and set ip server
docker-compose run --rm openvpn /bin/bash /conf/init.sh
- run container
docker-compose up
- add client
docker-compose run --rm openvpn /bin/bash /conf/gen_client.sh
Cilent file at ./openvpn-data/ovpn/CLIENTNAME.ovpn