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
Mihai Parparita a8231b18cc net/interfaces, net/netns: add node attributes to control default interface getting and binding
With #6566 we started to more aggressively bind to the default interface
on Darwin. We are seeing some reports of the wrong cellular interface
being chosen on iOS. To help with the investigation, this adds to knobs
to control the behavior changes:
- CapabilityDebugDisableAlternateDefaultRouteInterface disables the
  alternate function that we use to get the default interface on macOS
  and iOS (implemented in tailscale/corp#8201). We still log what it
  would have returned so we can see if it gets things wrong.
- CapabilityDebugDisableBindConnToInterface is a bigger hammer that
  disables binding of connections to the default interface altogether.

Updates #7184
Updates #7188

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
(cherry picked from commit 62f4df3257)
3 years ago
..
connstats net/connstats: mark TestConcurrent as flaky 3 years ago
dns net/dns: fix recently added URL scheme from http to https 3 years ago
dnscache ipn/ipnlocal, net/dnscache: allow configuring dnscache logging via capability 3 years ago
dnsfallback all: remove old +build tags 3 years ago
flowtrack net/flowtrack,wgengine/filter: refactor Cache to use generics 3 years ago
interfaces net/interfaces, net/netns: add node attributes to control default interface getting and binding 3 years ago
netaddr all: migrate code from netaddr.FromStdAddr to Go 1.18 4 years ago
netcheck net/netcheck: don't use a space in the captive portal challenge 3 years ago
neterror net/{neterror,dns/resolver}: move PacketWasTruncated to neterror from DNS code 4 years ago
netknob all: disable TCP keep-alives on iOS/Android 4 years ago
netns net/interfaces, net/netns: add node attributes to control default interface getting and binding 3 years ago
netstat net/netstat: document the Windows netstat code a bit more 3 years ago
nettest ssh/tailssh: add TestSSHAuthFlow 3 years ago
netutil all: fix spelling mistakes 3 years ago
packet net/{packet,tstun}: fix typo in test helper docs 3 years ago
ping all: fix spelling mistakes 3 years ago
portmapper net/portmapper: relax handling of UPnP resp (#6946) 3 years ago
proxymux net/proxymux: add a listener mux that can run SOCKS and HTTP on a single socket. 4 years ago
routetable all: remove old +build tags 3 years ago
socks5 net/socks5: use new Go 1.19 binary.AppendByteOrder.AppendUintX 3 years ago
speedtest net/speedtest: retune to meet iperf on localhost in a VM 3 years ago
stun net/netcheck: deflake (maybe) magicsock's TestNewConn 3 years ago
tlsdial net/tlsdial,tstest,version: use go command from $PATH 3 years ago
tsaddr net/tsaddr: remove ContainsFunc helpers (they're now in x/exp/slices) 3 years ago
tsdial all: standardize on PeerAPI 3 years ago
tshttpproxy net/tshttpproxy: don't ignore env-based HTTP proxies after system lookups fail 3 years ago
tstun Remove redundant type declaration 3 years ago
wsconn net/wsconn: add back custom wrapper for turning a websocket.Conn into a net.Conn 3 years ago