Closed lfarkas closed 10 months ago
The PR #945 fixes it and it will be available in the next release.
i already reconfigure all of our networks so i can't test it now. but let's assume working if not i'll write a new issue.
this is not working again in the latest release netbird-0.24.2-1.x86_64. i'm just now connected to a wifi network where the local ip address is:
wlo1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.185 netmask 255.255.255.0 broadcast 192.168.0.255
ad the same time one of my network which should have to be routed is:
192.168.0.0/16
so the peer's route should have to be added, but in the log i can see this:
2023-10-28T11:17:58+02:00 WARN client/internal/routemanager/client.go:119: the network 192.168.0.0/16 has not been assigned a routing peer as no peers from the list [FfiyZKMquYILabBxOquw/jXEuTjhBq6tUvBEPdV3ckY= hCDjKQBW9TBwsZigTRXxvVzpAYE+ZqDHBol4sOSUMl0=] are currently connected
imho it's the same bug as earlier so it seems still not solved.
Hello @lfarkas can you run the client with debug logs?
You can do that by running the following commands:
sudo netbird service stop
sudo netbird up -F -l debug | tee /tmp/netbird.debug.log
After running for 60s you can share the logs for us to check them.
do you need any further info?
Hello, @lfarkas the issue happened because the default gateway of your local network is 192.168.0.1, which is part of the 192.168.0.0/16
network. See the log event below:
2023-10-30T18:46:59+01:00 WARN client/internal/routemanager/systemops_nonandroid.go:24: skipping adding a new route for network 192.168.0.0/16 because it overlaps with the default gateway: 192.168.0.1
This shouldn't happen as the local network is smaller. We will update the logic to prevent this case. Thanks for the logs.
work in 24.3
The network routes is a very nice feature in netbird, but one of my current topology it's not working. I've 2 network, let it be office and home:
I've one client (actually more but let's make it more simple) in each network and i'd like route through these client from each network to the other. This normally works (eg with openvpn) and it's works even with netbird, BUT do not work if i set both routes in https://app.netbird.io/routes and try to advertise them through netbird.
The reason is simple from the log:
it seems that netbird see something similar route in the local routing table and skip this, which is a bug. in linux (any any other os) the routing decision is working in a way that always try to choose the smallest network which contains the given destination. so in this case there can be 2 orverlapping route in the routing table the os always choose the smallest one eg. with this routing table:
the host 192.168.253.2 should have to route through wt0.
The strange thing is that the opposite works in the other side of the network. ie. routeing from home to office has this routing table:
and in the log:
so when the remote is overlapping BUT larger then the routing rule is added.