How to Prevent OpenVPN3 from Updating resolv.conf #267
-
Hello, I'm experiencing an issue with OpenVPN3 where it automatically updates the resolv.conf file on my system, which causes conflicts with my existing DNS settings. I've tried several methods to prevent OpenVPN3 from modifying the resolv.conf file, including: Adding custom scripts with the up and down options in the configuration file. Is there a recommended way to prevent OpenVPN3 from modifying the DNS settings or a specific method that I might have overlooked? Any help or suggestions would be greatly appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Which version of OpenVPN 3 Linux do you run? And which distro are you on? As of
See the With that done, to enable using
However, if |
Beta Was this translation helpful? Give feedback.
-
Thank you David, work like a charm ! |
Beta Was this translation helpful? Give feedback.
Which version of OpenVPN 3 Linux do you run? And which distro are you on? As of
v22_dev
andv23
, this should definitely be possible to do easily by this command:See the
openvpn3-admin-netcfg-service
man page for details. I believe this works also onv20
andv21
, but I encourage you to upgrade to the latestv23
release regardless.With that done, to enable using
systemd-resolved
, you need this command line:However, if
systemd-resolved
is not enabled by default on your system - you need to ensure that service is configured and started properly without a VPN con…