No P2P/direct connection, only relayed? #2000

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

Originally created by @juju4 on GitHub (Jun 22, 2025).

Describe the problem

I'm testing different configurations when two devices are on the same physical network with same/different subnets. one of them could be a mobile. reviewing connectivity, speed and so on.
Setup1 works fine both in Relayed and P2P mode but on slower side likely limited by physical layer (mix cable, wifi)

             ┌─────────────────┐                       
     ┌───────┤ Internet router ┼────┐ 
     │       └─────────────────┘    │ 
     │                              │ 
     │                              │ 
     │                              │ 
┌────┼────┐                 ┌───────┼───────┐
│ Device1 │                 │Device2/Gateway│
└─────────┘                 └───────┬───────┘
                                    │                  
                               ┌────┼───┐              
                               │Subnet2 │              
                               └────────┘              

Setup2 for now works only in Relayed mode (cable only, same switch). I reviewed and unblocked things in firewall at the point that there is no drop logs that seems related to netbird (outside of rotating endpoints that I'm still chasing per https://github.com/netbirdio/netbird/issues/3783). I also disabled dns on Device2 as was conflicting with my internal dns setup.

             ┌─────────────────┐    
             │ Internet router ├───┐
             └─────────────────┘   │
                            ┌──────┼────────┐ 
                          ┌─┼Device2/Gateway│ 
                          │ └────────────┬──┘ 
                          │              │             
                     ┌────┼───┐      ┌───┼───┐         
                     │Device1 │      │Subnet2│         
                     └────────┘      └───────┘         

I don't see any "discovered local candidate" in my client log like seen in https://github.com/netbirdio/netbird/issues/1753
Debug logs were uploaded netbird debug for 1m --system-info --anonymize --upload-bundle (https://docs.netbird.io/how-to/troubleshooting-client)

Netbird 0.46.0-0.47.2 on linux for both devices currently tested.

To Reproduce

See above setup

Expected behavior

Have P2P connection for systems on same LAN

Are you using NetBird Cloud?

Yes

NetBird version

0.46.0-0.47.2

Is any other VPN software installed?

One endpoint also has openvpn.
The other, none

Debug output
(note upload option should follow web proxy...)

Upload file key:
f79e391890ab27fb37c88b3b4be7011e22aa2e5ca6f38ffa9c4481884941f726/9d81097b-39cc-4e35-9d3e-65243afa3f5d

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 @juju4 on GitHub (Jun 22, 2025). **Describe the problem** I'm testing different configurations when two devices are on the same physical network with same/different subnets. one of them could be a mobile. reviewing connectivity, speed and so on. Setup1 works fine both in Relayed and P2P mode but on slower side likely limited by physical layer (mix cable, wifi) ```asciiflow ┌─────────────────┐ ┌───────┤ Internet router ┼────┐ │ └─────────────────┘ │ │ │ │ │ │ │ ┌────┼────┐ ┌───────┼───────┐ │ Device1 │ │Device2/Gateway│ └─────────┘ └───────┬───────┘ │ ┌────┼───┐ │Subnet2 │ └────────┘ ``` Setup2 for now works only in Relayed mode (cable only, same switch). I reviewed and unblocked things in firewall at the point that there is no drop logs that seems related to netbird (outside of rotating endpoints that I'm still chasing per https://github.com/netbirdio/netbird/issues/3783). I also disabled dns on Device2 as was conflicting with my internal dns setup. ```asciiflow ┌─────────────────┐ │ Internet router ├───┐ └─────────────────┘ │ ┌──────┼────────┐ ┌─┼Device2/Gateway│ │ └────────────┬──┘ │ │ ┌────┼───┐ ┌───┼───┐ │Device1 │ │Subnet2│ └────────┘ └───────┘ ``` I don't see any "discovered local candidate" in my client log like seen in https://github.com/netbirdio/netbird/issues/1753 Debug logs were uploaded `netbird debug for 1m --system-info --anonymize --upload-bundle` (https://docs.netbird.io/how-to/troubleshooting-client) Netbird 0.46.0-0.47.2 on linux for both devices currently tested. **To Reproduce** See above setup **Expected behavior** Have P2P connection for systems on same LAN **Are you using NetBird Cloud?** Yes **NetBird version** 0.46.0-0.47.2 **Is any other VPN software installed?** One endpoint also has openvpn. The other, none **Debug output** (note upload option should follow web proxy...) Upload file key: f79e391890ab27fb37c88b3b4be7011e22aa2e5ca6f38ffa9c4481884941f726/9d81097b-39cc-4e35-9d3e-65243afa3f5d **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 06:10:59 -05:00
Author
Owner

@Silex commented on GitHub (Jun 23, 2025):

See #3949

@Silex commented on GitHub (Jun 23, 2025): See #3949
Author
Owner

@juju4 commented on GitHub (Jun 29, 2025):

Thanks for the input.
I already ensured port 51820 is opened. not current issue.

$ sudo nft list ruleset | grep -E 'INPUT|FORWARD|OUTPUT|51820'
	chain INPUT {
	chain OUTPUT {
	chain INPUT {
		udp sport 51820 udp dport 51820 counter packets 648 bytes 90720 accept
	chain FORWARD {
		iifname "eth0" oifname "wlan0" ip saddr 192.168.x.0/24 udp sport 51820 udp dport 51820 counter packets 216 bytes 30240 accept
		iifname "eth0" oifname "wlan0" ip saddr 192.168.x.0/24 udp sport 51820 udp dport 5555 counter packets 0 bytes 0 accept
		iifname "wlan0" oifname "eth0" ip saddr 192.168.x.0/24 udp sport 51820 udp dport 51820 counter packets 0 bytes 0 accept
	chain OUTPUT {
		oifname "wlan0" ip saddr 10.x.y.0/8 udp sport 51820 udp dport 51820 counter packets 0 bytes 0 accept
		oifname "wlan0" ip saddr 192.168.z.0/24 udp sport 51820 counter packets 1043 bytes 142064 accept
		oifname "eth0" ip saddr 192.168.x.0/24 udp sport 51820 counter packets 2990 bytes 359320 accept
		oifname "tun0" ip saddr 10.z.0.0/24 udp sport 51820 counter packets 520 bytes 72800 accept
	chain INPUT {
	chain FORWARD {
	chain OUTPUT {
@juju4 commented on GitHub (Jun 29, 2025): Thanks for the input. I already ensured port 51820 is opened. not current issue. ```shell $ sudo nft list ruleset | grep -E 'INPUT|FORWARD|OUTPUT|51820' chain INPUT { chain OUTPUT { chain INPUT { udp sport 51820 udp dport 51820 counter packets 648 bytes 90720 accept chain FORWARD { iifname "eth0" oifname "wlan0" ip saddr 192.168.x.0/24 udp sport 51820 udp dport 51820 counter packets 216 bytes 30240 accept iifname "eth0" oifname "wlan0" ip saddr 192.168.x.0/24 udp sport 51820 udp dport 5555 counter packets 0 bytes 0 accept iifname "wlan0" oifname "eth0" ip saddr 192.168.x.0/24 udp sport 51820 udp dport 51820 counter packets 0 bytes 0 accept chain OUTPUT { oifname "wlan0" ip saddr 10.x.y.0/8 udp sport 51820 udp dport 51820 counter packets 0 bytes 0 accept oifname "wlan0" ip saddr 192.168.z.0/24 udp sport 51820 counter packets 1043 bytes 142064 accept oifname "eth0" ip saddr 192.168.x.0/24 udp sport 51820 counter packets 2990 bytes 359320 accept oifname "tun0" ip saddr 10.z.0.0/24 udp sport 51820 counter packets 520 bytes 72800 accept chain INPUT { chain FORWARD { chain OUTPUT { ```
Author
Owner

@eveyraud commented on GitHub (Jun 30, 2025):

|

I opened a ticket for a (maybe) similar issue, feel free to check if it can help you #4047

@eveyraud commented on GitHub (Jun 30, 2025): > | I opened a ticket for a (maybe) similar issue, feel free to check if it can help you #4047
Author
Owner

@juju4 commented on GitHub (Jul 6, 2025):

Thanks
On my side, only linux and netbird cloud for now.
At this point, my main concern is connection between hosts inside same network which imho should be p2p. no exit node set. route as expected from  ip r and ip route show table 7120
Current 0.48.0-0.49.0

@juju4 commented on GitHub (Jul 6, 2025): Thanks On my side, only linux and netbird cloud for now. At this point, my main concern is connection between hosts inside same network which imho should be p2p. no exit node set. route as expected from  `ip r` and `ip route show table 7120` Current 0.48.0-0.49.0
Author
Owner

@juju4 commented on GitHub (Oct 5, 2025):

Same status with 0.59.0. Any more advices?
Thanks

@juju4 commented on GitHub (Oct 5, 2025): Same status with 0.59.0. Any more advices? Thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2000