[PR #486] [MERGED] Add incoming routing rules #12669

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/486
Author: @mlsmaycon
Created: 9/29/2022
Status: Merged
Merged: 9/30/2022
Merged by: @mlsmaycon

Base: mainHead: add-incoming-rules


📝 Commits (6)

  • 1a828e3 Add incoming routing rules
  • a162183 Add nftables incoming routing rules
  • 74520db update tests to check income rules
  • 62f7d7a validate nftables rule existence before insert
  • f91d1a3 use inNatFormat
  • adc2f30 remove unnecessary variable

📊 Changes

5 files changed (+319 additions, -112 deletions)

View changed files

📝 client/internal/routemanager/firewall_linux.go (+20 -8)
📝 client/internal/routemanager/iptables_linux.go (+78 -45)
📝 client/internal/routemanager/iptables_linux_test.go (+55 -2)
📝 client/internal/routemanager/nftables_linux.go (+101 -55)
📝 client/internal/routemanager/nftables_linux_test.go (+65 -2)

📄 Description

add an income firewall rule for each routing pair the pair for the income rule has inverted source and destination

check if nftables rule exist before adding a new one

resolves #481


🔄 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/486 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 9/29/2022 **Status:** ✅ Merged **Merged:** 9/30/2022 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `add-incoming-rules` --- ### 📝 Commits (6) - [`1a828e3`](https://github.com/netbirdio/netbird/commit/1a828e37a92de5a1744c2166b903cbaf0322df10) Add incoming routing rules - [`a162183`](https://github.com/netbirdio/netbird/commit/a16218352e0621cf84190083c936290a03b16ec9) Add nftables incoming routing rules - [`74520db`](https://github.com/netbirdio/netbird/commit/74520dba610c54e1d95d64a1fb317808c302aadd) update tests to check income rules - [`62f7d7a`](https://github.com/netbirdio/netbird/commit/62f7d7a93beeda960bab7a80e73a3757a8a05b7f) validate nftables rule existence before insert - [`f91d1a3`](https://github.com/netbirdio/netbird/commit/f91d1a3d81a9b007038012d8ed7c41f407917cd6) use inNatFormat - [`adc2f30`](https://github.com/netbirdio/netbird/commit/adc2f30bfd23a8bebb5d546069d2f481a191b5d3) remove unnecessary variable ### 📊 Changes **5 files changed** (+319 additions, -112 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/routemanager/firewall_linux.go` (+20 -8) 📝 `client/internal/routemanager/iptables_linux.go` (+78 -45) 📝 `client/internal/routemanager/iptables_linux_test.go` (+55 -2) 📝 `client/internal/routemanager/nftables_linux.go` (+101 -55) 📝 `client/internal/routemanager/nftables_linux_test.go` (+65 -2) </details> ### 📄 Description add an income firewall rule for each routing pair the pair for the income rule has inverted source and destination check if nftables rule exist before adding a new one resolves #481 --- <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 02:06:24 -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#12669