tailscale/tstest/integration
Brad Fitzpatrick 0157000cab tstest/natlab: fix IPv6 tests, remove TODOs
The reason they weren't working was because the cmd/tta agent in the
guest was dialing out to the test and the vnet couldn't map its global
unicast IPv6 address to a node as it was just using a
map[netip.Addr]*node and blindly trusting the *node was
populated. Instead, it was nil, so the agent connection fetching
didn't work for its RoundTripper and the test could never drive the
node. That map worked for IPv4 but for IPv6 we need to use the method
that takes into account the node's IPv6 SLAAC address. Most call sites
had been converted but I'd missed that one.

Also clean up some debug, and prohibit nodes' link-local unicast
addresses from dialing 2000::/3 directly for now. We can allow that to
be configured opt-in later (some sort of IPv6 NAT mode. Whatever it's
called.) That mode was working on accident, but was confusing: Linux
would do source address selection from link local for the first few
seconds and then after SLAAC and DAD, switch to using the global
unicast source address. Be consistent for now and force it to use the
global unicast.

Updates #13038

Change-Id: I85e973aaa38b43c14611943ff45c7c825ee9200a
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2024-08-26 15:36:30 -07:00
..
nat tstest/natlab: fix IPv6 tests, remove TODOs 2024-08-26 15:36:30 -07:00
testcontrol all: use math/rand/v2 more 2024-06-05 15:24:04 -07:00
vms all: fix new lint warnings from bumping staticcheck 2024-08-22 12:31:08 -07:00
gen_deps.go all: update tools that manage copyright headers 2023-01-27 15:36:29 -08:00
integration_test.go tstest/integration: change log.Fatal() to t.Fatal() (#13253) 2024-08-23 16:58:31 -07:00
integration.go vnet: add control/derps to test, stateful firewall 2024-08-09 09:06:54 -07:00
tailscaled_deps_test_darwin.go cmd/tailscaled: allow setting env via linux cmdline for integration tests 2024-08-10 12:01:21 -07:00
tailscaled_deps_test_freebsd.go cmd/tailscaled: allow setting env via linux cmdline for integration tests 2024-08-10 12:01:21 -07:00
tailscaled_deps_test_linux.go cmd/tailscaled: allow setting env via linux cmdline for integration tests 2024-08-10 12:01:21 -07:00
tailscaled_deps_test_openbsd.go cmd/tailscaled: allow setting env via linux cmdline for integration tests 2024-08-10 12:01:21 -07:00
tailscaled_deps_test_windows.go cmd/tailscaled: allow setting env via linux cmdline for integration tests 2024-08-10 12:01:21 -07:00