tailscale/tstest
Brad Fitzpatrick 75a03fc719 wgengine/magicsock: use learned DERP route as send path of last resort
If we get a packet in over some DERP and don't otherwise know how to
reply (no known DERP home or UDP endpoint), this makes us use the
DERP connection on which we received the packet to reply. This will
almost always be our own home DERP region.

This is particularly useful for large one-way nodes (such as
hello.ts.net) that don't actively reach out to other nodes, so don't
need to be told the DERP home of peers. They can instead learn the
DERP home upon getting the first connection.

This can also help nodes from a slow or misbehaving control plane.

Updates tailscale/corp#26438

Change-Id: I6241ec92828bf45982e0eb83ad5c7404df5968bc
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2025-03-07 05:37:24 -08:00
..
archtest all: cleanup unused code, part 1 (#10661) 2023-12-20 14:50:30 -08:00
deptest tstest/deptest: add DepChecker.ExtraEnv option for callers to set 2025-02-24 12:41:45 -08:00
integration wgengine/magicsock: use learned DERP route as send path of last resort 2025-03-07 05:37:24 -08:00
iosdeps feature/capture: move packet capture to feature/*, out of iOS + CLI 2025-01-24 17:52:43 -08:00
jsdeps all: use math/rand/v2 more 2024-06-05 15:24:04 -07:00
natlab all: use new LocalAPI client package location 2025-02-05 14:41:42 -08:00
nettest cmd/derper,tstest/nettest: skip network-needing test in airplane mode 2024-05-03 08:24:24 -07:00
tailmac tstest/tailmac: add support for mounting host directories in the guest (#13957) 2024-10-29 13:49:51 -04:00
tools go.{mod,sum},tstest/tools,k8s-operator,cmd/k8s-operator: autogenerate CRD API docs (#12884) 2024-07-29 11:50:27 +01:00
allocs.go
clock_test.go all: use Go 1.22 range-over-int 2024-04-16 15:32:38 -07:00
clock.go tstime: add Since method (#8622) 2023-07-14 16:50:17 -04:00
log_test.go
log.go wgengine/magicsock: disable portmapper in tunchan-faked tests 2024-04-17 21:47:38 -07:00
reflect.go net/dns: fix IsZero and Equal methods on OSConfig 2024-09-05 00:05:36 -04:00
resource.go tstest: avoid Fatal in ResourceCheck to show panic (#13790) 2024-10-14 10:02:04 +01:00
test-wishlist.md wf/firewall: allow link-local multicast for permitted local routes when the killswitch is on on Windows 2024-10-02 18:36:01 -05:00
tstest_test.go
tstest.go ipn/{conffile,ipnlocal}: start booting tailscaled from a config file w/ auth key 2023-10-17 07:12:49 -07:00