[PR #3104] [CLOSED] [client] Add userspace firewall stats #19338

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3104
Author: @lixmal
Created: 12/23/2024
Status: Closed

Base: mainHead: conntrack-stats


📝 Commits (3)

📊 Changes

20 files changed (+636 additions, -126 deletions)

View changed files

📝 .github/workflows/golangci-lint.yml (+1 -1)
📝 client/firewall/iptables/manager_linux.go (+5 -0)
📝 client/firewall/manager/firewall.go (+3 -0)
client/firewall/manager/stats.go (+107 -0)
📝 client/firewall/nftables/manager_linux.go (+5 -0)
📝 client/firewall/uspfilter/allow_netbird.go (+3 -3)
📝 client/firewall/uspfilter/allow_netbird_windows.go (+3 -3)
📝 client/firewall/uspfilter/conntrack/common_test.go (+6 -6)
📝 client/firewall/uspfilter/conntrack/icmp.go (+20 -3)
📝 client/firewall/uspfilter/conntrack/icmp_test.go (+5 -5)
client/firewall/uspfilter/conntrack/stats.go (+172 -0)
📝 client/firewall/uspfilter/conntrack/tcp.go (+29 -6)
📝 client/firewall/uspfilter/conntrack/tcp_test.go (+36 -36)
📝 client/firewall/uspfilter/conntrack/udp.go (+18 -3)
📝 client/firewall/uspfilter/conntrack/udp_test.go (+12 -12)
📝 client/firewall/uspfilter/uspfilter.go (+43 -40)
📝 client/firewall/uspfilter/uspfilter_bench_test.go (+109 -0)
📝 client/firewall/uspfilter/uspfilter_test.go (+2 -2)
📝 client/internal/engine.go (+10 -2)
📝 client/server/debug.go (+47 -4)

📄 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/3104 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 12/23/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `conntrack-stats` --- ### 📝 Commits (3) - [`f57bc60`](https://github.com/netbirdio/netbird/commit/f57bc604a8d105bdf8910fe907cbdb9512d0f70e) Add stats collection - [`b8cb3c9`](https://github.com/netbirdio/netbird/commit/b8cb3c968a3404c6b497bf43cbd1163582a80754) Ignore testIn spelling - [`572bea6`](https://github.com/netbirdio/netbird/commit/572bea6a718be862bfcd6729e510d95e0ad37a6f) Simplify debug code ### 📊 Changes **20 files changed** (+636 additions, -126 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/golangci-lint.yml` (+1 -1) 📝 `client/firewall/iptables/manager_linux.go` (+5 -0) 📝 `client/firewall/manager/firewall.go` (+3 -0) ➕ `client/firewall/manager/stats.go` (+107 -0) 📝 `client/firewall/nftables/manager_linux.go` (+5 -0) 📝 `client/firewall/uspfilter/allow_netbird.go` (+3 -3) 📝 `client/firewall/uspfilter/allow_netbird_windows.go` (+3 -3) 📝 `client/firewall/uspfilter/conntrack/common_test.go` (+6 -6) 📝 `client/firewall/uspfilter/conntrack/icmp.go` (+20 -3) 📝 `client/firewall/uspfilter/conntrack/icmp_test.go` (+5 -5) ➕ `client/firewall/uspfilter/conntrack/stats.go` (+172 -0) 📝 `client/firewall/uspfilter/conntrack/tcp.go` (+29 -6) 📝 `client/firewall/uspfilter/conntrack/tcp_test.go` (+36 -36) 📝 `client/firewall/uspfilter/conntrack/udp.go` (+18 -3) 📝 `client/firewall/uspfilter/conntrack/udp_test.go` (+12 -12) 📝 `client/firewall/uspfilter/uspfilter.go` (+43 -40) 📝 `client/firewall/uspfilter/uspfilter_bench_test.go` (+109 -0) 📝 `client/firewall/uspfilter/uspfilter_test.go` (+2 -2) 📝 `client/internal/engine.go` (+10 -2) 📝 `client/server/debug.go` (+47 -4) </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:05:53 -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#19338