You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/wgengine/router
Nick Khyl 1608831c33 wgengine/router: use quad-100 as the nexthop on Windows
Windows requires routes to have a nexthop. Routes created using the interface's local IP address or an unspecified IP address ("0.0.0.0" or "::") as the nexthop are considered on-link routes. Notably, Windows treats on-link subnet routes differently, reserving the last IP in the range as the broadcast IP and therefore prohibiting TCP connections to it, resulting in WSA error 10049: "The requested address is not valid in its context. This does not happen with single-host routes, such as routes to Tailscale IP addresses, but becomes a problem with advertised subnets when all IPs in the range should be reachable.

Before Windows 8, only routes created with an unspecified IP address were considered on-link, so our previous approach of using the interface's own IP as the nexthop likely worked on Windows 7.

This PR updates configureInterface to use the TailscaleServiceIP (100.100.100.100) and its IPv6 counterpart as the nexthop for subnet routes.

Fixes tailscale/support-escalations#57

Signed-off-by: Nick Khyl <nickk@tailscale.com>
2 months ago
..
callback.go wgengine/router: implement UpdateMagicsockPort for CallbackRouter (#10494) 10 months ago
consolidating_router.go wgengine/router: consolidate routes before reconfiguring router for mobile clients 5 months ago
consolidating_router_test.go wgengine/router: consolidate routes before reconfiguring router for mobile clients 5 months ago
ifconfig_windows.go wgengine/router: use quad-100 as the nexthop on Windows 2 months ago
ifconfig_windows_test.go all: use Go 1.22 range-over-int 5 months ago
router.go various: implement stateful firewalling on Linux (#12025) 5 months ago
router_darwin.go health, all: remove health.Global, finish plumbing health.Tracker 5 months ago
router_default.go health, all: remove health.Global, finish plumbing health.Tracker 5 months ago
router_fake.go util/linuxfw, wgengine: allow ingress to magicsock UDP port on Linux (#10370) 10 months ago
router_freebsd.go health, all: remove health.Global, finish plumbing health.Tracker 5 months ago
router_linux.go health: begin work to use structured health warnings instead of strings, pipe changes into ipn.Notify (#12406) 3 months ago
router_linux_test.go wgengine/router: print Docker warning when stateful filtering is enabled 5 months ago
router_openbsd.go health, all: remove health.Global, finish plumbing health.Tracker 5 months ago
router_test.go various: implement stateful firewalling on Linux (#12025) 5 months ago
router_userspace_bsd.go health, all: remove health.Global, finish plumbing health.Tracker 5 months ago
router_windows.go cmd/tailscaled, net/dns, wgengine/router: start Windows child processes with DETACHED_PROCESS when I/O is being piped 3 months ago
router_windows_test.go wgengine/router: look up absolute path to netsh.exe on Windows 8 months ago
runner.go all: update copyright and license headers 2 years ago