openvpn-client
openvpn-client copied to clipboard
Initial setup help - yes, I read the guide
I'm technical but total noob to docker and OpenVPN ... appreciate any help you can provide!
Read the guide here a few times... https://registry.hub.docker.com/r/dperson/openvpn-client/
I have 4 existing/running containers with Radarr, Sonarr, Jackett, Deluge... all bridged to LAN as default, nothing special. I'd like to get a VPN running and route those through them.
Questions:
- Where do I place the OPVN file?
- Other than the OVPN, anything else for the VPN to connect/work? I use Windscribe
- I found the below compose file someone else is using. How do I mod it to work for me?
:: Synology folders... ${ROOT}\docker\CONTAINER_NAME is mapped to /config for each container :: my LAN is 192.168.2.0 :: does the /dev/net folder get auto-created? or do I need to create it via script (attached) as several of the Synology how-to sites explain? tun.sh.txt
` services: vpn: container_name: vpn image: dperson/openvpn-client:latest cap_add:
- NET_ADMIN # required to modify network interfaces restart: unless-stopped volumes:
- /dev/net:/dev/net:z # tun device
- ${ROOT}/data/config/vpn:/vpn # OpenVPN configuration security_opt:
- label:disable ports:
- 7878:7878 # radarr
- 8989:8989 # sonarr
- 9117:9117 # Jackett
- 8112:8112 # Deluge web UI
- 58846:58846 # Deluge bittorrent daemon command: "-r 192.168.1.0/24" # route local network traffic `
@Ltek did you ever figure out where to put the ovpn file?
It is long time since this question was initially posted but if anyone is still looking for answers, please check this article: How to secure containers traffic using VPN?
There is also a YouTube vide explaining this in here