Files
tailscale/wgengine/netstack
KevinLiang10 03461ea7fb wgengine/netstack: add local tailscale service IPs to route and terminate locally (#18461)
* wgengine/netstack: add local tailscale service IPs to route and terminate locally

This commit adds the tailscales service IPs served locally to OS routes, and
make interception to packets so that the traffic terminates locally without
making affects to the HA traffics.

Fixes tailscale/corp#34048

Signed-off-by: KevinLiang10 <[email protected]>

* fix test

Signed-off-by: KevinLiang10 <[email protected]>

* add ready field to avoid accessing lb before netstack starts

Signed-off-by: KevinLiang10 <[email protected]>

* wgengine/netstack: store values from lb to avoid acquiring a lock

Signed-off-by: KevinLiang10 <[email protected]>

* add active services to netstack on starts with stored prefs.

Signed-off-by: KevinLiang10 <[email protected]>

* fix comments

Signed-off-by: KevinLiang10 <[email protected]>

* update comments

Signed-off-by: KevinLiang10 <[email protected]>

---------

Signed-off-by: KevinLiang10 <[email protected]>
2026-01-30 16:46:03 -05:00
..