Tailcat
Tailcat, an open-source tool from Tailscale, acts like netcat but leverages Tailscale's robust data plane—WireGuard encryption, NAT traversal, and DERP relays—without requiring the full Tailscale control plane or account.
This ingenious remix allows for secure, ad-hoc, point-to-point connections for tasks like stdin/stdout piping and port forwarding, simplifying complex networking for many.
Hacker News appreciates its technical elegance, the modularization of Tailscale's core technology, and the freedom it offers from vendor lock-in, sparking debates on true open-source sovereignty.
The Lowdown
Tailcat is a new open-source utility developed by Tailscale, designed to function like the versatile netcat but with the added security and network traversal capabilities of Tailscale's underlying data plane. It allows users to establish secure, end-to-end encrypted tunnels over WireGuard without needing a Tailscale account or engaging with their control plane. The tool focuses on simplicity, enabling direct machine-to-machine communication for various tasks through a straightforward token exchange.
- Core Functionality: Tailcat facilitates piping
stdin/stdoutbetween machines, exposing local TCP ports (e.g., for HTTP servers), and even creating auth-free SSH servers, all over a secure tunnel. - Underlying Technology: It reuses Tailscale's
magicsockfor transport, which includes WireGuard for encryption, STUN/UDP hole-punching for NAT traversal, and DERP relays as a fallback and rendezvous point. It also incorporates gVisor's Netstack for userspace TCP/IP handling. - Connection Process: A server generates a short connection token, which the client uses to initiate a connection. The process involves a "Meow"/"Meowed" handshake via DERP, a WireGuard tunnel setup, and subsequent attempts at direct UDP peer-to-peer connection via NAT traversal.
- Key Management: Supports ephemeral keys for one-time use or saved keys for stable addresses. Tokens can also be published and looked up via DNS TXT records for enhanced discoverability.
- Stability & Control: While free and open source, Tailcat offers no API/CLI stability guarantees, and its public DERP relays are provided on a best-effort, rate-limited basis. Users have the option to run their own DERP servers for full sovereignty.
By open-sourcing these core components, Tailscale empowers developers and users to build custom, secure network solutions leveraging proven technology, offering a robust alternative for secure ad-hoc connectivity without the full VPN overhead.
The Gossip
Sovereignty Squabbles & Self-Hosting Solutions
Commenters questioned whether Tailcat truly offered full open-source freedom, particularly concerning its default reliance on Tailscale's DERP relays, suggesting potential vendor lock-in. The author, bradfitz, clarified that the DERP server is itself open source and users are free to self-host their own DERP infrastructure, thereby achieving complete independence from Tailscale's hosted services. This addressed concerns about "proprietary" elements and asserted that Tailcat is merely an open-source tool, not a hosted service.
Comparative Connections & Conventional Counterparts
Many users compared Tailcat to existing tools and methods for similar tasks. Alternatives like `magic-wormhole` were mentioned for simple file transfer, and `netcat` was cited as the direct inspiration. Some suggested that a homemade version using SSH forwarding and Nginx reverse proxies could achieve similar results. Others pointed to direct WireGuard configuration as a more fundamental solution, acknowledging its higher complexity, highlighting Tailcat's niche in simplifying secure connections.
Architectural Appreciation & Tailscale's Tech Twist
There was a general appreciation for the cleverness of Tailscale in extracting and open-sourcing components of its sophisticated data plane. The idea of "Tailscale without Tailscale's control plane" resonated with those who admire the underlying technology (WireGuard, NAT traversal, DERP) but desire a more lightweight, ad-hoc usage. This modular approach was seen as a valuable contribution, demonstrating how their core innovations can be repurposed for new, simplified use cases.