Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nordpy kills network connection in Ubuntu 22.04 #55

Open
lisavani opened this issue Apr 21, 2022 · 5 comments
Open

nordpy kills network connection in Ubuntu 22.04 #55

lisavani opened this issue Apr 21, 2022 · 5 comments

Comments

@lisavani
Copy link

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
Copy link
Owner

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

@lisavani
Copy link
Author

lisavani commented Jul 5, 2022

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
Copy link
Owner

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

@mmmmmmbeer
Copy link

@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
Copy link
Author

lisavani commented Oct 5, 2022

@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 :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants