[GH-ISSUE #1900] macOS client does not add routes properly #3515

Open
opened 2026-08-05 00:52:49 -04:00 by saavagebueno · 0 comments
Owner

Originally created by @damlys on GitHub (Apr 29, 2024).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/1900

Describe the problem

It seems that macOS client does not add routes properly. Some of the traffic is not routed by NetBird peers.

To Reproduce

(IP addresses were modified for this example)

Steps to reproduce the behavior:

  1. Add new docker peer
  2. Add following routes 34.116.146.33/32, 34.116.162.131/32, 34.118.106.37/32, 34.118.116.195/32 (they are internet adesses) and set routing peer to use previous added one
  3. Observe /var/log/netbird/client.log file
    --- CONNECT
    
    2024-04-29T15:08:52+02:00 WARN client/internal/routemanager/client.go:153: the network 34.118.106.37/32 has not been assigned a routing peer as no peers from the list [KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=] are currently connected
    2024-04-29T15:08:52+02:00 INFO client/internal/dns/host_darwin.go:157: added 1 search domains to the state. Domain list: netbird.selfhosted
    2024-04-29T15:08:52+02:00 INFO client/internal/acl/manager.go:52: ACL rules processed in: 108µs, total rules count: 2
    2024-04-29T15:09:08+02:00 ERRO util/net/dialer_generic.go:64: Failed to call dialer hooks: failed to resolve address :51820: lookup : no such host
    2024-04-29T15:09:08+02:00 ERRO client/internal/peer/conn.go:444: Before add peer hook failed: adding route reference: failed to add route for prefix 127.0.0.1/32: route not allowed
    2024-04-29T15:09:08+02:00 INFO client/internal/peer/conn.go:388: connected to peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=, endpoint address: 127.0.0.1:53675
    2024-04-29T15:09:08+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cokalj9mjugs73f8kfbg with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.964561 for network 34.118.116.195/32
    2024-04-29T15:09:08+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cojqhj1mjugs73f8kf7g with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.964561 for network 34.116.146.33/32
    2024-04-29T15:09:08+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cojqhopmjugs73f8kf80 with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.964561 for network 34.118.106.37/32
    2024-04-29T15:09:08+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cokal7pmjugs73f8kfb0 with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.964561 for network 34.116.162.131/32
    
    --- DISCONNECT
    
    2024-04-29T15:16:45+02:00 ERRO client/internal/routemanager/client.go:318: Couldn't remove route from peer and system for network 34.116.146.33/32: remove route: get peer state: peer not found
    2024-04-29T15:16:45+02:00 ERRO client/internal/routemanager/client.go:318: Couldn't remove route from peer and system for network 34.116.162.131/32: remove route: get peer state: peer not found
    2024-04-29T15:16:45+02:00 ERRO client/internal/routemanager/client.go:318: Couldn't remove route from peer and system for network 34.118.116.195/32: remove route: get peer state: peer not found
    2024-04-29T15:16:45+02:00 ERRO client/internal/routemanager/client.go:318: Couldn't remove route from peer and system for network 34.118.106.37/32: remove route: get peer state: peer not found
    2024-04-29T15:16:46+02:00 INFO client/internal/dns/host_darwin.go:120: removing search domains from system
    2024-04-29T15:16:46+02:00 INFO client/internal/routemanager/manager.go:112: Routing cleanup complete
    2024-04-29T15:16:46+02:00 INFO client/internal/engine.go:224: stopped Netbird Engine
    2024-04-29T15:16:46+02:00 INFO client/internal/connect.go:261: stopped NetBird client
    
    --- CONNECT
    
    2024-04-29T15:17:12+02:00 INFO client/internal/connect.go:104: starting NetBird client version 0.27.3 on darwin/arm64
    2024-04-29T15:17:14+02:00 INFO client/internal/routemanager/manager.go:88: Routing setup complete
    2024-04-29T15:17:14+02:00 INFO signal/client/grpc.go:158: connected to the Signal Service stream
    2024-04-29T15:17:14+02:00 INFO client/internal/connect.go:247: Netbird engine started, my IP is: 100.64.240.231/16
    2024-04-29T15:17:14+02:00 INFO management/client/grpc.go:147: connected to the Management Service stream
    2024-04-29T15:17:14+02:00 WARN client/internal/engine.go:507: running SSH server is not permitted
    2024-04-29T15:17:14+02:00 WARN client/internal/routemanager/client.go:153: the network 34.118.106.37/32 has not been assigned a routing peer as no peers from the list [KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=] are currently connected
    2024-04-29T15:17:14+02:00 WARN client/internal/routemanager/client.go:153: the network 34.118.116.195/32 has not been assigned a routing peer as no peers from the list [KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=] are currently connected
    2024-04-29T15:17:14+02:00 WARN client/internal/routemanager/client.go:153: the network 34.116.162.131/32 has not been assigned a routing peer as no peers from the list [KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=] are currently connected
    2024-04-29T15:17:14+02:00 WARN client/internal/routemanager/client.go:153: the network 34.116.146.33/32 has not been assigned a routing peer as no peers from the list [KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=] are currently connected
    2024-04-29T15:17:14+02:00 INFO client/internal/dns/host_darwin.go:91: removing match domains from the system
    2024-04-29T15:17:14+02:00 INFO client/internal/dns/host_darwin.go:157: added 1 search domains to the state. Domain list: netbird.selfhosted
    2024-04-29T15:17:14+02:00 INFO client/internal/acl/manager.go:52: ACL rules processed in: 73.041µs, total rules count: 2
    2024-04-29T15:17:17+02:00 ERRO util/net/dialer_generic.go:64: Failed to call dialer hooks: failed to resolve address :51820: lookup : no such host
    2024-04-29T15:17:17+02:00 ERRO client/internal/peer/conn.go:444: Before add peer hook failed: adding route reference: failed to add route for prefix 127.0.0.1/32: route not allowed
    2024-04-29T15:17:17+02:00 INFO client/internal/peer/conn.go:388: connected to peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=, endpoint address: 127.0.0.1:60859
    2024-04-29T15:17:17+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cokal7pmjugs73f8kfb0 with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.983135 for network 34.116.162.131/32
    2024-04-29T15:17:17+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cojqhopmjugs73f8kf80 with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.983135 for network 34.118.106.37/32
    2024-04-29T15:17:17+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cokalj9mjugs73f8kfbg with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.983135 for network 34.118.116.195/32
    2024-04-29T15:17:17+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cojqhj1mjugs73f8kf7g with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.983135 for network 34.116.146.33/32
    
    --- DISCONNECT
    
    2024-04-29T15:17:45+02:00 ERRO client/internal/routemanager/client.go:318: Couldn't remove route from peer and system for network 34.116.146.33/32: remove route: get peer state: peer not found
    2024-04-29T15:17:45+02:00 ERRO client/internal/routemanager/client.go:318: Couldn't remove route from peer and system for network 34.118.116.195/32: remove route: get peer state: peer not found
    2024-04-29T15:17:45+02:00 ERRO client/internal/routemanager/client.go:318: Couldn't remove route from peer and system for network 34.116.162.131/32: remove route: get peer state: peer not found
    2024-04-29T15:17:45+02:00 ERRO client/internal/routemanager/client.go:318: Couldn't remove route from peer and system for network 34.118.106.37/32: remove route: get peer state: peer not found
    2024-04-29T15:17:46+02:00 INFO client/internal/dns/host_darwin.go:120: removing search domains from system
    2024-04-29T15:17:46+02:00 INFO client/internal/routemanager/manager.go:112: Routing cleanup complete
    2024-04-29T15:17:46+02:00 INFO client/internal/engine.go:224: stopped Netbird Engine
    2024-04-29T15:17:46+02:00 INFO client/internal/connect.go:261: stopped NetBird client
    
    --- CONNECT
    
    2024-04-29T15:18:11+02:00 INFO client/internal/connect.go:104: starting NetBird client version 0.27.3 on darwin/arm64
    2024-04-29T15:18:11+02:00 INFO client/internal/routemanager/manager.go:88: Routing setup complete
    2024-04-29T15:18:12+02:00 INFO signal/client/grpc.go:158: connected to the Signal Service stream
    2024-04-29T15:18:12+02:00 INFO client/internal/connect.go:247: Netbird engine started, my IP is: 100.64.240.231/16
    2024-04-29T15:18:12+02:00 INFO management/client/grpc.go:147: connected to the Management Service stream
    2024-04-29T15:18:12+02:00 WARN client/internal/engine.go:507: running SSH server is not permitted
    2024-04-29T15:18:12+02:00 WARN client/internal/routemanager/client.go:153: the network 34.116.162.131/32 has not been assigned a routing peer as no peers from the list [KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=] are currently connected
    2024-04-29T15:18:12+02:00 WARN client/internal/routemanager/client.go:153: the network 34.116.146.33/32 has not been assigned a routing peer as no peers from the list [KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=] are currently connected
    2024-04-29T15:18:12+02:00 WARN client/internal/routemanager/client.go:153: the network 34.118.116.195/32 has not been assigned a routing peer as no peers from the list [KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=] are currently connected
    2024-04-29T15:18:12+02:00 WARN client/internal/routemanager/client.go:153: the network 34.118.106.37/32 has not been assigned a routing peer as no peers from the list [KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=] are currently connected
    2024-04-29T15:18:12+02:00 INFO client/internal/dns/host_darwin.go:91: removing match domains from the system
    2024-04-29T15:18:12+02:00 INFO client/internal/dns/host_darwin.go:157: added 1 search domains to the state. Domain list: netbird.selfhosted
    2024-04-29T15:18:12+02:00 INFO client/internal/acl/manager.go:52: ACL rules processed in: 65µs, total rules count: 2
    2024-04-29T15:18:14+02:00 ERRO util/net/dialer_generic.go:64: Failed to call dialer hooks: failed to resolve address :51820: lookup : no such host
    2024-04-29T15:18:14+02:00 ERRO client/internal/peer/conn.go:444: Before add peer hook failed: adding route reference: failed to add route for prefix 127.0.0.1/32: route not allowed
    2024-04-29T15:18:14+02:00 INFO client/internal/peer/conn.go:388: connected to peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=, endpoint address: 127.0.0.1:56858
    2024-04-29T15:18:14+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cokal7pmjugs73f8kfb0 with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.986417 for network 34.116.162.131/32
    2024-04-29T15:18:14+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cokalj9mjugs73f8kfbg with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.986417 for network 34.118.116.195/32
    2024-04-29T15:18:14+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cojqhopmjugs73f8kf80 with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.986417 for network 34.118.106.37/32
    2024-04-29T15:18:14+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cojqhj1mjugs73f8kf7g with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.986417 for network 34.116.146.33/32
    2024-04-29T15:18:14+02:00 WARN client/internal/routemanager/systemops.go:259: Skipping adding a new route for network 34.118.106.37/32 because it already exists
    
  4. See route does not exist
    $ netstat -rn | grep '34.'
    34.116.146.33      utun100            UHS               utun100
    34.116.162.131     utun100            UHS               utun100
    34.118.77.27       192.168.33.1       UGHS                  en0
    34.118.116.195     utun100            UHS               utun100
    

Expected behavior

All routes exists on my macOS machine.

Are you using NetBird Cloud?

self-host

NetBird version

$ netbird version
0.27.3

NetBird status -d output:

(host was modified for this example)

$ netbird status --detail
Peers detail:
 vm-iceo-netbird-1-europe-central2-a-main.netbird.selfhosted:
  NetBird IP: 100.64.192.223
  Public key: KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=
  Status: Connected
  -- detail --
  Connection type: Relayed
  Direct: false
  ICE candidate (Local/Remote): relay/host
  ICE candidate endpoints (Local/Remote): 34.118.77.27:56882/172.17.0.2:56882
  Last connection update: 2024-04-29 15:18:14
  Last WireGuard handshake: 2024-04-29 15:21:06
  Transfer status (received/sent) 2.0 KiB/780 B
  Quantum resistance: false
  Routes: 34.116.146.33/32, 34.116.162.131/32, 34.118.106.37/32, 34.118.116.195/32
  Latency: 16.180875ms

Daemon version: 0.27.3
CLI version: 0.27.3
Management: Connected to https://netbird.example.com:33073
Signal: Connected to http://netbird.example.com:10000
Relays:
  [stun:netbird.example.com:3478] is Available
  [turn:netbird.example.com:3478?transport=udp] is Available
Nameservers:
FQDN: damians-macbook-pro.netbird.selfhosted
NetBird IP: 100.64.240.231/16
Interface type: Userspace
Quantum resistance: false
Routes: -
Peers count: 1/1 Connected
Originally created by @damlys on GitHub (Apr 29, 2024). Original GitHub issue: https://github.com/netbirdio/netbird/issues/1900 **Describe the problem** It seems that macOS client does not add routes properly. Some of the traffic is not routed by NetBird peers. **To Reproduce** (IP addresses were modified for this example) Steps to reproduce the behavior: 1. Add new docker peer 2. Add following routes `34.116.146.33/32, 34.116.162.131/32, 34.118.106.37/32, 34.118.116.195/32` (they are internet adesses) and set routing peer to use previous added one 3. Observe `/var/log/netbird/client.log` file ``` --- CONNECT 2024-04-29T15:08:52+02:00 WARN client/internal/routemanager/client.go:153: the network 34.118.106.37/32 has not been assigned a routing peer as no peers from the list [KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=] are currently connected 2024-04-29T15:08:52+02:00 INFO client/internal/dns/host_darwin.go:157: added 1 search domains to the state. Domain list: netbird.selfhosted 2024-04-29T15:08:52+02:00 INFO client/internal/acl/manager.go:52: ACL rules processed in: 108µs, total rules count: 2 2024-04-29T15:09:08+02:00 ERRO util/net/dialer_generic.go:64: Failed to call dialer hooks: failed to resolve address :51820: lookup : no such host 2024-04-29T15:09:08+02:00 ERRO client/internal/peer/conn.go:444: Before add peer hook failed: adding route reference: failed to add route for prefix 127.0.0.1/32: route not allowed 2024-04-29T15:09:08+02:00 INFO client/internal/peer/conn.go:388: connected to peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=, endpoint address: 127.0.0.1:53675 2024-04-29T15:09:08+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cokalj9mjugs73f8kfbg with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.964561 for network 34.118.116.195/32 2024-04-29T15:09:08+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cojqhj1mjugs73f8kf7g with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.964561 for network 34.116.146.33/32 2024-04-29T15:09:08+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cojqhopmjugs73f8kf80 with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.964561 for network 34.118.106.37/32 2024-04-29T15:09:08+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cokal7pmjugs73f8kfb0 with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.964561 for network 34.116.162.131/32 --- DISCONNECT 2024-04-29T15:16:45+02:00 ERRO client/internal/routemanager/client.go:318: Couldn't remove route from peer and system for network 34.116.146.33/32: remove route: get peer state: peer not found 2024-04-29T15:16:45+02:00 ERRO client/internal/routemanager/client.go:318: Couldn't remove route from peer and system for network 34.116.162.131/32: remove route: get peer state: peer not found 2024-04-29T15:16:45+02:00 ERRO client/internal/routemanager/client.go:318: Couldn't remove route from peer and system for network 34.118.116.195/32: remove route: get peer state: peer not found 2024-04-29T15:16:45+02:00 ERRO client/internal/routemanager/client.go:318: Couldn't remove route from peer and system for network 34.118.106.37/32: remove route: get peer state: peer not found 2024-04-29T15:16:46+02:00 INFO client/internal/dns/host_darwin.go:120: removing search domains from system 2024-04-29T15:16:46+02:00 INFO client/internal/routemanager/manager.go:112: Routing cleanup complete 2024-04-29T15:16:46+02:00 INFO client/internal/engine.go:224: stopped Netbird Engine 2024-04-29T15:16:46+02:00 INFO client/internal/connect.go:261: stopped NetBird client --- CONNECT 2024-04-29T15:17:12+02:00 INFO client/internal/connect.go:104: starting NetBird client version 0.27.3 on darwin/arm64 2024-04-29T15:17:14+02:00 INFO client/internal/routemanager/manager.go:88: Routing setup complete 2024-04-29T15:17:14+02:00 INFO signal/client/grpc.go:158: connected to the Signal Service stream 2024-04-29T15:17:14+02:00 INFO client/internal/connect.go:247: Netbird engine started, my IP is: 100.64.240.231/16 2024-04-29T15:17:14+02:00 INFO management/client/grpc.go:147: connected to the Management Service stream 2024-04-29T15:17:14+02:00 WARN client/internal/engine.go:507: running SSH server is not permitted 2024-04-29T15:17:14+02:00 WARN client/internal/routemanager/client.go:153: the network 34.118.106.37/32 has not been assigned a routing peer as no peers from the list [KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=] are currently connected 2024-04-29T15:17:14+02:00 WARN client/internal/routemanager/client.go:153: the network 34.118.116.195/32 has not been assigned a routing peer as no peers from the list [KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=] are currently connected 2024-04-29T15:17:14+02:00 WARN client/internal/routemanager/client.go:153: the network 34.116.162.131/32 has not been assigned a routing peer as no peers from the list [KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=] are currently connected 2024-04-29T15:17:14+02:00 WARN client/internal/routemanager/client.go:153: the network 34.116.146.33/32 has not been assigned a routing peer as no peers from the list [KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=] are currently connected 2024-04-29T15:17:14+02:00 INFO client/internal/dns/host_darwin.go:91: removing match domains from the system 2024-04-29T15:17:14+02:00 INFO client/internal/dns/host_darwin.go:157: added 1 search domains to the state. Domain list: netbird.selfhosted 2024-04-29T15:17:14+02:00 INFO client/internal/acl/manager.go:52: ACL rules processed in: 73.041µs, total rules count: 2 2024-04-29T15:17:17+02:00 ERRO util/net/dialer_generic.go:64: Failed to call dialer hooks: failed to resolve address :51820: lookup : no such host 2024-04-29T15:17:17+02:00 ERRO client/internal/peer/conn.go:444: Before add peer hook failed: adding route reference: failed to add route for prefix 127.0.0.1/32: route not allowed 2024-04-29T15:17:17+02:00 INFO client/internal/peer/conn.go:388: connected to peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=, endpoint address: 127.0.0.1:60859 2024-04-29T15:17:17+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cokal7pmjugs73f8kfb0 with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.983135 for network 34.116.162.131/32 2024-04-29T15:17:17+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cojqhopmjugs73f8kf80 with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.983135 for network 34.118.106.37/32 2024-04-29T15:17:17+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cokalj9mjugs73f8kfbg with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.983135 for network 34.118.116.195/32 2024-04-29T15:17:17+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cojqhj1mjugs73f8kf7g with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.983135 for network 34.116.146.33/32 --- DISCONNECT 2024-04-29T15:17:45+02:00 ERRO client/internal/routemanager/client.go:318: Couldn't remove route from peer and system for network 34.116.146.33/32: remove route: get peer state: peer not found 2024-04-29T15:17:45+02:00 ERRO client/internal/routemanager/client.go:318: Couldn't remove route from peer and system for network 34.118.116.195/32: remove route: get peer state: peer not found 2024-04-29T15:17:45+02:00 ERRO client/internal/routemanager/client.go:318: Couldn't remove route from peer and system for network 34.116.162.131/32: remove route: get peer state: peer not found 2024-04-29T15:17:45+02:00 ERRO client/internal/routemanager/client.go:318: Couldn't remove route from peer and system for network 34.118.106.37/32: remove route: get peer state: peer not found 2024-04-29T15:17:46+02:00 INFO client/internal/dns/host_darwin.go:120: removing search domains from system 2024-04-29T15:17:46+02:00 INFO client/internal/routemanager/manager.go:112: Routing cleanup complete 2024-04-29T15:17:46+02:00 INFO client/internal/engine.go:224: stopped Netbird Engine 2024-04-29T15:17:46+02:00 INFO client/internal/connect.go:261: stopped NetBird client --- CONNECT 2024-04-29T15:18:11+02:00 INFO client/internal/connect.go:104: starting NetBird client version 0.27.3 on darwin/arm64 2024-04-29T15:18:11+02:00 INFO client/internal/routemanager/manager.go:88: Routing setup complete 2024-04-29T15:18:12+02:00 INFO signal/client/grpc.go:158: connected to the Signal Service stream 2024-04-29T15:18:12+02:00 INFO client/internal/connect.go:247: Netbird engine started, my IP is: 100.64.240.231/16 2024-04-29T15:18:12+02:00 INFO management/client/grpc.go:147: connected to the Management Service stream 2024-04-29T15:18:12+02:00 WARN client/internal/engine.go:507: running SSH server is not permitted 2024-04-29T15:18:12+02:00 WARN client/internal/routemanager/client.go:153: the network 34.116.162.131/32 has not been assigned a routing peer as no peers from the list [KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=] are currently connected 2024-04-29T15:18:12+02:00 WARN client/internal/routemanager/client.go:153: the network 34.116.146.33/32 has not been assigned a routing peer as no peers from the list [KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=] are currently connected 2024-04-29T15:18:12+02:00 WARN client/internal/routemanager/client.go:153: the network 34.118.116.195/32 has not been assigned a routing peer as no peers from the list [KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=] are currently connected 2024-04-29T15:18:12+02:00 WARN client/internal/routemanager/client.go:153: the network 34.118.106.37/32 has not been assigned a routing peer as no peers from the list [KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=] are currently connected 2024-04-29T15:18:12+02:00 INFO client/internal/dns/host_darwin.go:91: removing match domains from the system 2024-04-29T15:18:12+02:00 INFO client/internal/dns/host_darwin.go:157: added 1 search domains to the state. Domain list: netbird.selfhosted 2024-04-29T15:18:12+02:00 INFO client/internal/acl/manager.go:52: ACL rules processed in: 65µs, total rules count: 2 2024-04-29T15:18:14+02:00 ERRO util/net/dialer_generic.go:64: Failed to call dialer hooks: failed to resolve address :51820: lookup : no such host 2024-04-29T15:18:14+02:00 ERRO client/internal/peer/conn.go:444: Before add peer hook failed: adding route reference: failed to add route for prefix 127.0.0.1/32: route not allowed 2024-04-29T15:18:14+02:00 INFO client/internal/peer/conn.go:388: connected to peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4=, endpoint address: 127.0.0.1:56858 2024-04-29T15:18:14+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cokal7pmjugs73f8kfb0 with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.986417 for network 34.116.162.131/32 2024-04-29T15:18:14+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cokalj9mjugs73f8kfbg with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.986417 for network 34.118.116.195/32 2024-04-29T15:18:14+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cojqhopmjugs73f8kf80 with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.986417 for network 34.118.106.37/32 2024-04-29T15:18:14+02:00 INFO client/internal/routemanager/client.go:158: new chosen route is cojqhj1mjugs73f8kf7g with peer KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= with score 0.986417 for network 34.116.146.33/32 2024-04-29T15:18:14+02:00 WARN client/internal/routemanager/systemops.go:259: Skipping adding a new route for network 34.118.106.37/32 because it already exists ``` 4. See route does not exist ``` $ netstat -rn | grep '34.' 34.116.146.33 utun100 UHS utun100 34.116.162.131 utun100 UHS utun100 34.118.77.27 192.168.33.1 UGHS en0 34.118.116.195 utun100 UHS utun100 ``` **Expected behavior** All routes exists on my macOS machine. **Are you using NetBird Cloud?** self-host **NetBird version** ``` $ netbird version 0.27.3 ``` **NetBird status -d output:** (host was modified for this example) ``` $ netbird status --detail Peers detail: vm-iceo-netbird-1-europe-central2-a-main.netbird.selfhosted: NetBird IP: 100.64.192.223 Public key: KBvYvOCaHHd6LOlr/nf6njlILsi9M2Bxkq8daIoiDF4= Status: Connected -- detail -- Connection type: Relayed Direct: false ICE candidate (Local/Remote): relay/host ICE candidate endpoints (Local/Remote): 34.118.77.27:56882/172.17.0.2:56882 Last connection update: 2024-04-29 15:18:14 Last WireGuard handshake: 2024-04-29 15:21:06 Transfer status (received/sent) 2.0 KiB/780 B Quantum resistance: false Routes: 34.116.146.33/32, 34.116.162.131/32, 34.118.106.37/32, 34.118.116.195/32 Latency: 16.180875ms Daemon version: 0.27.3 CLI version: 0.27.3 Management: Connected to https://netbird.example.com:33073 Signal: Connected to http://netbird.example.com:10000 Relays: [stun:netbird.example.com:3478] is Available [turn:netbird.example.com:3478?transport=udp] is Available Nameservers: FQDN: damians-macbook-pro.netbird.selfhosted NetBird IP: 100.64.240.231/16 Interface type: Userspace Quantum resistance: false Routes: - Peers count: 1/1 Connected ```
saavagebueno added the bugclientroutesmacos labels 2026-08-05 00:52:49 -04:00
Sign in to join this conversation.
No Label bug client macos routes
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#3515