netbird/client/internal/routemanager
Givi Khojanashvili 246abda46d
Add default firewall rule to allow netbird traffic (#1056)
Add a default firewall rule to allow netbird traffic to be handled 
by the access control managers.

Userspace manager behavior:
- When running on Windows, a default rule is add on Windows firewall
- For Linux, we are using one of the Kernel managers to add a single rule
- This PR doesn't handle macOS

Kernel manager behavior:
- For NFtables, if there is a filter table, an INPUT rule is added
- Iptables follows the previous flow if running on kernel mode. If running 
on userspace mode, it adds a single rule for INPUT and OUTPUT chains

A new checkerFW package has been introduced to consolidate checks across
route and access control managers.
It supports a new environment variable to skip nftables and allow iptables tests
2023-09-05 21:07:32 +02:00
..
client_test.go Prevent peer updates on flapping status and fix route score logic (#920) 2023-06-01 16:00:44 +02:00
client.go Update GitHub Actions and Enhance golangci-lint (#1075) 2023-09-04 17:03:44 +02:00
common_linux_test.go Add routing peer support (#441) 2022-09-05 09:06:35 +02:00
firewall_linux.go Add default firewall rule to allow netbird traffic (#1056) 2023-09-05 21:07:32 +02:00
firewall_nonlinux.go Add default firewall rule to allow netbird traffic (#1056) 2023-09-05 21:07:32 +02:00
firewall.go Add routing peer support (#441) 2022-09-05 09:06:35 +02:00
iptables_linux_test.go Add default firewall rule to allow netbird traffic (#1056) 2023-09-05 21:07:32 +02:00
iptables_linux.go Add default firewall rule to allow netbird traffic (#1056) 2023-09-05 21:07:32 +02:00
manager_test.go Add default firewall rule to allow netbird traffic (#1056) 2023-09-05 21:07:32 +02:00
manager.go Add default firewall rule to allow netbird traffic (#1056) 2023-09-05 21:07:32 +02:00
mock.go Feature/android dns (#943) 2023-06-12 14:43:55 +02:00
nftables_linux_test.go Add default firewall rule to allow netbird traffic (#1056) 2023-09-05 21:07:32 +02:00
nftables_linux.go Add default firewall rule to allow netbird traffic (#1056) 2023-09-05 21:07:32 +02:00
notifier.go Feature/android dns (#943) 2023-06-12 14:43:55 +02:00
router_pair.go Add route management for Android interface (#801) 2023-04-17 11:15:37 +02:00
server_android.go Routemgr error handling (#1073) 2023-08-12 11:42:36 +02:00
server_nonandroid.go Add default firewall rule to allow netbird traffic (#1056) 2023-09-05 21:07:32 +02:00
server.go Routemgr error handling (#1073) 2023-08-12 11:42:36 +02:00
systemops_android.go Add route management for Android interface (#801) 2023-04-17 11:15:37 +02:00
systemops_bsd.go split systemops for operating systems and add linux 2023-06-09 18:27:09 +02:00
systemops_linux.go split systemops for operating systems and add linux 2023-06-09 18:40:35 +02:00
systemops_nonandroid_test.go test windows 2023-06-12 16:22:53 +02:00
systemops_nonandroid.go split systemops for operating systems and add linux 2023-06-09 18:48:21 +02:00
systemops_nonlinux.go Add route management for Android interface (#801) 2023-04-17 11:15:37 +02:00
systemops_windows.go test windows 2023-06-12 16:22:53 +02:00