[PR #940] [MERGED] Fix routes allow acl rule #13170

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

📋 Pull Request Information

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

Base: mainHead: fix-routes-allow-acl-rule


📝 Commits (4)

  • 1f4d394 Allow manual routes in ACL chains for iptables and nftables
  • e042e7b Fix iptables firewall manager tests
  • c2e7b27 Fix tests for nftables
  • a68fc88 Fix missed rename

📊 Changes

9 files changed (+245 additions, -39 deletions)

View changed files

📝 client/firewall/iptables/manager_linux.go (+22 -19)
📝 client/firewall/iptables/manager_linux_test.go (+53 -2)
📝 client/firewall/nftables/manager_linux.go (+80 -7)
📝 client/firewall/nftables/manager_linux_test.go (+62 -5)
📝 client/internal/acl/manager.go (+3 -2)
📝 client/internal/acl/manager_create.go (+1 -1)
📝 client/internal/acl/manager_create_linux.go (+3 -3)
client/internal/acl/mocks/README.md (+7 -0)
📝 client/internal/acl/mocks/iface_mapper.go (+14 -0)

📄 Description

Describe your changes

Modify rules in iptables and nftables to accept all traffic not from netbird network but routed through it.

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/940 **Author:** [@gigovich](https://github.com/gigovich) **Created:** 6/7/2023 **Status:** ✅ Merged **Merged:** 6/7/2023 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `fix-routes-allow-acl-rule` --- ### 📝 Commits (4) - [`1f4d394`](https://github.com/netbirdio/netbird/commit/1f4d394dca78bff36e2e5a566375638a6ee3e15e) Allow manual routes in ACL chains for iptables and nftables - [`e042e7b`](https://github.com/netbirdio/netbird/commit/e042e7b4fde1b8c0695b8e0528ad0bfad9304e5a) Fix iptables firewall manager tests - [`c2e7b27`](https://github.com/netbirdio/netbird/commit/c2e7b278b74ecdb453f4d12abbc9c7db17613aed) Fix tests for nftables - [`a68fc88`](https://github.com/netbirdio/netbird/commit/a68fc8876e6220db87c73f7ec88d7fba88fec54b) Fix missed rename ### 📊 Changes **9 files changed** (+245 additions, -39 deletions) <details> <summary>View changed files</summary> 📝 `client/firewall/iptables/manager_linux.go` (+22 -19) 📝 `client/firewall/iptables/manager_linux_test.go` (+53 -2) 📝 `client/firewall/nftables/manager_linux.go` (+80 -7) 📝 `client/firewall/nftables/manager_linux_test.go` (+62 -5) 📝 `client/internal/acl/manager.go` (+3 -2) 📝 `client/internal/acl/manager_create.go` (+1 -1) 📝 `client/internal/acl/manager_create_linux.go` (+3 -3) ➕ `client/internal/acl/mocks/README.md` (+7 -0) 📝 `client/internal/acl/mocks/iface_mapper.go` (+14 -0) </details> ### 📄 Description ## Describe your changes Modify rules in iptables and nftables to accept all traffic not from netbird network but routed through it. ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [x] 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 02:07:39 -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#13170