[PR #2258] [MERGED] Don't add exclusion routes for IPs that are part of connected networks #14872

Closed
opened 2026-08-05 03:06:30 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2258
Author: @lixmal
Created: 7/11/2024
Status: Merged
Merged: 7/17/2024
Merged by: @mlsmaycon

Base: mainHead: fix/no-exclusion-routes-for-local-networks


📝 Commits (3)

  • eea04bc Don't add exclusion routes for IPs that are part of connected networks
  • 22b8c0f Wrap error
  • cacdde1 Fix tests

📊 Changes

2 files changed (+59 additions, -53 deletions)

View changed files

📝 client/internal/routemanager/systemops/systemops_generic.go (+36 -1)
📝 client/internal/routemanager/systemops/systemops_windows_test.go (+23 -52)

📄 Description

When adding a host route for a peer's IP address that belongs to a connected network, macOS may stop using ARP/NDP to resolve the IP address. This will lead to unreachability of the targeted IP.

Describe your changes

This PR prevents adding exclusion routes for connected networks.

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/2258 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 7/11/2024 **Status:** ✅ Merged **Merged:** 7/17/2024 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `fix/no-exclusion-routes-for-local-networks` --- ### 📝 Commits (3) - [`eea04bc`](https://github.com/netbirdio/netbird/commit/eea04bcf72f77b73e802d2b11d01d017ca945336) Don't add exclusion routes for IPs that are part of connected networks - [`22b8c0f`](https://github.com/netbirdio/netbird/commit/22b8c0fdbda3546da19115d31b9c2cf6b6fbbfee) Wrap error - [`cacdde1`](https://github.com/netbirdio/netbird/commit/cacdde147146b2454aa8411a1b4f2cfbd230b9a6) Fix tests ### 📊 Changes **2 files changed** (+59 additions, -53 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/routemanager/systemops/systemops_generic.go` (+36 -1) 📝 `client/internal/routemanager/systemops/systemops_windows_test.go` (+23 -52) </details> ### 📄 Description When adding a host route for a peer's IP address that belongs to a connected network, macOS may stop using ARP/NDP to resolve the IP address. This will lead to unreachability of the targeted IP. ## Describe your changes This PR prevents adding exclusion routes for connected networks. ## Issue ticket number and link ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 03:06:30 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#14872