dperson / openvpn-client

GNU Affero General Public License v3.0
1.05k stars 585 forks source link

Using OpenVPN to Update Docker Host #415

Open MeCJay12 opened 1 year ago

MeCJay12 commented 1 year ago

Is this possible? I'm trying to use this container as an easier, more uniform way of deploying OpenVPN on my network. Using host networking, the tunnel creation and routing are working beautifully. The last piece for my deployment is to get the docker host's DNS settings to update with the container. I can see that inside of the container, DNS is working as expected. I tried the -d flag but that didn't help. Thanks in advance!

Docker run command:

docker run -d \
    --restart=always \
    --network host \
    --name VPN \
    --cap-add=NET_ADMIN \
    -v /mnt/Docker/VPN/:/vpn \
    -e TZ=America/New_York \
    dperson/openvpn-client