[PR #921] [MERGED] Squash firewall rules by protocol if they affects all peers #14528

Closed
opened 2026-08-05 03:05:48 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/921
Author: @gigovich
Created: 6/1/2023
Status: Merged
Merged: 6/2/2023
Merged by: @gigovich

Base: mainHead: feat-optimize-firewall-rules-count


📝 Commits (1)

  • 8b76590 Squash firewall rules by protocoll if they affects all peers

📊 Changes

3 files changed (+337 additions, -48 deletions)

View changed files

📝 client/internal/acl/manager.go (+136 -13)
📝 client/internal/acl/manager_test.go (+200 -28)
📝 client/internal/engine.go (+1 -7)

📄 Description

Describe your changes

Squash firewall "accept policy" rules by protocol type if they affect all peers in the network, and the network map doesn't contain any other rules for the same protocol with port definitions or drop policy.

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/921 **Author:** [@gigovich](https://github.com/gigovich) **Created:** 6/1/2023 **Status:** ✅ Merged **Merged:** 6/2/2023 **Merged by:** [@gigovich](https://github.com/gigovich) **Base:** `main` ← **Head:** `feat-optimize-firewall-rules-count` --- ### 📝 Commits (1) - [`8b76590`](https://github.com/netbirdio/netbird/commit/8b76590137a1fb79d1e5f83a893c072c152ad269) Squash firewall rules by protocoll if they affects all peers ### 📊 Changes **3 files changed** (+337 additions, -48 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/acl/manager.go` (+136 -13) 📝 `client/internal/acl/manager_test.go` (+200 -28) 📝 `client/internal/engine.go` (+1 -7) </details> ### 📄 Description ## Describe your changes Squash firewall "accept policy" rules by protocol type if they affect all peers in the network, and the network map doesn't contain any other rules for the same protocol with port definitions or drop policy. ## 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 03:05:48 -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#14528