Skip to content
Source
Sign inSign up
pingdotgg/t3code

T3 Connect tunnel silently breaks when a VPN comes up after cloudflared starts (QUIC MTU not re-probed) #29004

Openbramley-jetcharge(GitHub profile, opens in a new tab) opened this issue 1 comment

Follow-up to my previous issue #15897, covering only the part that's still open, as requested there. It's the same leftover problem as #19565 ("helper stays ready despite public access failure"), which never got its own issue.

Environment: macOS arm64, T3 Code (Beta) 0.1.6 (includes #20382), cloudflared 2026.10.4, full-tunnel VPN on utun4 with MTU 1280.

What happens: cloudflared is started on Wi-Fi, then the VPN comes up and becomes the default route. The mobile app shows This device can't reach <host>'s tunnel.

  • Small requests through the relay hostname still reach the server. /.well-known/t3/environment and /api/t3-connect/mint-credential return 200 for the phone (user agent okhttp/5.4.0).
  • The phone's WebSocket session never comes up.
  • Each retry mints another pairing credential, so Authorized clients fills up with multiple links that expire in about 2 minutes (and are named "T3 Connect connect", see #27881). See screenshot:
Image

Evidence at the time of failure:

  • /ready: {"status":200,"readyConnections":4}
  • quic_client_mtu: 1344 on all 4 connections
  • quic_client_smoothed_rtt{conn_index="0"}: 0
  • quic_client_lost_packets: 29 / 20 / 0 / 62
  • Server traces contain 0 occurrences of timeout: no recent network activity, so the 30-stall HTTP/2 fallback from #20382 (for #16344) never triggers.

Recovery: killing only cloudflared makes T3 respawn it. The new connections settle at quic_client_mtu 1248, and an 82 KB asset loads through the relay in 0.13s.

Why the existing checks miss it: /ready stays green, and Cloudflare still sees a live connector, so a no_connector-based restart (#24936) wouldn't fire either. Only large responses fail.

Suggestion: restart the connector when the default route or interface changes, or probe the public hostname with a response larger than about 1300 bytes. Either would also cover #24936 and the leftover part of #19565 (#16258 is a related earlier case).

Related: #15897, #19565, #24936, #16258, #16344, #27881

  1. tanstack-source added labelsbug

  2. another repro with two always-on VPNs. here QUIC also stops connecting after a restart, so killing cloudflared doesn't work around it

    • macOS 27.0 arm64, T3 Code (Nightly) desktop 0.1.11-nightly.20261118.4864, managed cloudflared 2026.10.4
    • WireGuard and Tailscale both connected, default route on utun4, MTU 1280 on both tunnels
    • iOS app 2.3.0 showed This device can't reach <host>'s tunnel: /oauth/token timed out after 10000ms
    • host traces show that same POST /oauth/token arriving and answered 200 in 7 ms, so the response was lost on the way back
    • cloudflared metrics at that point: quic_client_mtu 1344 on all 4 connections, quic_client_lost_packets 51 / 171 / 61 / 109, /ready 200 with 4 connections
    • after killing cloudflared, the respawned connector logged failed to dial to edge with quic: timeout: handshake did not complete in time for about 6 minutes

    workaround so far: set TUNNEL_TRANSPORT_PROTOCOL=http2 in the server's environment. the server passes it to cloudflared and treats it as the user's choice. for the macOS desktop app I added a LaunchAgent that runs launchctl setenv TUNNEL_TRANSPORT_PROTOCOL http2 at login, then relaunched the app. all 4 connections registered with protocol=http2, and the phone's next attempt reached /ws (101)

    Written with Claude Code (Claude Opus 5.5) in a T3 Code triage session

Sign in to join this conversation.