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

system76-nm-restart restart NetworkManager causing inconsistent vpn interface state #298

Open
cavedon opened this issue Jul 25, 2024 · 0 comments

Comments

@cavedon
Copy link

cavedon commented Jul 25, 2024

Distribution (run cat /etc/os-release):

 PRETTY_NAME="Ubuntu 22.04.4 LTS"

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

system76-driver:
  Installed: 20.04.92~1719871568~22.04~efacd2f~dev
  Candidate: 20.04.92~1719871568~22.04~efacd2f~dev
  Version table:
 *** 20.04.92~1719871568~22.04~efacd2f~dev 1001
       1001 http://ppa.launchpad.net/system76-dev/stable/ubuntu jammy/main amd64 Packages
       1001 http://ppa.launchpad.net/system76-dev/stable/ubuntu jammy/main i386 Packages
        100 /var/lib/dpkg/status

Issue/Bug Description:
Upon resume from sleep, /lib/systemd/system-sleep/system76-nm-restart will restart NetworkManger, causing some interfaces to be left in an inconsistent state.

Steps to reproduce (if you know):

  1. Connect to a VPN using NetworkManager and openconnect.
  2. Send to system to sleep
  3. Resume from sleep
  4. The VPN will be disconnected, but the vpn0 interface will still be up with the old IP address assigned
  5. Connect to the VPN again
  6. Now the vpn0 interface will have two IP addresses and routing will be broken

The issue is caused by restarting NetworkManger while it is recovering from a sleep status.

Expected behavior:
Do not restart NetworkManager.

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

1 participant