Option to disable direct peer-to-peer connections for specific peers (server-only mode) #2444

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

Originally created by @TheDoDoo on GitHub (Nov 7, 2025).

I have a setup where one peer is located in a network that only allows connections to the NetBird server (management/relay), but not to other peers directly.

Currently, NetBird keeps trying to establish direct peer-to-peer connections, which are not possible in this environment and result in constant connection attempts and log noise.

It would be great to have an option to configure certain peers to only communicate via the NetBird server (relay), effectively a server-only or no direct P2P mode.

Expected behavior

A peer configured in this mode should:

  • Never attempt direct P2P connections to other peers.
  • Always use the relay/management server for all communication.

Why this is useful

In restricted network environments, devices are often only allowed to talk to the NetBird server.
In such cases, trying to establish direct P2P connections wastes resources and generates unnecessary retries.

Questions

  • Is there currently any way to force a peer to only use the relay (via configuration, policy, or flag)?
  • If not, would you consider adding this as a feature in the future?
Originally created by @TheDoDoo on GitHub (Nov 7, 2025). I have a setup where one peer is located in a network that only allows connections to the NetBird server (management/relay), but not to other peers directly. Currently, NetBird keeps trying to establish direct peer-to-peer connections, which are not possible in this environment and result in constant connection attempts and log noise. It would be great to have an option to configure certain peers to only communicate via the NetBird server (relay), effectively a server-only or no direct P2P mode. **Expected behavior** A peer configured in this mode should: - Never attempt direct P2P connections to other peers. - Always use the relay/management server for all communication. **Why this is useful** In restricted network environments, devices are often only allowed to talk to the NetBird server. In such cases, trying to establish direct P2P connections wastes resources and generates unnecessary retries. **Questions** - Is there currently any way to force a peer to only use the relay (via configuration, policy, or flag)? - If not, would you consider adding this as a feature in the future?
saavagebueno added the feature-request label 2025-11-20 07:09:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2444