Release notes
Breaking Go API change
Server.AllowedClientsandServer.AddAllowedClientare replaced by theServer.AllowClienthook, afunc(key.NodePublic) boolasked about each client as it connects, so a program embedding tailcat can decide at runtime, for example from a database, instead of listing every key up front. A nil hook allows all clients. The hook runs without any server lock held, so it may block and may call otherServermethods. For a list of keys, the newKeySettype'sContainsmethod is a ready-made hook:s.AllowClient = allow.Contains. The newServer.DisconnectClientdrops a connected client; it does not reset the client's connections, which stall instead. The--allowflag is unchanged. (#134; see also #119 and #120 by @jormenjanssen, and #124 and #125 by @ybaelli)
New features
-
tailcat servetakes port mappings like5555:10.2.200.213:5555to proxy a served port to a host on the server's network, or8080:80to a different port on localhost, instead of always the same port on localhost. This exposes one LAN service without the whole network thatexit-nodewould. Targets may be hostnames, such as5555:android.lan:5555, resolved with the system resolver. (#128; hostnames in #132 by @breken-ai) -
tailcat servecan proxy to a local Unix-domain socket. A serve argument starting with/orunix:names the socket; given alone, as intailcat serve /run/git-annex/socket, it takes connections to every port not otherwise served, so clients need no port number, and as a mapping target, as in8022:/run/app.sock, it takes just that port. The server refuses to start if a socket doesn't exist. (#93, requested by @matrss; #104 by @atirna) -
tailcat serve --logwrites an access log to stderr: a line when a client is allowed in or refused by--allow, and lines when each of its TCP connections or UDP flows opens and closes, with the client's public key, the port and service or exit-node destination reached, and whether the path is direct or via DERP. It is separate from--verbose. (#39; #99 by @sksingh2005, with UDP in #196; thanks also to @avionicharshit-byte and @SriVishnu230707 for #127 and #137) -
tailcat serve --qralso prints the server's address as a terminal QR code, for copying it off a screen you can't paste from, such as a remote console. This adds about 160 KB to release binaries. (#81; #95 by @harrisonhjones) -
The
sshandno-auth-sshservices support SSH local port forwarding (ssh -Landssh -D) to loopback IP addresses on the server, which VS Code Remote-SSH needs. Forwarding to hostnames (includinglocalhost) and remote forwarding (ssh -R) stay off, as does forwarding for thefilesservice and forced commands. (#141 by @HappyAny) -
tailcat sshandtailcat cptake-i <identity-file>to log in to atailcat serve sshserver with a specific private key, without an ssh config entry. (#177 by @semmi88) -
New
tailcat perfcommand andperfservice run an iperf-like throughput and latency test between a client and a server, over TCP or UDP, in either or both directions, with one or more parallel streams. UDP tests report loss, reordering, and jitter; all tests report round-trip latency under load. By default the test refuses to run until the path is direct, since a throughput test through a shared DERP relay mostly measures its rate limit;--via-derpallows relayed tests through your own relay, never through Tailscale's shared ones. (#131; #144 and #145 by @sntxrr fixed relayed paths) -
New experimental
tailcat serve --hybridflag (andServer.Hybridin the Go API) gives post-quantum protection that doesn't depend on the tailcat address staying secret.Through v0.5.0, tailcat had no post-quantum protection, and a DERP relay's operator, who sees the public keys of everyone using the relay, could connect to any server on it that didn't restrict clients with
--allow. v0.6.0 added a pre-shared key to tailcat addresses, which DERP operators never see. It does two jobs: it keeps DERP operators out, and it adds post-quantum protection. But both only hold while the address stays secret; once it's published, as in a DNS TXT record, neither does.With
--hybrid, the server and its clients use Tailscale's hybrid key exchange, which adds ML-KEM-768 to the handshake, so connections are post-quantum safe even when the address is public. The pre-shared key stays, but its only job now is keeping out compromised or malicious DERP operators, so hybrid addresses carry 128 bits of it instead of 256, making them shorter. Clients from v0.7.0 and earlier can't use hybrid addresses and reject ones with a pre-shared key at parse time. (#133; #160) -
tailcat now works in restricted sandboxes such as ChatGPT Work's (tailscale/tailscale#22412; #176):
- If a DERP relay's HTTP upgrade fails, tailcat retries by speaking DERP inside WebSockets, as browsers do. This gets through proxies that intercept TLS and allow WebSocket upgrades but block others.
- If tailcat can't monitor the OS network state (such as without netlink access), it continues without reacting to network changes instead of failing to start.
- Connections to DERP relays now go through the HTTP proxy named by
HTTPS_PROXY(or the OS proxy settings, on Windows), or a SOCKS5ALL_PROXY. Release binaries had compiled proxy support out; keeping it adds about 250 KB.
Go library and language bindings
- New
Server.PeerKeyreturns the node key of the peer behind an accepted connection or UDP flow, the key the tunnel authenticated, so a program can tell which allowed client it is serving. This also fixedTAILCAT_PEER_KEYbeing left out of the environment for UDP flows. (#129 by @Mo3he) - New
Client.DERPRegionreports which DERP region a client is using. - New C shared library,
cmd/libtailcat, exposes servers, clients, listeners, and connections through opaque handles, with per-call error messages and tokens to cancel any operation from another thread. It builds as a Windows DLL too, usable from MSVC through an import library. (#130 by @vvuk; fixes in #169 by @iyuzhang for #163 reported by @rundel, and in #180 and #191 by @CJstate) - New
TailcatKitSwift package wraps the C library with Swift async servers, clients, listeners, and connections for macOS 14+ and iOS 17+. (#64 by @josuediazflores)
Bug fixes
- A client allowed to modify files on a
filesservice (:rwor a drop box) could crash the server with a malformed SFTP SETSTAT request. (#181 by @CJstate) - A client resetting a connection right after connecting could crash an
execservice server, along with every other connection on it. (#188, from #167 by @bra1nDump) - An
execservice connection whose client stayed connected without sending anything kept running after the command exited, leaking a zombie process. (#189; thanks to @CJstate for #182) - A DERP map with a
nullregion or node, from--derpmap-urlor the Go API, crashed tailcat instead of being ignored. (#183 by @CJstate) Addr.Resolvekept the first two nodes of each region even if they were STUN-only nodes, which can't relay and aren't encoded, leaving the resolved address with fewer than two relays or none. (#173 by @CJstate)Server.CloseandClient.Closecould hang forever, leaking the WireGuard engine and DERP connection, after a few hundred recent short connections. Closed TCP connections now linger in TIME-WAIT for 5 seconds instead of 60, which also makes far fewer new connections stall when they reuse a recent port. (#151, reported by @FelineStateMachine; #161 by @dajiaohuang and #186)- On a host with no network interface other than loopback, such as a build sandbox, a server could fail to pick a home DERP relay for its first 20 to 26 seconds, so clients timed out. (#138 by @sophronesis)
- DNS now works on Android 9 and earlier, where v0.7.0 failed with errors like
androiddns: bogus answer length: those versions lack the DNS resolver command that v0.7.0's Android support used. (#126, reported by @risharde; #135) tailcat serverejects port 0 in ports and ranges, and invalid target ports like5555:0or5555:99999in mappings, instead of accepting ports no client could reach. (#179 by @CJstate)tailcat socks --listenaccepts a bare IPv6 address such as::1, as documented, instead of failing with "too many colons in address". (#155 by @RaphaelFakhri)- Choosing a DERP region no longer leaves two UDP sockets and their goroutines open for the life of the process (or of the caller's context, for Go library callers). (#193 by @joshuagay)
- The web (WebAssembly) client kept a copy of every chunk it wrote until the page closed. (#150 by @gjija)
Packaging and dependencies
- Releases now include an
android_arm64binary for Termux. The v0.7.0 notes said the linux binaries work under Termux, but on Android 10 and newer Termux runs programs through Android's dynamic linker, which rejects them withhas unexpected e_type: 2. They still work fromadb shellor a rooted shell. (#184, reported by @jy1655; #185) - Updated the tailscale.com dependency from its 2026-09-16 main branch to its 2026-11-18 one, along with gVisor and wireguard-go. Building from source now needs Go 1.27.4 or later. The WebAssembly build is about 230 KB smaller, since it now omits UDP and NAT traversal code a browser can't use. (#139)
Changelog
- b9491c1 CHANGELOG.md: update for v0.8.0 release
- ec53cc4 cmd/tailcat: only wrap OnTCP for serve --log when it's given
- 8f99ae2 cmd/tailcat: log UDP flows with serve --log
- 038415d swift: commit the TailcatKit scheme xcodebuild builds with
- ecdbd1f cmd/tailcat: serve Unix-domain sockets
- f216f3e tool/updateflakes: always hash the vendor tree
- a3f969d cmd/tailcat: add serve --qr to print the address as a QR code
- 2d52774 cmd/tailcat: reject port 0 and invalid bare target ports
- df95d7b cmd/tailcat: add serve --log access log
- 7dda987 tailcat: support SSH local TCP forwarding to loopback
- e99a945 tailcat: close netcheck STUN sockets when PickBestRegion returns
- c14b171 internal/capi: keep connection addresses after half close
- 1dd28b9 cmd/tailcat: pick tcpForwardTo's dialer once, share the system dialer
- 60b8fe0 cmd/tailcat: rename tcpForwardTo's ipPortStr to hostPort
- 9c85d5d cmd/tailcat: resolve port mapping hostnames with the system resolver
- 7b82bc2 github/workflows: list Xcode schemes before the iOS Swift builds
- e90f3ea swift: add TailcatKit Swift package on top of libtailcat
- 171b9d1 tailcat: don't hang an exec connection after the command exits
- aaf4a7d tailcat, cmd/tailcat: add experimental --hybrid post-quantum handshake
- 645982a tailcat: send TestClientAcceptsAddrWithoutPresharedKey logs to t.Logf
- 865d3b4 tailcat: move SFTP setstat crash test next to the other SFTP tests
- 89fc39a tailcat: reject malformed SFTP setstat attributes
- 0925b54 internal/capi: reject UDP idle timeout that overflows Duration
- 913b282 tailcat: don't crash the server when a client resets before it's served
- c9073ed cmd/tailcat: accept a bare IPv6 address in socks --listen
- 1c61fc2 tailcat: shorten netstack TCP TIME-WAIT from 60s to 5s
- 0bb6457 tailcat: don't hold Client.startMu while closing the backend
- 430bfed tailcat: test Close with more TIME-WAIT endpoints than netstack queues
- c14f140 go.mod: bump tailscale.com
- e5b84fd cmd/tailcat: add -i identity file flag to ssh and cp
- 54b38e5 tailcat: skip STUN-only nodes when trimming resolved address regions
- 82e9d35 .github/workflows: run the js/wasm unit tests in CI
- 5bf39a1 web: release each Promise executor so written data can be freed
- f57ba09 tailcat: skip null regions and nodes from untrusted DERP maps
- ed54cf9 internal/capi: handle zero-capacity UDP reads
- 55e58a8 .goreleaser.yaml: add an android/arm64 release binary for Termux
- 3f67a54 all: bump tailscale.com, make tailcat work in ChatGPT Work's sandbox
- e00cdde go.mod: use Tailscale netstack shutdown fix
- 52fbad3 internal/capi: port to the AllowClient hook
- 251e094 cmd/libtailcat: build and test the Windows DLL in CI
- 66e8b5a Expose Tailcat through a cancellable C-compatible shared library API
- 6facdab cmd/tailcat: return the relayed path when perf's path wait times out
- 0d11582 cmd/tailcat: test perf over a path that stays relayed
- 8768c21 cmd/tailcat: range over SplitSeq instead of Split
- b4dc28e go.mod, internal/buildtags: bump tailscale.com, keep udptransport and nattraversal
- 4fb672e tailcat: mark magicsock's network up before the first netcheck
- a59f801 go.mod: bump tailscale.com dep
- 7d80847 tailcat: replace AllowedClients with an AllowClient hook, add KeySet and DisconnectClient
- aa8950c tailcat: add Server.PeerKey to identify an accepted connection's peer
- 83921d7 cmd/tailcat, internal/perf: add iperf-like perf command and service
- c03c524 .github/workflows, tool/directtest: add direct connection test between runner VMs
- 7241199 cmd/tailcat: add port:target mappings to serve
- e4c2afd CHANGELOG.md: update for v0.7.0 release
- 1f24f07 CHANGELOG.md, README.md: add scp SFTP fix, Snap install, Bluesky, Go Reference badge
- 2078206 README.md, INSTALL.md: add Snap install instructions