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/net
Denton Gentry 1896bf99d9 netns_linux: No namespace for localhost.
Connections to a control server or log server on localhost,
used in a number of tests, are working right now because the
calls to SO_MARK in netns fail for non-root but then we ignore
the failure when running in tests.

Unfortunately that failure in SO_MARK also affects container
environments without CAP_NET_ADMIN, breaking Tailscale
connectivity. We're about to fix netns to recognize when SO_MARK
doesn't work and use SO_BINDTODEVICE instead. Doing so makes
tests fail, as their sockets now BINDTODEVICE of the default
route and cannot connect to localhost.

Add support to skip namespacing for localhost connections,
which Darwin and Windows already do. This is not conditional
on running within a test, if you tell tailscaled to connect
to localhost it will automatically use a non-namespaced
socket to do so.

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
..
dns net/dns: do not run wsl.exe as LocalSystem 3 years ago
dnscache control/controlclient, net/{dnscache,dnsfallback}: add DNS fallback mechanism 3 years ago
dnsfallback ipn, etc: use controlplane.tailscale.com 3 years ago
flowtrack net/packet, wgengine/filter: support SCTP 3 years ago
interfaces net/interface: add AWS App Runner /proc/net/route test 3 years ago
netcheck net/{interfaces,netcheck}: rename some fields, funcs 3 years ago
netns netns_linux: No namespace for localhost. 3 years ago
netstat all: adapt to opaque netaddr types 3 years ago
nettest net/nettest: make nettest.NewConn pass x/net/nettest.TestConn. 3 years ago
packet net/packet: use netaddr AppendTo methods 3 years ago
portmapper wgengine/magicsock: make portmapping async 3 years ago
socks5 net/socks5/tssocks: add a SOCKS5 dialer type, method-ifying code 3 years ago
stun tstest/integration: add testNode.AwaitListening, DERP+STUN, improve proxy trap 3 years ago
tlsdial net/tlsdial, derp/derphttp: finish DERPNode.CertName validation 4 years ago
tsaddr net/tsaddr: simplify TailscaleServiceIP 3 years ago
tshttpproxy net/tshttpproxy: call winhttp calls from a fixed OS thread 3 years ago
tstun net/tstun: fix data races 3 years ago