Open lfarkas opened 4 months ago
Hi @lfarkas, please stick to the template.
How did you notice it's not added, what does ip route show table netbird
say? Can you provide netbird status -dA
?
ok it's a fedora 40 (latest) fully updated (of course with nft) netbird status -d show remote as connected (but i already rebooted)
# sudo ip route show table netbird
Error: argument "netbird" is wrong: table id value is invalid
but
# sudo ip route show table all
192.168.0.0/16 dev wt0 table 7120
default via 10.6.6.1 dev enp6s0 proto dhcp src 10.6.6.2 metric 100
10.6.6.0/24 dev enp6s0 proto kernel scope link src 10.6.6.2 metric 100
100.76.0.0/16 dev wt0 proto kernel scope link src 100.76.24.179
local 10.6.6.2 dev enp6s0 table local proto kernel scope host src 10.6.6.2
broadcast 10.6.6.255 dev enp6s0 table local proto kernel scope link src 10.6.6.2
local 100.76.24.179 dev wt0 table local proto kernel scope host src 100.76.24.179
broadcast 100.76.255.255 dev wt0 table local proto kernel scope link src 100.76.24.179
local 127.0.0.0/8 dev lo table local proto kernel scope host src 127.0.0.1
local 127.0.0.1 dev lo table local proto kernel scope host src 127.0.0.1
broadcast 127.255.255.255 dev lo table local proto kernel scope link src 127.0.0.1
fe80::/64 dev vpn0 proto kernel metric 256 linkdown pref medium
fe80::/64 dev enp6s0 proto kernel metric 1024 pref medium
local ::1 dev lo table local proto kernel metric 0 pref medium
local fe80::b62e:99ff:feab:e0d8 dev enp6s0 table local proto kernel metric 0 pref medium
local fe80::f248:5ca1:cd35:3b74 dev vpn0 table local proto kernel metric 0 pref medium
multicast ff00::/8 dev enp6s0 table local proto kernel metric 256 pref medium
multicast ff00::/8 dev vpn0 table local proto kernel metric 256 linkdown pref medium
multicast ff00::/8 dev wt0 table local proto kernel metric 256 pref medium
but after reboot
# sudo ip route show table all
10.20.0.0/24 dev wt0 table 7120
10.30.0.0/24 dev wt0 table 7120
192.168.0.0/16 dev wt0 table 7120
default via 10.6.6.1 dev enp6s0 proto dhcp src 10.6.6.2 metric 100
10.6.6.0/24 dev enp6s0 proto kernel scope link src 10.6.6.2 metric 100
100.76.0.0/16 dev wt0 proto kernel scope link src 100.76.24.179
local 10.6.6.2 dev enp6s0 table local proto kernel scope host src 10.6.6.2
broadcast 10.6.6.255 dev enp6s0 table local proto kernel scope link src 10.6.6.2
local 100.76.24.179 dev wt0 table local proto kernel scope host src 100.76.24.179
broadcast 100.76.255.255 dev wt0 table local proto kernel scope link src 100.76.24.179
local 127.0.0.0/8 dev lo table local proto kernel scope host src 127.0.0.1
local 127.0.0.1 dev lo table local proto kernel scope host src 127.0.0.1
broadcast 127.255.255.255 dev lo table local proto kernel scope link src 127.0.0.1
fe80::/64 dev vpn0 proto kernel metric 256 linkdown pref medium
fe80::/64 dev enp6s0 proto kernel metric 1024 pref medium
local ::1 dev lo table local proto kernel metric 0 pref medium
local fe80::b62e:99ff:feab:e0d8 dev enp6s0 table local proto kernel metric 0 pref medium
local fe80::f248:5ca1:cd35:3b74 dev vpn0 table local proto kernel metric 0 pref medium
multicast ff00::/8 dev enp6s0 table local proto kernel metric 256 pref medium
multicast ff00::/8 dev vpn0 table local proto kernel metric 256 linkdown pref medium
multicast ff00::/8 dev wt0 table local proto kernel metric 256 pref medium
after restart remote netbird and reboot m y machine it's start to working... but would be nice what to look into when not working. it's usually goes wrong after netbird version update
Can you check if the affected route is Selected
in
netbird routes list
when the issue happens?
I seem to have exactly the same issue, on a different operating system (NixOS). I'm using client version 0.27.4. I can ping all peers but cannot ping anything in the attached network on the routing peer.
netbird routes list
shows:
Available Routes:
- ID: home
Network: 192.168.1.0/24
Status: Selected
ip route
shows:
default via 192.168.178.1 dev lan1 proto dhcp src 192.168.178.77 metric 10 # just my normal network, not the routed network!
100.73.0.0/16 dev wt-home proto kernel scope link src 100.73.111.47
There is also no routing table named netbird, but ip route show all
shows the desired route. I can't get it to work by rebooting.
I did some investigating today, and as it turns out I was searching in the wrong place after all. The routes on all clients are set correctly, the table just seems to not have the name netbird
. The issue for me was actually in the nftables configuration of the routing peer.
Since netbird already adds its own table to nftables I blindly assumed that this is all that would be needed, but the other forward filter in my firewall (not the one by netbird) of course still dropped the forwarded packets. As @lfarkas configuration started working after a restart my guess would be that this has also been related to some invalid firewall state or network configuration that got reset with a restart.
@oddlama you might be hitting https://github.com/netbirdio/netbird/issues/2023 (I noticed you were commenting on my NixOS PR for running multiple Netbird instances).
Oh true, that could be related! Thanks for the pointer!
even after restart my client i can see this is in the log:
at 12:47:11: "network 10.30.0.0/24 has not been assigned a routing peer" is vaild but at 12:47:17 while listed:
the routing rule never added....