Internet connection is not working when VPN disconnected (vpn kill swith is not on)

with Ubuntu 17.10, my internet get disconnected when i switch off the VPN from PIA. So, if I can not NOT use vpn. I already re-install the application as you suggested to another user.

Comments

  • "internet get disconnected"

    so you're getting "no route from host" when you test with "ping 8.8.4.4" or is there a nonsense DNS config in your /etc/resolv.conf file?
  • it's a dns problem...
    i received ping with VPN connected or disconnected. But the resolv.conf change when I'm connected to the VPN
    nameserver 209.222.18.222
    nameserver 209.222.18.218
    Or disconnected
    nameserver 127.0.1.1



  • ok so same problem as me

    nameserver 209.222.18.222
    nameserver 209.222.18.218

    on VPN disconnect
    # Generated by NetworkManager
    nameserver 127.0.1.1
  • These seem to be working normally but for some reason NetworkManager would no longer be responding properly to its local DNS cache? That's the correct resolv.conf file to have upon disconnection, which PIA just restores from a backup copy it made before connecting so it's not like it would put the wrong info back in...

    One possible solution would be to try with "nameserver 127.0.0.53" instead as 17.10 is supposed to use resolved by default instead of dnsmasq. If that works it would be a simple matter of telling NetworkManager to use resolved instead of dnsmasq.

    That's a pretty weird one because my Ubuntu 17.10 machine is default goto one to test anything PIA so I've done a whole bunch of connect/disconnect cycles on it and I haven't had any issues with it. I did have a very similar issue upgrading from 17.04 somehow with the exact same non-functional resolv.conf with 127.0.1.1 however, so that could very well be an Ubuntu bug...
  • thanks for the info and suggestions Max-P, will look into it further tomorrow 
  • Working ok now after editing /etc/NetworkManager/NetworkManager.conf and adding dns=dnsmasq then restarting with sudo systemctl restart NetworkManager
Sign In or Register to comment.