netbird/client/firewall/iptables
Viktor Liu 55126f990c
[client] Use native windows sock opts to avoid routing loops (#4314)
- Move `util/grpc` and `util/net` to `client` so `internal` packages can be accessed
 - Add methods to return the next best interface after the NetBird interface.
- Use `IP_UNICAST_IF` sock opt to force the outgoing interface for the NetBird `net.Dialer` and `net.ListenerConfig` to avoid routing loops. The interface is picked by the new route lookup method.
- Some refactoring to avoid import cycles
- Old behavior is available through `NB_USE_LEGACY_ROUTING=true` env var
2025-09-20 09:31:04 +02:00
..
acl_linux.go [client] Use native windows sock opts to avoid routing loops (#4314) 2025-09-20 09:31:04 +02:00
manager_linux_test.go [client] Fix rule order for deny rules in peer ACLs (#4147) 2025-08-18 11:17:00 +02:00
manager_linux.go [client] Add block inbound flag to disallow inbound connections of any kind (#3897) 2025-06-03 10:53:27 +02:00
router_linux_test.go [client] Use native windows sock opts to avoid routing loops (#4314) 2025-09-20 09:31:04 +02:00
router_linux.go [client] Use native windows sock opts to avoid routing loops (#4314) 2025-09-20 09:31:04 +02:00
rule.go [client, management] Add port forwarding (#3275) 2025-03-09 16:06:43 +01:00
rulestore_linux.go [client] Persist route selection (#2810) 2024-12-02 17:55:02 +01:00
state_linux.go [client] Ignore candidates that are part of the the wireguard subnet (#3472) 2025-03-10 13:59:21 +01:00