tailscale/cmd/tailscaled
Nick Khyl caa3d7594f ipn/ipnlocal, net/tsdial: plumb routes into tsdial and use them in UserDial
We'd like to use tsdial.Dialer.UserDial instead of SystemDial for DNS over TCP.
This is primarily necessary to properly dial internal DNS servers accessible
over Tailscale and subnet routes. However, to avoid issues when switching
between Wi-Fi and cellular, we need to ensure that we don't retain connections
to any external addresses on the old interface. Therefore, we need to determine
which dialer to use internally based on the configured routes.

This plumbs routes and localRoutes from router.Config to tsdial.Dialer,
and updates UserDial to use either the peer dialer or the system dialer,
depending on the network address and the configured routes.

Updates tailscale/corp#18725
Fixes #4529

Signed-off-by: Nick Khyl <nickk@tailscale.com>
2024-05-06 15:44:44 -05:00
..
childproc
debug.go net/netmon, add: add netmon.State type alias of interfaces.State 2024-04-28 07:34:52 -07:00
depaware.txt ipn/ipnlocal, net/tsdial: plumb routes into tsdial and use them in UserDial 2024-05-06 15:44:44 -05:00
generate.go
install_darwin.go
install_windows.go
manifest_windows_386.syso
manifest_windows_amd64.syso
manifest_windows_arm64.syso
proxy.go
required_version.go
sigpipe.go
ssh.go
taildrop.go taildrop: remove breaking abstraction layers for apple (#10728) 2024-01-09 14:11:34 -06:00
tailscaled.defaults
tailscaled.go net/netns, net/dns/resolver, etc: make netmon required in most places 2024-04-27 12:17:45 -07:00
tailscaled.openrc
tailscaled.service cmd/tailscaled: move cleanup to an implicit action during startup 2024-04-09 12:44:08 -07:00
tailscaled_bird.go
tailscaled_notwindows.go
tailscaled_test.go
tailscaled_windows.go ipn/local: log OS-specific diagnostic information as JSON (#11700) 2024-04-22 16:45:01 -07:00
windows-manifest.xml
with_cli.go