Revision [5173]
This is an old revision of OpenVPNDocker made by ZorrUno on 2020-02-09 07:58:51.
OpenVPNSetup with Docker
Using information from: https://hub.docker.com/r/linuxserver/openvpn-as/
Note this the web setup is non-free and allows two clients only (unless paid). OpenVPN itself is free however.
Get the container up
Use this docker-compose.yml
Put the right details for your mapped docker storage in the volumes section
version: "2" services: openvpn-as: image: linuxserver/openvpn-as container_name: openvpn-as cap_add: - NET_ADMIN environment: - TZ=Pacific/Auckland volumes: - /dockervolumes/openvpn-as:/config ports: - 943:943 - 9443:9443 - 1194:1194/udp restart: unless-stopped
run
docker-compose up -d
Do some port forwarding in your router
Forward to your server running docker. Note that 943 is the web interface - you will need to forward this and expose the this to the outside world to get the clients up and running, but can then turn it off.
Forward
1194:UDP
9443:UDP and TCP
943:TCP
--
CategoryMicrocontrol
CategoryHomeAutomation
CategoryRaspberryPi
CategoryLinux