tailscale.comtailscale.com/net Directories

net/ directory

Directories

PathSynopsis
net/artPackage art provides a routing table that implements the Allotment Routing Table (ART) algorithm by Donald Knuth, as described in the paper by Yoichi Hariguchi.
net/bakedrootsPackage bakedroots contains WebPKI CA roots we bake into the tailscaled binary, lest the system's CA roots be missing them (or entirely empty).
net/captivedetectionPackage captivedetection provides a way to detect if the system is connected to a network that has a captive portal.
net/connstatsPackage connstats maintains statistics about connections flowing through a TUN device (which operate at the IP layer).
net/dnsPackage dns contains code to configure and manage DNS settings.
net/dnscachePackage dnscache contains a minimal DNS cache that makes a bunch of assumptions that are only valid for us.
net/dnsfallbackPackage dnsfallback contains a DNS fallback mechanism for starting up Tailscale when the system DNS is broken or otherwise unavailable.
net/dns/publicdnsPackage publicdns contains mapping and helpers for working with public DNS providers.
net/dns/recursivePackage recursive implements a simple recursive DNS resolver.
net/dns/resolvconffilePackage resolvconffile parses & serializes /etc/resolv.conf-style files.
net/dns/resolverPackage resolver implements a stub DNS resolver that can also serve records out of an internal local zone.
net/flowtrackPackage flowtrack contains types for tracking TCP/UDP flows by 4-tuples.
net/ipsetPackage ipset provides code for creating efficient IP-in-set lookup functions with different implementations depending on the set.
net/ktimeoutPackage ktimeout configures kernel TCP stack timeouts via the provided control functions.
net/memnetPackage memnet implements an in-memory network implementation.
net/netaddrPackage netaddr is a transitional package while we finish migrating from inet.af/netaddr to Go 1.18's net/netip.
net/netcheckPackage netcheck checks the network conditions from the current host.
net/neterrorPackage neterror classifies network errors.
net/netkernelconfPackage netkernelconf contains code for checking kernel netdev config.
net/netknobPackage netknob has Tailscale network knobs.
net/netmonPackage monitor provides facilities for monitoring network interface and route changes.
net/netnsPackage netns contains the common code for using the Go net package in a logical "network namespace" to avoid routing loops where Tailscale-created packets would otherwise loop back through Tailscale routes.
net/netstatPackage netstat returns the local machine's network connection table.
net/netutilPackage netutil contains misc shared networking code & types.
net/netxPackage netx contains types to describe and abstract over how dialing and listening are performed.
net/packetPackage packet contains packet parsing and marshaling utilities.
net/packet/checksumPackage checksum provides functions for updating checksums in parsed packets.
net/pingPackage ping allows sending ICMP echo requests to a host in order to determine network latency.
net/portmapperPackage portmapper is a UDP port mapping client.
net/proxymuxPackage proxymux splits a net.Listener in two, routing SOCKS5 connections to one and HTTP requests to the other.
net/routetablePackage routetable provides functions that operate on the system's route table.
net/socks5Package socks5 is a SOCKS5 server implementation.
net/sockstatsPackage sockstats collects statistics about network sockets used by the Tailscale client.
net/speedtestPackage speedtest contains both server and client code for running speedtests between tailscale nodes.
net/stunPackage STUN generates STUN request packets and parses response packets.
net/stunserverPackage stunserver implements a STUN server.
net/stun/stuntestPackage stuntest provides a STUN test server.
net/tcpinfoPackage tcpinfo provides platform-agnostic accessors to information about a TCP connection (e.g.
net/tlsdialPackage tlsdial generates tls.Config values and does x509 validation of certs.
net/tlsdial/blockblamePackage blockblame blames specific firewall manufacturers for blocking Tailscale, by analyzing the SSL certificate presented when attempting to connect to a remote server.
net/tsaddrPackage tsaddr handles Tailscale-specific IPs and ranges.
net/tsdialPackage tsdial provides a Dialer type that can dial out of tailscaled.
net/tshttpproxyPackage tshttpproxy contains Tailscale additions to httpproxy not available in golang.org/x/net/http/httpproxy.
net/tstunPackage tun creates a tuntap device, working around OS-specific quirks if necessary.
net/udprelayPackage udprelay contains constructs for relaying Disco and WireGuard packets between Tailscale clients over UDP.
net/udprelay/endpointPackage endpoint contains types relating to UDP relay server endpoints.
net/wsconnPackage wsconn contains an adapter type that turns a websocket connection into a net.Conn.
Version
v1.84.1 (latest)
Published
May 29, 2025
Platform
linux/amd64
Last checked
8 hours ago

Tools for package owners.