netbird/client/internal/routemanager
Viktor Liu 2475473227
Support client default routes for Linux (#1667)
All routes are now installed in a custom netbird routing table.
Management and wireguard traffic is now marked with a custom fwmark.
When the mark is present the traffic is routed via the main routing table, bypassing the VPN.
When the mark is absent the traffic is routed via the netbird routing table, if:
- there's no match in the main routing table
- it would match the default route in the routing table

IPv6 traffic is blocked when a default route IPv4 route is configured to avoid leakage.
2024-03-21 16:49:28 +01: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 Support client default routes for Linux (#1667) 2024-03-21 16:49:28 +01:00
manager_test.go Support client default routes for Linux (#1667) 2024-03-21 16:49:28 +01:00
manager.go Support client default routes for Linux (#1667) 2024-03-21 16:49:28 +01:00
mock.go Support client default routes for Linux (#1667) 2024-03-21 16:49:28 +01:00
notifier.go Fix route change notifier (#1431) 2024-01-03 11:54:19 +01:00
server_android.go Add routes and dns servers to status command (#1680) 2024-03-12 19:06:16 +01:00
server_nonandroid.go Support client default routes for Linux (#1667) 2024-03-21 16:49:28 +01:00
server.go Routemgr error handling (#1073) 2023-08-12 11:42:36 +02:00
systemops_android.go Support client default routes for Linux (#1667) 2024-03-21 16:49:28 +01:00
systemops_bsd_nonios.go Support client default routes for Linux (#1667) 2024-03-21 16:49:28 +01:00
systemops_bsd.go Support client default routes for Linux (#1667) 2024-03-21 16:49:28 +01:00
systemops_ios.go Support client default routes for Linux (#1667) 2024-03-21 16:49:28 +01:00
systemops_linux_test.go Support client default routes for Linux (#1667) 2024-03-21 16:49:28 +01:00
systemops_linux.go Support client default routes for Linux (#1667) 2024-03-21 16:49:28 +01:00
systemops_nonandroid_test.go Support client default routes for Linux (#1667) 2024-03-21 16:49:28 +01:00
systemops_nonandroid.go Support client default routes for Linux (#1667) 2024-03-21 16:49:28 +01:00
systemops_nonlinux_test.go Support client default routes for Linux (#1667) 2024-03-21 16:49:28 +01:00
systemops_nonlinux.go Support client default routes for Linux (#1667) 2024-03-21 16:49:28 +01:00
systemops_windows.go Support client default routes for Linux (#1667) 2024-03-21 16:49:28 +01:00