tailscale/cmd
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>
2021-06-18 21:52:47 -07:00
..
cloner all: adjust Unix permissions for those without umasks 2021-01-11 19:24:41 -08:00
derper derp: add debug traffic handler 2021-06-18 15:47:55 -07:00
hello all: adapt to opaque netaddr types 2021-05-16 14:52:00 -07:00
microproxy tsweb: replace NewMux with a more flexible DebugHandler. 2021-06-16 19:00:47 -07:00
mkpkg cmd/mkpkg: allow zero files in a package. 2021-06-07 16:22:23 -07:00
tailscale net/interfaces: use IPv4 link local if nothing better 2021-06-18 21:52:47 -07:00
tailscaled net/interfaces: use IPv4 link local if nothing better 2021-06-18 21:52:47 -07:00
tsshd net/interfaces: return all Tailscale addresses from Tailscale(). 2021-04-29 12:25:47 -07:00