[PR #2190] [MERGED] Add loopback ignore rule to nat chains #14778

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2190
Author: @lixmal
Created: 6/24/2024
Status: Merged
Merged: 6/25/2024
Merged by: @mlsmaycon

Base: mainHead: fix/skip-loopback


📝 Commits (1)

  • 2b5319c Add loopback ignore rule to nat chains

📊 Changes

4 files changed (+63 additions, -13 deletions)

View changed files

📝 client/firewall/iptables/router_linux.go (+34 -2)
📝 client/firewall/nftables/manager_linux.go (+1 -1)
📝 client/firewall/nftables/route_linux.go (+27 -9)
📝 client/firewall/nftables/router_linux_test.go (+1 -1)

📄 Description

Describe your changes

This makes sure loopback traffic is not affected by NAT

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/2190 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 6/24/2024 **Status:** ✅ Merged **Merged:** 6/25/2024 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `fix/skip-loopback` --- ### 📝 Commits (1) - [`2b5319c`](https://github.com/netbirdio/netbird/commit/2b5319c1416428b2fe81b349fdda21a162a93878) Add loopback ignore rule to nat chains ### 📊 Changes **4 files changed** (+63 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `client/firewall/iptables/router_linux.go` (+34 -2) 📝 `client/firewall/nftables/manager_linux.go` (+1 -1) 📝 `client/firewall/nftables/route_linux.go` (+27 -9) 📝 `client/firewall/nftables/router_linux_test.go` (+1 -1) </details> ### 📄 Description ## Describe your changes This makes sure loopback traffic is not affected by NAT ## 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:18 -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#14778