Do not break connection to node if destination network is routed. #488

Closed
opened 2025-11-20 05:12:17 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @psuet on GitHub (Oct 29, 2023).

Is your feature request related to a problem? Please describe.
When specifying a network route that overlaps with the IP of a (Routing-)Peer the Network and (Routing-)Peer become unreachable.

Example:
My notebook is somewhere random in the world and want to reach my firewalled public ip corporate / educational network at 1.1.0.0/16.
My Routing-Peer is also in this subnet at 1.1.53.45.

If I specify 1.1.0.0/16 as Network Route, the Routing Peer becomes unreachable once my notebook got provisioned.

Describe the solution you'd like
Exclude IPs for directly connected Peers in the routing table

-or-

Provide an automatic more specific route for the direct connection to the peer.

Note: This works somehow magically out-of-the box with the official Wireguard Client under Windows
https://git.zx2c4.com/wireguard-windows/about/docs/netquirk.md

Describe alternatives you've considered
Alternatively there are some possible backend changes:

It would be nice to be able to specify excluded IPs/Ranges in a network range when adding them via the Web Interface

-or-

Be able to specify multiple Network Ranges per Network Route

(similar to the capabilites of https://www.procustodibus.com/blog/2021/03/wireguard-allowedips-calculator/)

Additional context
Add any other context or screenshots about the feature request here.

Originally created by @psuet on GitHub (Oct 29, 2023). **Is your feature request related to a problem? Please describe.** When specifying a network route that overlaps with the IP of a (Routing-)Peer the Network *and* (Routing-)Peer become unreachable. Example: My notebook is somewhere random in the world and want to reach my firewalled public ip corporate / educational network at 1.1.0.0/16. My Routing-Peer is also in this subnet at 1.1.53.45. If I specify 1.1.0.0/16 as Network Route, the Routing Peer becomes unreachable once my notebook got provisioned. **Describe the solution you'd like** Exclude IPs for directly connected Peers in the routing table -or- Provide an automatic more specific route for the direct connection to the peer. Note: This works somehow magically out-of-the box with the official Wireguard Client under Windows https://git.zx2c4.com/wireguard-windows/about/docs/netquirk.md **Describe alternatives you've considered** Alternatively there are some possible backend changes: It would be nice to be able to specify excluded IPs/Ranges in a network range when adding them via the Web Interface -or- Be able to specify multiple Network Ranges per Network Route (similar to the capabilites of https://www.procustodibus.com/blog/2021/03/wireguard-allowedips-calculator/) **Additional context** Add any other context or screenshots about the feature request here.
Author
Owner

@mlsmaycon commented on GitHub (Oct 29, 2023):

Hello, @psuet thanks for reporting the issue. We will work on a solution for this case.

@mlsmaycon commented on GitHub (Oct 29, 2023): Hello, @psuet thanks for reporting the issue. We will work on a solution for this case.
Author
Owner

@lixmal commented on GitHub (Feb 21, 2025):

This has been fixed since at least v0.27.0

@lixmal commented on GitHub (Feb 21, 2025): This has been fixed since at least v0.27.0
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#488