restart of openvpn connection changes the namespace

Post Reply
puneet
OpenVpn Newbie
Posts: 9
Joined: Wed May 30, 2018 11:00 pm

restart of openvpn connection changes the namespace

Post by puneet » Thu May 31, 2018 10:54 pm

Hi,

I'm running openvpn client on Ubuntu 18.04
When I restart the openvpn connection from client side

Code: Select all

 sudo service openvpn restart
it changes the namespace entry on
cat /etc/resolv.conf
to
nameserver 127.0.0.53
regardless of what option I picked on server UI:
  • Do not alter clients' DNS server settings
  • or Have clients use the same DNS servers as the Access Server host
  • or even specified the specified the DNS IP under "Primary DNS Server"
anyone know what might be causing this issue (I'm not sure if its openvpn setting or ubuntu 18.04)...?

Thank you,
_Puneet

novaflash
I should be on the dev team.
Posts: 755
Joined: Fri Apr 13, 2012 8:43 pm

Re: restart of openvpn connection changes the namespace

Post by novaflash » Sat Jun 02, 2018 6:34 am

OpenVPN open source in Linux doesn't even touch the DNS settings unless you specifically add an up and/or down script to handle DNS servers pushed by the server. So from that alone, I'm pretty sure this issue has nothing to do with OpenVPN at all. Most likely, there is some sort of network manager program running in your Linux OS that notices changes to the network interfaces and based on that tries to manage and fix network settings for you.

puneet
OpenVpn Newbie
Posts: 9
Joined: Wed May 30, 2018 11:00 pm

Re: restart of openvpn connection changes the namespace

Post by puneet » Mon Jun 04, 2018 7:07 pm

Thank you for your reply. I understand but, not sure what's changing the DNS setting...
Therefore, I would like the OpenVPN to change the DNS setting, to my desired configuration.
I already configured it on Server side. Do I also have to manually make changes to the client config file?

novaflash
I should be on the dev team.
Posts: 755
Joined: Fri Apr 13, 2012 8:43 pm

Re: restart of openvpn connection changes the namespace

Post by novaflash » Thu Jun 07, 2018 11:19 am


puneet
OpenVpn Newbie
Posts: 9
Joined: Wed May 30, 2018 11:00 pm

Re: restart of openvpn connection changes the namespace

Post by puneet » Thu Jun 07, 2018 8:07 pm

Thank you @novaflash I just resolved the Ubuntu 18.04 issue by changing the resolv.conf file. Link for reference...
https://askubuntu.com/questions/973017/ ... orkmanager

Post Reply