[PR #3884] [MERGED] [client] Allow userspace local forwarding to internal interfaces if requested #23974

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3884
Author: @lixmal
Created: 5/27/2025
Status: Merged
Merged: 6/4/2025
Merged by: @lixmal

Base: mainHead: general-local-forwarding


📝 Commits (1)

  • 8b7f5d6 Allow userspace local forwarding to internal interfaces if requested

📊 Changes

3 files changed (+20 additions, -11 deletions)

View changed files

📝 client/firewall/uspfilter/forwarder/tcp.go (+2 -2)
📝 client/firewall/uspfilter/forwarder/udp.go (+2 -2)
📝 client/firewall/uspfilter/uspfilter.go (+16 -7)

📄 Description

Describe your changes

Using NB_ENABLE_LOCAL_FORWARDING=true will instruct NetBird to pass traffic for internal interfaces to the forwarder instead of to the native stack.
This can be helpful for e.g. Windows that doesn't allow access across interfaces.

Stack

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

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.


🔄 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/3884 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 5/27/2025 **Status:** ✅ Merged **Merged:** 6/4/2025 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `main` ← **Head:** `general-local-forwarding` --- ### 📝 Commits (1) - [`8b7f5d6`](https://github.com/netbirdio/netbird/commit/8b7f5d621c7931f6c211a162516e34193c51c04d) Allow userspace local forwarding to internal interfaces if requested ### 📊 Changes **3 files changed** (+20 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `client/firewall/uspfilter/forwarder/tcp.go` (+2 -2) 📝 `client/firewall/uspfilter/forwarder/udp.go` (+2 -2) 📝 `client/firewall/uspfilter/uspfilter.go` (+16 -7) </details> ### 📄 Description ## Describe your changes Using `NB_ENABLE_LOCAL_FORWARDING=true` will instruct NetBird to pass traffic for internal interfaces to the forwarder instead of to the native stack. This can be helpful for e.g. Windows that doesn't allow access across interfaces. ## Issue ticket number and link ## Stack <!-- branch-stack --> ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary > By submitting this pull request, you confirm that you have read and agree to the terms of the [Contributor License Agreement](https://github.com/netbirdio/netbird/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT.md). --- <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 06:08:06 -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#23974