Joentje / nordvpn-proxy

Use NordVPN in your Docker stack
141 stars 53 forks source link

Custom DNS IP's aren't used in OpenVPN #62

Closed matt-laird closed 3 years ago

matt-laird commented 3 years ago

For example, used Cloudflare resolvers: Screenshot 2021-04-23 232417 OpenVPN gets the default NordVPN DNS resolvers: Screenshot 2021-04-23 232301

Joentje commented 3 years ago

Thanks for reporting. Somehow this look indeed enforced to the Nordvpn DNS. Need to find some time to take a look :)

matt-laird commented 3 years ago

Did some digging, seems you need to add some logic that appends the DNS options in the start command for OpenVPN. Arguments to add would be something like this: openvpn --push "dhcp-option DNS 1.1.1.1" reference:

matt-laird commented 3 years ago

Closing this off as I better understand the OpenVPN server and client lifecycle now. This is not an issue, the OpenVPN client gets those settings pushed to it from the server and is forced to abide by those settings.