Source: Hacker News
Author: unknown
URL: https://github.com/tailscale/tailcat
ONE SENTENCE SUMMARY:
Tailcat provides netcat-like, end-to-end WireGuard tunnels using Tailscale’s data plane and DERP, exchanging tokens out-of-band without control-plane accounts.
MAIN POINTS:
- Tailcat reuses Tailscale components but operates entirely without Tailscale’s control plane.
- Connection metadata is shared out-of-band via a short, token-like “ConnBlob” string.
- Traffic is always WireGuard-encrypted end-to-end, bootstrapped initially through DERP relays.
- magicsock attempts NAT traversal to upgrade from DERP relay to direct peer-to-peer UDP.
- Runs fully in userspace without root, avoiding route, DNS, TUN/TAP, or system network changes.
- CLI and Go library are provided; library import path is
github.com/tailscale/tailcat. - Supports stdin/stdout piping, TCP port forwarding to localhost, SOCKS5 proxying, and exit-node mode.
- Built-in utilities include ping diagnostics, token parsing to JSON, and token resolution to embed DERP info.
- Tokens derive from WireGuard keys; ephemeral keys are single-run, saved keys provide stable addresses.
- DNS TXT records can publish tokens, enabling name-based access and allowlisted, pre-authenticated SSH exposure.
TAKEAWAYS:
- Tailcat enables secure ad-hoc connectivity without accounts, admin privileges, or network reconfiguration.
- DERP provides rendezvous and fallback relay; direct UDP often follows via hole-punching.
- Stable tokens are convenient but increase exposure unless client identities are restricted with
--allow. - Publishing tokens in DNS plus fixed DERP regions enables durable, globally reachable “hidden” services.
- Hosted public DERP relays are free but rate-limited, best-effort, and not guaranteed stable long-term.