[PR #2100] [MERGED] [management, client] Add access control support to network routes #16430

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2100
Author: @bcmmbaga
Created: 6/6/2024
Status: Merged
Merged: 10/2/2024
Merged by: @lixmal

Base: mainHead: feature/network-route-access-control


📝 Commits (10+)

  • ab78a62 Extend network route with access control groups (#2027)
  • 90b211a Merge branch 'refs/heads/main' into feature/network-route-access-control
  • f1817f3 Fix merge
  • dbb80c7 Generate network maps for routed network (#2068)
  • 0dd69ca Merge branch 'refs/heads/main' into feature/network-route-access-control
  • 38b23a2 Refactor code to add context
  • 8dba8f1 Add network route access control on client (#2298)
  • aa4e7a8 [management] Consolidate network map firewall rules into summaries (#2398)
  • 3c538c6 Fix port validation logic for ALL and ICMP protocols
  • efbd29c Add permissive legacy routing rules if the management server is outdated (#2408)

📊 Changes

48 files changed (+4601 additions, -2362 deletions)

View changed files

📝 .github/workflows/golangci-lint.yml (+1 -1)
📝 client/firewall/iface.go (+3 -1)
📝 client/firewall/iptables/acl_linux.go (+31 -143)
📝 client/firewall/iptables/manager_linux.go (+49 -15)
📝 client/firewall/iptables/manager_linux_test.go (+27 -27)
📝 client/firewall/iptables/router_linux.go (+323 -213)
📝 client/firewall/iptables/router_linux_test.go (+193 -75)
📝 client/firewall/manager/firewall.go (+111 -14)
client/firewall/manager/firewall_test.go (+192 -0)
📝 client/firewall/manager/routerpair.go (+12 -4)
📝 client/firewall/nftables/acl_linux.go (+49 -500)
📝 client/firewall/nftables/manager_linux.go (+98 -23)
📝 client/firewall/nftables/manager_linux_test.go (+48 -28)
client/firewall/nftables/route_linux.go (+0 -431)
client/firewall/nftables/router_linux.go (+798 -0)
📝 client/firewall/nftables/router_linux_test.go (+520 -85)
📝 client/firewall/test/cases_linux.go (+11 -9)
📝 client/firewall/uspfilter/uspfilter.go (+31 -11)
📝 client/firewall/uspfilter/uspfilter_test.go (+10 -10)
client/internal/acl/id/id.go (+25 -0)

...and 28 more files

📄 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/2100 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 6/6/2024 **Status:** ✅ Merged **Merged:** 10/2/2024 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `main` ← **Head:** `feature/network-route-access-control` --- ### 📝 Commits (10+) - [`ab78a62`](https://github.com/netbirdio/netbird/commit/ab78a625ff353930b62247d0872a7819832ad479) Extend network route with access control groups (#2027) - [`90b211a`](https://github.com/netbirdio/netbird/commit/90b211a72c7c3a34756bb0add2c4f03f692a0405) Merge branch 'refs/heads/main' into feature/network-route-access-control - [`f1817f3`](https://github.com/netbirdio/netbird/commit/f1817f3623c5ab7a3b13497c193f2fef7c03a156) Fix merge - [`dbb80c7`](https://github.com/netbirdio/netbird/commit/dbb80c778eab6869b8a203998758e93b04167de4) Generate network maps for routed network (#2068) - [`0dd69ca`](https://github.com/netbirdio/netbird/commit/0dd69ca0052298af65f03db789017a04c946f474) Merge branch 'refs/heads/main' into feature/network-route-access-control - [`38b23a2`](https://github.com/netbirdio/netbird/commit/38b23a21f41c033de21b748f1db756e2ea57cecd) Refactor code to add context - [`8dba8f1`](https://github.com/netbirdio/netbird/commit/8dba8f19c1ef967fb077ffafb0127dbaad57871f) Add network route access control on client (#2298) - [`aa4e7a8`](https://github.com/netbirdio/netbird/commit/aa4e7a813a8e9aed72f08b51211a3555cf904506) [management] Consolidate network map firewall rules into summaries (#2398) - [`3c538c6`](https://github.com/netbirdio/netbird/commit/3c538c6495208c7aedc821e70772aa8e2068130c) Fix port validation logic for ALL and ICMP protocols - [`efbd29c`](https://github.com/netbirdio/netbird/commit/efbd29cc05be7f10a76ac9ab7b62bca6bbc660e0) Add permissive legacy routing rules if the management server is outdated (#2408) ### 📊 Changes **48 files changed** (+4601 additions, -2362 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/golangci-lint.yml` (+1 -1) 📝 `client/firewall/iface.go` (+3 -1) 📝 `client/firewall/iptables/acl_linux.go` (+31 -143) 📝 `client/firewall/iptables/manager_linux.go` (+49 -15) 📝 `client/firewall/iptables/manager_linux_test.go` (+27 -27) 📝 `client/firewall/iptables/router_linux.go` (+323 -213) 📝 `client/firewall/iptables/router_linux_test.go` (+193 -75) 📝 `client/firewall/manager/firewall.go` (+111 -14) ➕ `client/firewall/manager/firewall_test.go` (+192 -0) 📝 `client/firewall/manager/routerpair.go` (+12 -4) 📝 `client/firewall/nftables/acl_linux.go` (+49 -500) 📝 `client/firewall/nftables/manager_linux.go` (+98 -23) 📝 `client/firewall/nftables/manager_linux_test.go` (+48 -28) ➖ `client/firewall/nftables/route_linux.go` (+0 -431) ➕ `client/firewall/nftables/router_linux.go` (+798 -0) 📝 `client/firewall/nftables/router_linux_test.go` (+520 -85) 📝 `client/firewall/test/cases_linux.go` (+11 -9) 📝 `client/firewall/uspfilter/uspfilter.go` (+31 -11) 📝 `client/firewall/uspfilter/uspfilter_test.go` (+10 -10) ➕ `client/internal/acl/id/id.go` (+25 -0) _...and 28 more files_ </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 04:06:07 -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#16430