Skip to content

How to Prevent OpenVPN3 from Updating resolv.conf #267

Closed Answered by dsommers
gponty asked this question in Q&A - Our support arena
Discussion options

You must be logged in to vote

Which version of OpenVPN 3 Linux do you run? And which distro are you on? As of v22_dev and v23, this should definitely be possible to do easily by this command:

 # openvpn3-admin netcfg-service --config-unset resolv-conf

See the openvpn3-admin-netcfg-service man page for details. I believe this works also on v20 and v21, but I encourage you to upgrade to the latest v23 release regardless.

With that done, to enable using systemd-resolved, you need this command line:

 # openvpn3-admin netcfg-service --config-set systemd-resolved true

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…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gponty
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants