[PR #2727] [MERGED] [client] Add table filter rules using iptables #20351

Open
opened 2026-08-05 05:07:09 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2727
Author: @lixmal
Created: 10/11/2024
Status: Merged
Merged: 10/12/2024
Merged by: @mlsmaycon

Base: mainHead: fix-iptables-nft


📝 Commits (5)

  • b019592 Add table filter rules using iptables
  • 3d57ef9 Move loadFilterTable back to its place
  • 6c3e403 Add counter expr to test
  • 753eca6 Fix multierr on removal
  • 56f1bfe Delete iptables rules only if they exist

📊 Changes

3 files changed (+148 additions, -86 deletions)

View changed files

📝 client/firewall/nftables/manager_linux.go (+26 -21)
📝 client/firewall/nftables/manager_linux_test.go (+1 -0)
📝 client/firewall/nftables/router_linux.go (+121 -65)

📄 Description

This specifically concerns the established/related rule since this one is not compatible with iptables-nft even if it is generated the same way by iptables-translate.

Describe your changes

#2725

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/2727 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 10/11/2024 **Status:** ✅ Merged **Merged:** 10/12/2024 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `fix-iptables-nft` --- ### 📝 Commits (5) - [`b019592`](https://github.com/netbirdio/netbird/commit/b019592f209998736880454628878f947f63190a) Add table filter rules using iptables - [`3d57ef9`](https://github.com/netbirdio/netbird/commit/3d57ef9fb9d7b7a2a4f87e28c75da572b93ac2f1) Move loadFilterTable back to its place - [`6c3e403`](https://github.com/netbirdio/netbird/commit/6c3e40303cdc81d03292bda21c3aad5d9ca7eb30) Add counter expr to test - [`753eca6`](https://github.com/netbirdio/netbird/commit/753eca6d4e17ccd3d00799e4d5ce14fba0dfba82) Fix multierr on removal - [`56f1bfe`](https://github.com/netbirdio/netbird/commit/56f1bfe58f53871f0628132e53c0b703ed42b9d4) Delete iptables rules only if they exist ### 📊 Changes **3 files changed** (+148 additions, -86 deletions) <details> <summary>View changed files</summary> 📝 `client/firewall/nftables/manager_linux.go` (+26 -21) 📝 `client/firewall/nftables/manager_linux_test.go` (+1 -0) 📝 `client/firewall/nftables/router_linux.go` (+121 -65) </details> ### 📄 Description This specifically concerns the established/related rule since this one is not compatible with iptables-nft even if it is generated the same way by iptables-translate. ## Describe your changes ## Issue ticket number and link #2725 ### 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 05:07:09 -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#20351