[PR #3232] [MERGED] [client] Support port ranges in peer ACLs #19759

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3232
Author: @lixmal
Created: 1/23/2025
Status: Merged
Merged: 1/27/2025
Merged by: @lixmal

Base: mainHead: port-range-acl


📝 Commits (6)

📊 Changes

18 files changed (+206 additions, -234 deletions)

View changed files

📝 client/firewall/iptables/acl_linux.go (+9 -24)
📝 client/firewall/iptables/manager_linux_test.go (+5 -4)
📝 client/firewall/iptables/router_linux.go (+2 -2)
📝 client/firewall/iptables/router_linux_test.go (+6 -6)
📝 client/firewall/manager/port.go (+6 -2)
📝 client/firewall/nftables/acl_linux.go (+2 -38)
📝 client/firewall/nftables/manager_linux_test.go (+4 -4)
📝 client/firewall/nftables/router_linux.go (+3 -3)
📝 client/firewall/nftables/router_linux_test.go (+6 -6)
📝 client/firewall/uspfilter/rule.go (+4 -2)
📝 client/firewall/uspfilter/uspfilter.go (+23 -23)
📝 client/firewall/uspfilter/uspfilter_bench_test.go (+6 -6)
📝 client/firewall/uspfilter/uspfilter_test.go (+6 -6)
📝 client/internal/acl/manager.go (+8 -5)
📝 client/internal/dnsfwd/manager.go (+1 -1)
📝 client/internal/engine.go (+1 -1)
📝 management/proto/management.pb.go (+113 -101)
📝 management/proto/management.proto (+1 -0)

📄 Description

Describe your changes

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/3232 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 1/23/2025 **Status:** ✅ Merged **Merged:** 1/27/2025 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `main` ← **Head:** `port-range-acl` --- ### 📝 Commits (6) - [`862d548`](https://github.com/netbirdio/netbird/commit/862d548d4d0e9699fd13afb9bbb8db7a177ee8c7) Support port ranges - [`b951fb4`](https://github.com/netbirdio/netbird/commit/b951fb4aec1e193519a6ae4a045aeaf046c61ae8) Use uppercase field name - [`0837864`](https://github.com/netbirdio/netbird/commit/0837864cfcf19eee06649bac97fd8b828acbc585) Fix port - [`9afb61d`](https://github.com/netbirdio/netbird/commit/9afb61db39d04b1428900e2b9c249ac493693fdc) Remove unused function - [`57a86cb`](https://github.com/netbirdio/netbird/commit/57a86cbd51c90d607fb83596cbf6c6b9c9679090) Remove obsolete import - [`0c2ad5d`](https://github.com/netbirdio/netbird/commit/0c2ad5d873eaf29fff839d6c39fbc9d785d3aecf) Fix buggy test ### 📊 Changes **18 files changed** (+206 additions, -234 deletions) <details> <summary>View changed files</summary> 📝 `client/firewall/iptables/acl_linux.go` (+9 -24) 📝 `client/firewall/iptables/manager_linux_test.go` (+5 -4) 📝 `client/firewall/iptables/router_linux.go` (+2 -2) 📝 `client/firewall/iptables/router_linux_test.go` (+6 -6) 📝 `client/firewall/manager/port.go` (+6 -2) 📝 `client/firewall/nftables/acl_linux.go` (+2 -38) 📝 `client/firewall/nftables/manager_linux_test.go` (+4 -4) 📝 `client/firewall/nftables/router_linux.go` (+3 -3) 📝 `client/firewall/nftables/router_linux_test.go` (+6 -6) 📝 `client/firewall/uspfilter/rule.go` (+4 -2) 📝 `client/firewall/uspfilter/uspfilter.go` (+23 -23) 📝 `client/firewall/uspfilter/uspfilter_bench_test.go` (+6 -6) 📝 `client/firewall/uspfilter/uspfilter_test.go` (+6 -6) 📝 `client/internal/acl/manager.go` (+8 -5) 📝 `client/internal/dnsfwd/manager.go` (+1 -1) 📝 `client/internal/engine.go` (+1 -1) 📝 `management/proto/management.pb.go` (+113 -101) 📝 `management/proto/management.proto` (+1 -0) </details> ### 📄 Description ## Describe your changes ## Issue ticket number and link ### 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 --- <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:06:25 -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#19759