[PR #1025] [MERGED] Feat optimize acl performance iptables #13236

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1025
Author: @gigovich
Created: 7/21/2023
Status: Merged
Merged: 7/24/2023
Merged by: @mlsmaycon

Base: mainHead: feat-optimize-acl-performance-iptables


📝 Commits (7)

  • 235528d use ipset for iptables
  • fe980ab Update unit-tests for iptables
  • f972c77 Remove debug code
  • 0f241e9 Update dependencies
  • 6d659ba Create separate sets for dPort and sPort rules
  • b29ad60 Fix iptables tests
  • 4d7ba11 Fix 0.0.0.0 processing in iptables with ipset

📊 Changes

5 files changed (+225 additions, -33 deletions)

View changed files

📝 client/firewall/iptables/manager_linux.go (+123 -18)
📝 client/firewall/iptables/manager_linux_test.go (+94 -13)
📝 client/firewall/iptables/rule.go (+5 -2)
📝 go.mod (+1 -0)
📝 go.sum (+2 -0)

📄 Description

Describe your changes

Use ipset (via Netlink) to optimize rule count for iptables

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/1025 **Author:** [@gigovich](https://github.com/gigovich) **Created:** 7/21/2023 **Status:** ✅ Merged **Merged:** 7/24/2023 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `feat-optimize-acl-performance-iptables` --- ### 📝 Commits (7) - [`235528d`](https://github.com/netbirdio/netbird/commit/235528d8b0a43b8839765d5cfc516ff84423e565) use ipset for iptables - [`fe980ab`](https://github.com/netbirdio/netbird/commit/fe980abc967f51c95a2ffeb52d7305170ace8454) Update unit-tests for iptables - [`f972c77`](https://github.com/netbirdio/netbird/commit/f972c775da89d7383fa7b9831b65b68e9e5e2dd8) Remove debug code - [`0f241e9`](https://github.com/netbirdio/netbird/commit/0f241e91e18abd3d5dd147c41bad54c185df0de9) Update dependencies - [`6d659ba`](https://github.com/netbirdio/netbird/commit/6d659ba5e57fcb289d65d784bf82b40e4e135d31) Create separate sets for dPort and sPort rules - [`b29ad60`](https://github.com/netbirdio/netbird/commit/b29ad60c7e3f88ef2de8e3868c026a2770c41567) Fix iptables tests - [`4d7ba11`](https://github.com/netbirdio/netbird/commit/4d7ba11389c36c597346b899cd4df058726be964) Fix 0.0.0.0 processing in iptables with ipset ### 📊 Changes **5 files changed** (+225 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `client/firewall/iptables/manager_linux.go` (+123 -18) 📝 `client/firewall/iptables/manager_linux_test.go` (+94 -13) 📝 `client/firewall/iptables/rule.go` (+5 -2) 📝 `go.mod` (+1 -0) 📝 `go.sum` (+2 -0) </details> ### 📄 Description ## Describe your changes Use ipset (via Netlink) to optimize rule count for iptables ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [x] It is a refactor - [x] 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 02:07:51 -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#13236