morpheusthewhite / nordpy

A gui application to connect automatically to the recommended NordVPN server
GNU General Public License v3.0
105 stars 16 forks source link

nordpy kills network connection in Ubuntu 22.04 #55

Open lisavani opened 2 years ago

lisavani commented 2 years ago

Hello Morpheus,

since the update of ubuntu to 22.04 the default network connection does not come alive after ending nordpy. The only way to revive the network is a total reboot. I have experienced this in Ubuntu standard, Mate and Budgie, so I assume it happens in the other flavors as well. I hope you can and will do something to fix it because nordpy does make a very nice addition to nordvpn.

Kind regards, Lisa

morpheusthewhite commented 2 years ago

Could you try to run the uninstall.sh script and then reinstall nordpy?

lisavani commented 2 years ago

Hi, that is what I have been doing several times in different Ubuntu flavors. I also tried your nordpy on clean installs. The result is the same in all cases: no network after quitting the vpn. reboot required to get the network back.

Kind regards, Lisa

morpheusthewhite commented 2 years ago

Can you start nordpy gui from command line, connect+disconnect and paste the logs here?

mmmmmmbeer commented 2 years ago

@lisavani Try changing killswitch=True to killswitch=False in bin/vpn_util/openvpn.py, line 25.

I had this issue on Fedora 36 (which, like 22.04, also uses nftables). The killswitch function adds nft rules but does not clean them up when the vpn is disconnected.

If you need the killswitch functionality, you could backup your ruleset before connecting, then flush and restore after disconnecting:

Backup ruleset before connecting: sudo nft list ruleset >> backup.nft

Flush and restore ruleset after disconnecting: sudo nft flush ruleset && sudo nft -f backup.nft

Ideally, the program would handle this...perhaps if I find more time and energy, I'll work on a pull request :D

lisavani commented 2 years ago

@lisavani Try changing killswitch=True to killswitch=False in bin/vpn_util/openvpn.py, line 25.

@mmmmmmbeer That works. Thank you very much ! I agree that the program should handle this but that's up to Morpheus. He now knows what to do thanks to you :-)