Description
Describe the problem
There are problems with netbird 0.25.5 in combination with NetworkManager 1.22.
The problem is: When netbird brings the wt0 device up, it assigns the listen port to the value in /etc/netbird/config.json usually 51820. Now, NetworkManager is triggered and recognizes a new wireguard device and it wants to configure it. The result is that it assigns a new, random port number to wt0. However, netbird is not aware of that change and so the other peers are not informed about the new port number. The result is that the wireguard connection isn't working at all.
To Reproduce
- Use netbird 0.25.5 and NetworkManager 1.22.
- Ensure NetworkManager and Netbird Service is started
- netbird up
- Get the wt0 listen port by entering "wg"
- Result: ListenPort is different than in
/etc/netbird/config.json
- Enter
netbird status -d
- Result: No Wireguard handshake for most peers
Expected behavior
wt0 Listen port should be the same as in /etc/netbird/config.json
Are you using NetBird Cloud?
yes
NetBird version
0.25.5
Additional context
Add any other context about the problem here.
Linux Kernel 5.4.193 with patches, out-of-tree wireguard module