I'm using Lubuntu LXQt desktop version 20.04, and everything was ok until installing NordVPN. during the using NordVPN, I have no issue with the connection. but when the laptop is idle for some time and when I back to browser it seems there is no connection. so I test it with:
ping 4.2.2.4
And I get this error:
ping sendmsg operation not permitted
Even I use sudo
or do login/logout
, just restarting entire the system could help me to back to the working network. obviously there is another issue. so:
What is the problem and how I can fix it?
NordVPN outputs:
$ nordvpn status
Status: Disconnected
$ nordvpn settings
Technology: OpenVPN
Protocol: UDP
Kill Switch: disabled
CyberSec: disabled
Obfuscate: disabled
Notify: enabled
Auto-connect: disabled
DNS: disabled
I realized that the Linux firewall block the NordVPN firewall and the NordVPN killswitch stop the connection, so I should stop the Linux firewall and re-run the NordVPN service and the connection will get back on track.
By using the following command:
ok I think I have solved this for me.. the issue was that with 20.04 the editing of etc/resolv.conf with the nordvpn alternate DNS does not work, it reverts to defaults. so following these instructions here
https://www.ricmedia.com/set-custom-dns-servers-on-ubuntu-18-or-20/#Set_DNS_servers_with_Netplan_Network_Manager_and_static_IP
I edit my the file to edit is etc/netplan/*.yml in my case only one file there as 01-network-manager-all.yaml .bak
now I have it set up as per above/below, and for some strange reason ubuntu is now helpfully putting my ethernet wired in as eth0 (I will try it on the other adapter later today). Ubuntu is however showing unmanaged in top right desktop wired status, but that is not affecting anything.
save file and then
and it all now works, those alt dns addresses are from
https://support.nordvpn.com/Connectivity/Troubleshooting/1088041672/Change-your-DNS-servers-on-Windows.htm
I disconnect the ethernet adapter from usb hub, and reconnect it, I get the nordvpn notification popup that it has reconnected, it survives the dns leak test at http://dnsleak.net - which is why I was setting alt dns in the first place.
ok, with excellent support from nordvpn, there is a new client. I can now disconnect from vpn
, change the usb hub (ie disconnect from ethernet,), reconnect a different hub, then reconnect via terminal nordvpn. it works.
sudo apt --purge autoremove nordvpn*
my nordvpn command is
where usxxx is your nominated server, you can get the best one from [https://nordvpn.com/servers/tools/][1]
This can happens sometimes if you disconnect from
nordvpn
but have not turn the killswitch off. To see if this is your problem: