Setting DisableServerRoutes disabled routing packets completely, not just server routes #1964

Open
opened 2025-11-20 06:10:18 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @thomas-neumann-axtesys on GitHub (Jun 16, 2025).

Originally assigned to: @lixmal on GitHub.

Describe the problem

When setting the config option DisableServerRoutes in config.json on a client, routing is completely disabled (client.log shows Dropping routed packet (routing disabled): src=<netbird client> dst=10.X.X.X) instead of only disabling server routes.

To Reproduce

Steps to reproduce the behavior:

  1. Set option DisableServerRoutes to true in your routing peer config,json
  2. Restart NetBird connection
  3. Use other client to try to access a network behind the routing peer
  4. Packet gets completely dropped instead of forwarded to the hosts routing configuration

Expected behavior

NetBird should pass traffic as-is to the host for on-host routing, not drop packets when DisableServerRoutes is setup.

Are you using NetBird Cloud?

No, self-hosted setup.

NetBird version

0.46.0

Is any other VPN software installed?

No.

Debug output

Peers detail:
 aethermarvel.netbird.selfhosted:
  NetBird IP: 100.84.178.109
  Public key: DJjRezYstkDxp10t9T83sQ1L7KkoTsseATV+5fBotSE=
  Status: Connecting
  -- detail --
  Connection type: 
  ICE candidate (Local/Remote): -/-
  ICE candidate endpoints (Local/Remote): -/-
  Relay server address: 
  Last connection update: 2 hours, 14 minutes ago
  Last WireGuard handshake: -
  Transfer status (received/sent) 0 B/0 B
  Quantum resistance: false
  Networks: -
  Latency: 0s

 thomas.netbird.selfhosted:
  NetBird IP: 100.84.182.65
  Public key: L8HW6HWP4OIPDnaZwXls+pcUu4HsDbzEzhtv6Vslyj8=
  Status: Connected
  -- detail --
  Connection type: P2P
  ICE candidate (Local/Remote): srflx/prflx
  ICE candidate endpoints (Local/Remote): 198.51.100.0:2715/198.51.100.1:6699
  Relay server address: rels://netbird.anon-DVCWf.domain:443/relay
  Last connection update: 2 minutes, 28 seconds ago
  Last WireGuard handshake: 11 seconds ago
  Transfer status (received/sent) 1.2 KiB/760 B
  Quantum resistance: false
  Networks: -
  Latency: 37.583588ms

 nb10265.netbird.selfhosted:
  NetBird IP: 100.84.220.245
  Public key: OYtYuz0CQ8PQGt1vjXNO28W8K3L1gWENOCTnSwhPMzI=
  Status: Connecting
  -- detail --
  Connection type: 
  ICE candidate (Local/Remote): -/-
  ICE candidate endpoints (Local/Remote): -/-
  Relay server address: 
  Last connection update: 2 hours, 14 minutes ago
  Last WireGuard handshake: -
  Transfer status (received/sent) 0 B/0 B
  Quantum resistance: false
  Networks: -
  Latency: 0s

Events:
  [WARNING] DNS (496fd7ca-b627-422b-8b2e-ed4229dac19d)
    Message: The host dns manager does not support match domains
    Time: 2 hours, 23 minutes ago
    Metadata: manager: file
  [INFO] SYSTEM (5a0cc4a6-0ea3-46a1-8553-bd2a8c08be55)
    Message: Network map updated
    Time: 2 hours, 23 minutes ago
  [WARNING] DNS (1d20a3d1-3bec-44f7-bdb7-5f7d7139e775)
    Message: The host dns manager does not support match domains
    Time: 2 hours, 16 minutes ago
    Metadata: manager: file
  [INFO] SYSTEM (e022651f-ddec-450a-ba76-0fda5f3f9ce2)
    Message: Network map updated
    Time: 2 hours, 16 minutes ago
  [WARNING] DNS (ce5ee93f-fcc0-44d6-98ba-c872d08d1274)
    Message: The host dns manager does not support match domains
    Time: 2 hours, 16 minutes ago
    Metadata: manager: file
  [INFO] SYSTEM (d168ce37-41f1-4acb-b382-10deea21280c)
    Message: Network map updated
    Time: 2 hours, 16 minutes ago
  [WARNING] DNS (1cde3414-d420-48ad-9e2a-010cd481ec75)
    Message: The host dns manager does not support match domains
    Time: 2 hours, 14 minutes ago
    Metadata: manager: file
  [INFO] SYSTEM (406bf3f5-7fc9-4871-8678-fc42d3357d22)
    Message: Network map updated
    Time: 2 hours, 14 minutes ago
  [INFO] SYSTEM (e29fb790-c10c-4e65-9a4d-ff52d7af7a6b)
    Message: Network map updated
    Time: 1 hour, 43 minutes ago
  [INFO] SYSTEM (a43b213b-2ad4-47ed-a8e4-5fea2036a82c)
    Message: Network map updated
    Time: 2 minutes, 30 seconds ago
OS: freebsd/amd64
Daemon version: 0.46.0
CLI version: 0.46.0
Management: Connected to https://netbird.anon-DVCWf.domain:443
Signal: Connected to https://netbird.anon-DVCWf.domain:443
Relays: 
  [stun:netbird.anon-DVCWf.domain:3478] is Available
  [turn:netbird.anon-DVCWf.domain:3478?transport=udp] is Available
  [rels://netbird.anon-DVCWf.domain:443/relay] is Available
Nameservers: 
FQDN: hz-cl-dev-gw-dev-1.netbird.selfhosted
NetBird IP: 100.84.233.179/16
Interface type: Userspace
Quantum resistance: false
Lazy connection: false
Networks: -
Forwarding rules: 0
Peers count: 1/3 Connected

netbird.debug.1264271430.zip

Additional context
My goal is to set up a OPNSense firewall as a routing peer, but still be able to filter NetBird traffic via interface rules on the OPNSense itself. When enabling the DisableFirewall option, this works perfectly, but that also disabled ACL from NetBird, which I want. That led me to (with the help of the #bugs-isses-etc Slack channel and @lixmal (thanks again^^)) try the option with DisableServerRoutes, which seems to wrongly drop all packets.

Have you tried these troubleshooting steps?

  • Reviewed client troubleshooting (if applicable)
  • Checked for newer NetBird versions
  • Searched for similar issues on GitHub (including closed ones)
  • Restarted the NetBird client
  • [-] Disabled other VPN software
  • Checked firewall settings
Originally created by @thomas-neumann-axtesys on GitHub (Jun 16, 2025). Originally assigned to: @lixmal on GitHub. **Describe the problem** When setting the config option `DisableServerRoutes` in config.json on a client, routing is completely disabled (`client.log` shows `Dropping routed packet (routing disabled): src=<netbird client> dst=10.X.X.X`) instead of only disabling server routes. **To Reproduce** Steps to reproduce the behavior: 1. Set option `DisableServerRoutes` to `true` in your routing peer `config,json` 2. Restart NetBird connection 3. Use other client to try to access a network behind the routing peer 4. Packet gets completely dropped instead of forwarded to the hosts routing configuration **Expected behavior** NetBird should pass traffic as-is to the host for on-host routing, not drop packets when `DisableServerRoutes` is setup. **Are you using NetBird Cloud?** No, self-hosted setup. **NetBird version** `0.46.0` **Is any other VPN software installed?** No. **Debug output** ``` Peers detail: aethermarvel.netbird.selfhosted: NetBird IP: 100.84.178.109 Public key: DJjRezYstkDxp10t9T83sQ1L7KkoTsseATV+5fBotSE= Status: Connecting -- detail -- Connection type: ICE candidate (Local/Remote): -/- ICE candidate endpoints (Local/Remote): -/- Relay server address: Last connection update: 2 hours, 14 minutes ago Last WireGuard handshake: - Transfer status (received/sent) 0 B/0 B Quantum resistance: false Networks: - Latency: 0s thomas.netbird.selfhosted: NetBird IP: 100.84.182.65 Public key: L8HW6HWP4OIPDnaZwXls+pcUu4HsDbzEzhtv6Vslyj8= Status: Connected -- detail -- Connection type: P2P ICE candidate (Local/Remote): srflx/prflx ICE candidate endpoints (Local/Remote): 198.51.100.0:2715/198.51.100.1:6699 Relay server address: rels://netbird.anon-DVCWf.domain:443/relay Last connection update: 2 minutes, 28 seconds ago Last WireGuard handshake: 11 seconds ago Transfer status (received/sent) 1.2 KiB/760 B Quantum resistance: false Networks: - Latency: 37.583588ms nb10265.netbird.selfhosted: NetBird IP: 100.84.220.245 Public key: OYtYuz0CQ8PQGt1vjXNO28W8K3L1gWENOCTnSwhPMzI= Status: Connecting -- detail -- Connection type: ICE candidate (Local/Remote): -/- ICE candidate endpoints (Local/Remote): -/- Relay server address: Last connection update: 2 hours, 14 minutes ago Last WireGuard handshake: - Transfer status (received/sent) 0 B/0 B Quantum resistance: false Networks: - Latency: 0s Events: [WARNING] DNS (496fd7ca-b627-422b-8b2e-ed4229dac19d) Message: The host dns manager does not support match domains Time: 2 hours, 23 minutes ago Metadata: manager: file [INFO] SYSTEM (5a0cc4a6-0ea3-46a1-8553-bd2a8c08be55) Message: Network map updated Time: 2 hours, 23 minutes ago [WARNING] DNS (1d20a3d1-3bec-44f7-bdb7-5f7d7139e775) Message: The host dns manager does not support match domains Time: 2 hours, 16 minutes ago Metadata: manager: file [INFO] SYSTEM (e022651f-ddec-450a-ba76-0fda5f3f9ce2) Message: Network map updated Time: 2 hours, 16 minutes ago [WARNING] DNS (ce5ee93f-fcc0-44d6-98ba-c872d08d1274) Message: The host dns manager does not support match domains Time: 2 hours, 16 minutes ago Metadata: manager: file [INFO] SYSTEM (d168ce37-41f1-4acb-b382-10deea21280c) Message: Network map updated Time: 2 hours, 16 minutes ago [WARNING] DNS (1cde3414-d420-48ad-9e2a-010cd481ec75) Message: The host dns manager does not support match domains Time: 2 hours, 14 minutes ago Metadata: manager: file [INFO] SYSTEM (406bf3f5-7fc9-4871-8678-fc42d3357d22) Message: Network map updated Time: 2 hours, 14 minutes ago [INFO] SYSTEM (e29fb790-c10c-4e65-9a4d-ff52d7af7a6b) Message: Network map updated Time: 1 hour, 43 minutes ago [INFO] SYSTEM (a43b213b-2ad4-47ed-a8e4-5fea2036a82c) Message: Network map updated Time: 2 minutes, 30 seconds ago OS: freebsd/amd64 Daemon version: 0.46.0 CLI version: 0.46.0 Management: Connected to https://netbird.anon-DVCWf.domain:443 Signal: Connected to https://netbird.anon-DVCWf.domain:443 Relays: [stun:netbird.anon-DVCWf.domain:3478] is Available [turn:netbird.anon-DVCWf.domain:3478?transport=udp] is Available [rels://netbird.anon-DVCWf.domain:443/relay] is Available Nameservers: FQDN: hz-cl-dev-gw-dev-1.netbird.selfhosted NetBird IP: 100.84.233.179/16 Interface type: Userspace Quantum resistance: false Lazy connection: false Networks: - Forwarding rules: 0 Peers count: 1/3 Connected ``` [netbird.debug.1264271430.zip](https://github.com/user-attachments/files/20756322/netbird.debug.1264271430.zip) **Additional context** My goal is to set up a OPNSense firewall as a routing peer, but still be able to filter NetBird traffic via interface rules on the OPNSense itself. When enabling the `DisableFirewall` option, this works perfectly, but that also disabled ACL from NetBird, which I want. That led me to (with the help of the #bugs-isses-etc Slack channel and @lixmal (thanks again^^)) try the option with `DisableServerRoutes`, which seems to wrongly drop all packets. **Have you tried these troubleshooting steps?** - [X] Reviewed [client troubleshooting](https://docs.netbird.io/how-to/troubleshooting-client) (if applicable) - [X] Checked for newer NetBird versions - [X] Searched for similar issues on GitHub (including closed ones) - [X] Restarted the NetBird client - [-] Disabled other VPN software - [X] Checked firewall settings
saavagebueno added the triage-needed label 2025-11-20 06:10:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1964