Skip to content

tailcat: Tailscale's netcat-Style Tunnel, With Install, Usage, and Security Limits

AINewss Editorial Team

tailcat is Tailscale's netcat-like CLI for piping data, forwarding ports and running SSH between machines with no account, no tailnet and no root, using WireGuard over the Tailscale data plane. Install commands, subcommands, the address-as-credential model, and its limits.

View 3 references
0 views 0 likes

Allow the functional cookie to save your likes. Privacy details

tailcat: netcat-style tunnels over Tailscale's data plane, without an account

tailcat is a command line tool from Tailscale that behaves like netcat but runs over Tailscale's WireGuard data plane instead of raw TCP. One side starts a listener and gets back a short address; the other side pastes that address in and the two machines are connected end to end. There is no Tailscale account, no tailnet, no login flow, no IP address to exchange and no root required.

The project describes itself as "Tailscale without Tailscale, by Tailscale." It reuses the open-source pieces of Tailscale (magicsock for NAT traversal, DERP relays for bootstrapping, WireGuard for encryption) and throws away the control plane that normally hands out identities and ACLs. All connection metadata is exchanged out of band, by whatever channel you like. In practice that means Slack, a shared clipboard or a terminal window.

This is the tool to reach for when you want to move a file, open a shell or forward a port between two machines for an hour, and setting up a tailnet would be more ceremony than the job deserves.

Install

The Go route works anywhere a Go toolchain exists:

go install github.com/tailscale/tailcat/cmd/tailcat@latest

With Nix you can run it without installing, or add it to a profile:

nix run github:tailscale/tailcat
nix profile install github:tailscale/tailcat

The repository's INSTALL.md also covers packaged builds: static binaries, deb and rpm packages, Homebrew, Scoop, a Snap, an AUR package, conda-forge and a container image at ghcr.io/tailscale/tailcat. Binaries exist for Linux, macOS, Windows and the BSDs, and there is a WebAssembly build that runs in a browser.

First connection: pipe stdin to stdout

Start the server on the machine you want to reach. It prints an address and then waits.

$ tailcat
Server listening with new address: tcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

It also prints which bootstrap relay region it selected, then blocks while it waits for a client.

On the other machine, pass that address:

$ echo hello | tailcat tcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
hello

The server unblocks and prints hello. That is the whole model: stdin on one side arrives on stdout on the other, over an encrypted tunnel, with nothing exposed to the public internet.

Serving ports

To expose local ports rather than a pipe, use serve:

tailcat serve 8080,8443
tailcat serve all

The first form publishes two specific ports; all publishes every port the machine is listening on.

The client then names the port it wants:

tailcat tcXXXXXXXXXXXXXXXX 8080

By default the server binds to 127.0.0.1, so only the tunnel reaches it; --bind=0.0.0.0 opens it to the local network as well. You can also remap to another host with tailcat serve 5555:10.2.200.213:5555, or pull a remote port down to a local one with tailcat forward tcXXXX 18080:8080.

What each subcommand does

Command What it gives you
tailcat / tailcat <addr> Raw stdin and stdout pipe between two machines
tailcat serve <ports> Expose local TCP ports through the tunnel
tailcat forward <addr> <local:remote> Map a remote port to a local one
tailcat serve ssh SSH server with public key auth via --ssh-authorized-keys
tailcat serve no-auth-ssh SSH server with no authentication at all
tailcat recv <dir> Write-only drop box for incoming files
tailcat serve files Read-only SFTP share of the current directory
tailcat cp / tailcat ls Copy and list over that share
tailcat socks <addr> <cmd> SOCKS proxy for an existing program
tailcat ping <addr> Connectivity test that reports direct versus relayed
tailcat perf iperf-style throughput and latency test
tailcat serve exec -- <cmd> Run a command per connection, inetd style
tailcat serve exit-node Route to the server's whole network
tailcat browse <addr> Forward port 80 and open a browser

Two of these deserve a warning label before you use them.

tailcat serve no-auth-ssh starts a shell with no credentials. The address is the only thing standing between a stranger and a login shell on your machine, which makes it suitable for one short session on a throwaway box and nothing else. If you want SSH with normal keys, use tailcat serve --ssh-authorized-keys=~/.ssh/authorized_keys ssh and connect with tailcat ssh <addr> ls -la.

tailcat serve files is read-only by default. Adding --files=/pub:rw files makes the share writable, and the server still confines paths with Go's os.Root so .. and symlinks cannot escape.

File transfer without scp

The drop-box pattern is the easiest way to receive a file from someone who does not have SSH set up:

tailcat recv ~/inbox
tailcat cp report.pdf tcXXXXXXXXXXXXXXXX:

The first command runs on the receiving machine, the second on the sender.

The receiver cannot list the directory, read files back or modify anything already there. It is a mailbox, not a share. For the reverse direction, tailcat serve files plus tailcat cp tcXXXX:report.pdf . pulls a file down.

One thing to know: transfers are not compressed. The SFTP layer does not compress and neither does the Go SSH stack, so a folder of already-compressed files moves at roughly its on-disk size.

The security model: the address is the credential

A tailcat address starts with tc and carries base64-encoded CBOR containing the server's WireGuard public key, a separate path-discovery key, DERP region information, and by default a 256-bit WireGuard pre-shared key. That PSK is the important part. It means someone who can observe the public key, including a relay operator, still cannot join the tunnel, and it gives recorded traffic a post-quantum margin.

Because the address contains the PSK, the address itself is the password. Tailscale's own documentation says to treat it that way: do not log it, do not commit it to a repository, do not post it publicly. A DNS TXT record is a particularly bad place for an unprotected address, since TXT records are public and get scraped.

Keys come in two flavours. By default tailcat generates an ephemeral key in memory on every run, so the address dies permanently when the process exits. That is the safe default. tailcat genkey creates a persistent keypair so the address survives restarts, but then anyone who ever held that address can reach the server again unless you restrict it. The restriction mechanism is --allow=nodekey:<key>, an allowlist of client node keys, which pairs naturally with a published address.

tailcat versus Tailscale versus netcat

netcat tailcat Tailscale
Needs a public IP or port forward Yes No No
Encrypted No, unless wrapped WireGuard, end to end WireGuard, end to end
Needs an account No No Yes
Needs root or a TUN device No No Usually yes for the client
Identity, ACLs, audit None Optional key allowlist Full
Persistent connectivity No Only with a saved key Yes
Metadata logs None Hosted relays keep metadata logs Control plane sees everything

The middle column is the point: tailcat sits between "raw netcat, trust the network" and "a whole tailnet with policy." It gives you encryption and NAT traversal without the governance layer, and it deliberately does not replace Tailscale for anything ongoing.

Limits worth knowing before you depend on it

  • The public relays are best-effort. The default DERP map points at tailcat.dev's free, rate-limited fleet. There is no SLA and no throughput guarantee, and Tailscale notes that the hosted relay service keeps metadata logs and is not intended for privacy or high-throughput use.
  • Direct connections are the common case, not a promise. Connections bootstrap through DERP, then magicsock attempts UDP hole punching and upgrades to peer-to-peer. When it fails, you stay on the relay and feel it.
  • No stability guarantees. The Go API, CLI flags, output format and wire format may all change between releases.
  • User-space networking has a cost. No TUN device means no root, but the TCP/IP stack runs in user space, so line-rate throughput is not the target.
  • The browser demo is relay-only. The WebAssembly build at tailscale.github.io/tailcat sends and receives files and text and interoperates with the CLI, but it has no direct connection path until WebRTC support lands.

When to use it

Reach for tailcat when the connection is short-lived and the alternative is worse: a one-hour SSH session into a dev box, handing a test machine to an agent for a single task, moving a build artifact between two laptops on different networks, or exposing a local port to a colleague without touching a firewall. Reach for Tailscale when the connection needs to persist, when more than a couple of people need access, or when you need to answer the question "who was allowed to reach what, and when."

The whole tool is one binary, one address and one process lifetime. That is the feature.

References

  1. tailscale/tailcat: like netcat, but over Tailscale's data planegithub.com
  2. Tailcat - Secure tunnels in secondstailscale.com
  3. Tailcat brings netcat simplicity to encrypted Tailscale tunnelsupstreamlog.tech