netbird/client/firewall/uspfilter
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
..
allow_netbird_linux.go Add default firewall rule to allow netbird traffic (#1056) 2023-09-05 21:07:32 +02:00
allow_netbird_windows.go Add default firewall rule to allow netbird traffic (#1056) 2023-09-05 21:07:32 +02:00
allow_netbird.go Add default firewall rule to allow netbird traffic (#1056) 2023-09-05 21:07:32 +02:00
rule.go Feat fake dns address (#902) 2023-06-08 13:46:57 +04:00
uspfilter_test.go Add default firewall rule to allow netbird traffic (#1056) 2023-09-05 21:07:32 +02:00
uspfilter.go Add default firewall rule to allow netbird traffic (#1056) 2023-09-05 21:07:32 +02:00