Firewall prevents access from peers #2419

Open
opened 2025-11-20 07:09:31 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @jeena on GitHub (Oct 29, 2025).

Describe the problem

After upgrading the client on one of the peers from 0.59.6 to 0.59.7 other peers can't access it anymore. I tried ping, ssh and http/s nothing works. Rolling back to 0.59.6 makes it work again, anything later doesn't work.

I think it is related to f0a3afdd51

I think that because when I start the netbird client and check the firewall it shows:

> sudo nft list set ip netbird nb0000001
table ip netbird {
	set nb0000001 {
		type ipv4_addr
		flags dynamic
		elements = { 0.0.0.0, 100.84.10.105,
			    100.84.17.5, 100.84.69.221,
			    100.84.133.113, 100.84.164.100,
			    100.84.199.73, 100.84.199.76,
			    100.84.217.212, 100.84.247.134 }
	}
}

Those IP adresses are agents from a specific Network Route we have but none of the other peers show u. When I add my peer manually to the firewall with: sudo nft add element ip netbird nb0000001 { 100.84.11.181 } then it starts working again. I was thinking that the 0.0.0.0 would cover it but it seems it doesn't.

The two peers are connected with p2p.

If I access it via one of the agents then it works without problems.

When I uninstall nft then it's still the same result just with iptables.

The when using ping, the ICMP Echo Request reached the server (I can see it with tcpdump) but but the Echo Reply never made it back to the client.

To Reproduce

Steps to reproduce the behavior:

  1. Have a normal user in Netbird in the group All on a PC
  2. Have a server with a setup key and add it to a group mygroup
  3. Create a Policy for All protocols with Source: All and Destination: mygroup
  4. Connect both peers
  5. Check that they have a P2P connection
  6. On the PC do ping server-ip or ssh user@server-ip or traceroute server-ip
  7. See that it just hangs.

Expected behavior

ping and the other ways of connecting the peer should work and not hang.

Are you using NetBird Cloud?

self-host

NetBird version

0.59.7 - 0.59.10 on Ubuntu 24.04 Desktop

Is any other VPN software installed?

Yes, Cisco Secure Client, but disabled.

Debug output

N/A

Screenshots

N/A

Additional context

N/A

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 @jeena on GitHub (Oct 29, 2025). **Describe the problem** After upgrading the client on one of the peers from 0.59.6 to 0.59.7 other peers can't access it anymore. I tried ping, ssh and http/s nothing works. Rolling back to 0.59.6 makes it work again, anything later doesn't work. I think it is related to https://github.com/netbirdio/netbird/pull/4653/commits/f0a3afdd5164ed96330c069459ef3e72c9059367 I think that because when I start the netbird client and check the firewall it shows: ``` > sudo nft list set ip netbird nb0000001 table ip netbird { set nb0000001 { type ipv4_addr flags dynamic elements = { 0.0.0.0, 100.84.10.105, 100.84.17.5, 100.84.69.221, 100.84.133.113, 100.84.164.100, 100.84.199.73, 100.84.199.76, 100.84.217.212, 100.84.247.134 } } } ``` Those IP adresses are agents from a specific Network Route we have but none of the other peers show u. When I add my peer manually to the firewall with: `sudo nft add element ip netbird nb0000001 { 100.84.11.181 }` then it starts working again. I was thinking that the `0.0.0.0` would cover it but it seems it doesn't. The two peers are connected with p2p. If I access it via one of the agents then it works without problems. When I uninstall nft then it's still the same result just with iptables. The when using `ping`, the ICMP Echo Request reached the server (I can see it with tcpdump) but but the Echo Reply never made it back to the client. **To Reproduce** Steps to reproduce the behavior: 1. Have a normal user in Netbird in the group `All` on a PC 2. Have a server with a setup key and add it to a group `mygroup` 3. Create a Policy for `All` protocols with Source: `All` and Destination: `mygroup` 4. Connect both peers 5. Check that they have a P2P connection 6. On the PC do `ping server-ip` or `ssh user@server-ip` or `traceroute server-ip` 7. See that it just hangs. **Expected behavior** `ping` and the other ways of connecting the peer should work and not hang. **Are you using NetBird Cloud?** self-host **NetBird version** 0.59.7 - 0.59.10 on Ubuntu 24.04 Desktop **Is any other VPN software installed?** Yes, Cisco Secure Client, but disabled. **Debug output** N/A **Screenshots** N/A **Additional context** N/A **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 - [x] Disabled other VPN software - [x] Checked firewall settings
saavagebueno added the triage-needed label 2025-11-20 07:09:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2419