Documentation ¶
Overview ¶
Package tsaddr handles Tailscale-specific IPs and ranges.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CGNATRange ¶
CGNATRange returns the Carrier Grade NAT address range that is the superset range that Tailscale assigns out of. See https://tailscale.com/kb/1015/100.x-addresses. Note that Tailscale does not assign out of the ChromeOSVMRange.
func ChromeOSVMRange ¶
ChromeOSVMRange returns the subset of the CGNAT IPv4 range used by ChromeOS to interconnect the host OS to containers and VMs. We avoid allocating Tailscale IPs from it, to avoid conflicts.
func IsTailscaleIP ¶
IsTailscaleIP reports whether ip is an IP address in a range that Tailscale assigns from.
func Tailscale4To6 ¶ added in v1.2.0
Tailscale4To6 returns a Tailscale IPv6 address that maps 1:1 to the given Tailscale IPv4 address. Returns a zero IP if ipv4 isn't a Tailscale IPv4 address.
func Tailscale4To6Range ¶ added in v1.2.0
Tailscale4To6Range returns the subset of TailscaleULARange used for auto-translated Tailscale ipv4 addresses.
func TailscaleServiceIP ¶ added in v1.0.1
TailscaleServiceIP returns the listen address of services provided by Tailscale itself such as the Magic DNS proxy.
func TailscaleULARange ¶ added in v1.2.0
TailscaleULARange returns the IPv6 Unique Local Address range that is the superset range that Tailscale assigns out of.
Types ¶
This section is empty.