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 ad288baaea net/interfaces: use IPv4 link local if nothing better
The only connectivity an AWS Lambda container has is an IPv4 link-local
169.254.x.x address using NAT:
12: vtarget_1@if11: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500
                    qdisc noqueue state UP group default qlen 1000
     link/ether 7e:1c:3f:00:00:00 brd ff:ff:ff:ff:ff:ff link-netnsid 1
     inet 169.254.79.1/32 scope global vtarget_1
     valid_lft forever preferred_lft forever

If there are no other IPv4/v6 addresses available, and we are running
in AWS Lambda, allow IPv4 169.254.x.x addresses to be used.

----

Similarly, a Google Cloud Run container's only connectivity is
a Unique Local Address fddf:3978:feb1:d745::c001/128.
If there are no other addresses available then allow IPv6
Unique Local Addresses to be used.
We actually did this in an earlier release, but now refactor it to
work the same way as the IPv4 link-local support is being done.

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
..
dns staticcheck.conf: turn off noisy lint errors 3 years ago
dnscache control/controlclient, net/{dnscache,dnsfallback}: add DNS fallback mechanism 3 years ago
dnsfallback net/dnsfallback: fix infinite loop and limit number of candidates 3 years ago
flowtrack net/packet, wgengine/filter: support SCTP 3 years ago
interfaces net/interfaces: use IPv4 link local if nothing better 3 years ago
netcheck net/{interfaces,netcheck}: rename some fields, funcs 3 years ago
netns net/{interfaces,netns}: change which build tag means mac/ios Network/System Extension 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 staticcheck.conf: turn off noisy lint errors 3 years ago
socks5 cmd/tailscaled, wgengine: remove --fake, replace with netstack 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: add a debug envvar to override tun MTU. 3 years ago