[PR #441] [MERGED] Add routing peer support #12627

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/441
Author: @mlsmaycon
Created: 8/24/2022
Status: Merged
Merged: 9/5/2022
Merged by: @mlsmaycon

Base: mainHead: feature/routing-peers-support


📝 Commits (10+)

  • b913bdb Add routing peer support
  • 115728c Align Route changes and status new method
  • f2a2fc3 add get peer status test
  • 4e4fc8b Rename methods and types with network
  • 3df1399 reorganize code and handle context done
  • aba1ad5 handle errors and make consts and global vars private
  • ffc01f2 handle errors
  • 9e249b8 handle iptables errors and document
  • a86726d unexport consts and types and further docs
  • b090e7c handle possible default route

📊 Changes

26 files changed (+3030 additions, -35 deletions)

View changed files

📝 README.md (+1 -1)
📝 client/internal/engine.go (+36 -0)
📝 client/internal/engine_test.go (+140 -0)
client/internal/routemanager/client.go (+285 -0)
client/internal/routemanager/common_linux_test.go (+75 -0)
client/internal/routemanager/firewall.go (+12 -0)
client/internal/routemanager/firewall_linux.go (+55 -0)
client/internal/routemanager/firewall_nonlinux.go (+27 -0)
client/internal/routemanager/iptables_linux.go (+403 -0)
client/internal/routemanager/iptables_linux_test.go (+247 -0)
client/internal/routemanager/manager.go (+181 -0)
client/internal/routemanager/manager_test.go (+370 -0)
client/internal/routemanager/mock.go (+27 -0)
client/internal/routemanager/nftables_linux.go (+384 -0)
client/internal/routemanager/nftables_linux_test.go (+270 -0)
client/internal/routemanager/server.go (+67 -0)
client/internal/routemanager/systemops.go (+55 -0)
client/internal/routemanager/systemops_linux.go (+73 -0)
client/internal/routemanager/systemops_nonlinux.go (+41 -0)
client/internal/routemanager/systemops_test.go (+68 -0)

...and 6 more files

📄 Description

Peer will handle received routes and act as client or routers


🔄 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/441 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 8/24/2022 **Status:** ✅ Merged **Merged:** 9/5/2022 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `feature/routing-peers-support` --- ### 📝 Commits (10+) - [`b913bdb`](https://github.com/netbirdio/netbird/commit/b913bdb9c11e4633de7ba648be669572e9cd435b) Add routing peer support - [`115728c`](https://github.com/netbirdio/netbird/commit/115728c990c86c756db50ea6aa4e9aba47f07af5) Align Route changes and status new method - [`f2a2fc3`](https://github.com/netbirdio/netbird/commit/f2a2fc389c66680a2ea01725544ef3440783f362) add get peer status test - [`4e4fc8b`](https://github.com/netbirdio/netbird/commit/4e4fc8b8a51c7f3bcd542c3d096a6655b9617de2) Rename methods and types with network - [`3df1399`](https://github.com/netbirdio/netbird/commit/3df1399c858aa4ab8ea385b96c6dee7b6d07f7ea) reorganize code and handle context done - [`aba1ad5`](https://github.com/netbirdio/netbird/commit/aba1ad5dbc7167d7ceae2fe801079f187203bb26) handle errors and make consts and global vars private - [`ffc01f2`](https://github.com/netbirdio/netbird/commit/ffc01f2f14c212c34941d42f5ae5843d0d51be80) handle errors - [`9e249b8`](https://github.com/netbirdio/netbird/commit/9e249b852fb7a22d6222b13b178e83a95799d20d) handle iptables errors and document - [`a86726d`](https://github.com/netbirdio/netbird/commit/a86726d1feb75c01fa75bb80a447872acd6bc6ed) unexport consts and types and further docs - [`b090e7c`](https://github.com/netbirdio/netbird/commit/b090e7c2b55d95e247e7f6fe04665aa47f5af2fe) handle possible default route ### 📊 Changes **26 files changed** (+3030 additions, -35 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -1) 📝 `client/internal/engine.go` (+36 -0) 📝 `client/internal/engine_test.go` (+140 -0) ➕ `client/internal/routemanager/client.go` (+285 -0) ➕ `client/internal/routemanager/common_linux_test.go` (+75 -0) ➕ `client/internal/routemanager/firewall.go` (+12 -0) ➕ `client/internal/routemanager/firewall_linux.go` (+55 -0) ➕ `client/internal/routemanager/firewall_nonlinux.go` (+27 -0) ➕ `client/internal/routemanager/iptables_linux.go` (+403 -0) ➕ `client/internal/routemanager/iptables_linux_test.go` (+247 -0) ➕ `client/internal/routemanager/manager.go` (+181 -0) ➕ `client/internal/routemanager/manager_test.go` (+370 -0) ➕ `client/internal/routemanager/mock.go` (+27 -0) ➕ `client/internal/routemanager/nftables_linux.go` (+384 -0) ➕ `client/internal/routemanager/nftables_linux_test.go` (+270 -0) ➕ `client/internal/routemanager/server.go` (+67 -0) ➕ `client/internal/routemanager/systemops.go` (+55 -0) ➕ `client/internal/routemanager/systemops_linux.go` (+73 -0) ➕ `client/internal/routemanager/systemops_nonlinux.go` (+41 -0) ➕ `client/internal/routemanager/systemops_test.go` (+68 -0) _...and 6 more files_ </details> ### 📄 Description Peer will handle received routes and act as client or routers --- <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:06:18 -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#12627