Repository navigation
Replies: 1 comment
|
For the proposed Tailcat tunnels, I'd like the option to supply the hostname of any compatible DERP relay. The public relays could stay as the default. I run local and remote services across a Mac and a few VMs. I'd use a relay on my LAN for local work, or a privately operated relay reachable over the internet when I'm away. I ran into the LAN linking issue with my Windows workstation and a VM. With Tailcat, the two machines could use the relay I choose to find each other, then connect directly when possible. If a dev-server preview needs the relay, it could use that same one for the lifetime of the preview. T3 issue #26840 My derp-stack project shows a working Docker Compose deployment of the private relay I use with Playwriter. It runs on my LAN, and I reach it remotely over my VPN. The container accepts a supplied TLS certificate chain and key, including a relay certificate from a private CA that the clients trust. The README shows two Tailcat clients exchanging data through the relay with the direct path blocked. derp-stack · Playwriter |
Uh oh!
There was an error while loading. Please reload this page.
Support Ephemeral Direct Tunnels via Cloudflare Quick Tunnels (
trycloudflare.com) and TailscaletailcatProblem
Today, connecting remote environments, transferring files, and previewing agent-started web servers in T3 Code runs into two architectural bottlenecks:
Meanwhile, T3 Code already bundles and manages
cloudflared(~/.t3/tools/cloudflared) for T3 Connect (Issue #25567, Issue #31468), and Tailscale recently open-sourced Tailcat (tailscale/tailcat)—an accountless, peer-to-peer netcat-style CLI built on Tailscale's WireGuard and NAT-traversal data plane without the Tailscale control plane.Proposal
Add native, opt-in support for accountless, ephemeral direct tunnels using Cloudflare Quick Tunnels (
cloudflared tunnel --url) and Tailscale Tailcat (tailcat) as transport and port-exposure drivers alongside T3 Connect, LAN, and Tailscale.Because neither transport passes data through T3's relay servers, T3 incurs zero bandwidth or infrastructure cost, while users get instant encrypted connectivity for environments, dev servers, and file transfers.
*.trycloudflare.com)magicsock) with DERP fallbackcloudflaredbinary (Issue #25567)tailscale/tailcat)--allowed-mailone-time PIN email verificationtailcataddress + optional key allowlistKey Features & How This Solves Existing Discussions
1. Remove the 3-Host Limit for Self-Routed Environments
t3 serve/ Desktop can spawncloudflared tunnel --url http://localhost:3773using the already-installedcloudflaredbinary (Issue #25567) and encode the generatedhttps://<random>.trycloudflare.comendpoint into thet3 pairQR code / pairing token.trycloudflare.com) or WireGuard encryption (tailcat) without consuming any of their 3 T3 Connect relay slots.2. Instant Local Browser Rendering & Port Forwarding for Remote Agent Web Servers
localhost:5173) on a remote machine, streaming the remote browser tab as compressed video frames causes input/scroll latency (Discussion #26726).localhost:5173on demand viacloudflared tunnel --url http://localhost:5173(optionally gated by--allowed-mailor a signed T3 preview cookie/token). The user's local desktop or mobile browser renders the app natively with full WebSocket/HMR support and zero T3 relay traffic.localhostport directly over a P2P WireGuard stream to a local loopback port on the reviewer's machine—keeping the dev server completely off the public internet while enabling local DOM inspection, annotations, and Playwright testing (Discussion #26726).3. Direct, Unthrottled File Transfers (Uploads & Downloads)
4. Zero-Config Ephemeral Cloud Sandboxes & No OS VPN Pop-ups
"Tailscale would like to add VPN configurations"dialog reported in Discussion #20224.Known Limitations & Design Guardrails
*.trycloudflare.comhostname on restart. If the host environment pairs via T3 Connect (1 slot), the server can dynamically push updated Quick Tunnel port-preview URLs over the existing control channel whenever a dev server restarts.--allowed-mailPIN (Cloudflare Quick Tunnels), combined with theOrigin/Hostloopback isolation checks discussed in Discussion #26726 so an exposed app on:5173cannot reach T3's own loopback control ports.All reactions