netbirdio / netbird

Connect your devices into a secure WireGuard®-based overlay network with SSO, MFA and granular access controls.
https://netbird.io
BSD 3-Clause "New" or "Revised" License
11.25k stars 517 forks source link

Ubuntu Desktop does not track Network Manager status conflict with Netbird Daemon #2817

Open JonTheNiceGuy opened 3 weeks ago

JonTheNiceGuy commented 3 weeks ago

Describe the problem

In Ubuntu Desktop, when you establish a connection to the Netbird Mesh it shows "wt0" in the VPN Quick Settings. Clicking on that will disconnect the node from the mesh, but the connection in the Netbird Daemon shows as still connected, and the wt0 interface is still present when you execute ip -br a

To Reproduce

Steps to reproduce the behavior:

  1. Perform fresh install of Ubuntu 24.04 (other version may work as well)
  2. Setup netbird using curl -fsSL https://pkgs.netbird.io/install.sh | sh && netbird up --admin-url https://example.org:443 --management-url https://api.example.org:443 --setup-key $SETUPKEY
  3. Confirm the mesh is up with netbird status (looking for Management: Connected and Signal: Connected) and ip -br a (looking for wt0 UNKNOWN 100.64.0.0/16)
  4. Confirm that Network Manager believes the mesh is up with nmcli con show (looking for wt0)
  5. Run nmcli con down wt0
  6. Confirm the mesh is still considered "up" with netbird status (looking for Management: Connected and Signal: Connected) and ip -br a (looking for wt0 UNKNOWN - note that the IP address has disappeared)
  7. Note that Network Manager believes the mesh is down with nmcli con down (wt0 has disappeared)
  8. Run netbird down
  9. Confirm the mesh is considered "down" with netbird status (looking for Management: Disconnected and Signal: Disconnected) and ip -br a (wt0 has disappeared)
  10. Run netbird up
  11. Confirm the mesh is up with netbird status (looking for Management: Connected and Signal: Connected) and ip -br a (looking for wt0 UNKNOWN 100.64.0.0/16)
  12. Confirm that Network Manager believes the mesh is up with nmcli con show (looking for wt0)

Expected behavior

If nmcli or the quick settings tile change the state of the connection in Network Manager, reflect the change of state in the Netbird daemon

Are you using NetBird Cloud?

Self hosted

NetBird version

netbird version: 0.30.3

NetBird status -dA output:

Omitted, happy to provide if further diagnosis suggests it is needed.

Do you face any (non-mobile) client issues?

Omitted, happy to provide if further diagnosis suggests it is needed.

Screenshots

Screencast from 2024-10-30 22-27-12.webm

Additional context

Initially raised in Slack - recommended to raise here.

mgarces commented 3 weeks ago

hi @JonTheNiceGuy thank you for reporting this; let me try to replicate it on my side