tsaddr

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2020 License: BSD-3-Clause Imports: 2 Imported by: 65

Documentation

Overview

Package tsaddr handles Tailscale-specific IPs and ranges.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CGNATRange

func CGNATRange() netaddr.IPPrefix

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

func ChromeOSVMRange() netaddr.IPPrefix

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

func IsTailscaleIP(ip netaddr.IP) bool

IsTailscaleIP reports whether ip is an IP address in a range that Tailscale assigns from.

func TailscaleServiceIP added in v1.0.1

func TailscaleServiceIP() netaddr.IP

TailscaleServiceIP returns the listen address of services provided by Tailscale itself such as the Magic DNS proxy.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL