T3 Connect tunnel silently breaks when a VPN comes up after cloudflared starts (QUIC MTU not re-probed) #29004
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/environmentand/api/t3-connect/mint-credentialreturn 200 for the phone (user agentokhttp/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:
Evidence at the time of failure:
/ready:{"status":200,"readyConnections":4}quic_client_mtu: 1344 on all 4 connectionsquic_client_smoothed_rtt{conn_index="0"}: 0quic_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).
tanstack-source added labelsbug
Sign in to join this conversation.
another repro with two always-on VPNs. here QUIC also stops connecting after a restart, so killing cloudflared doesn't work around it
utun4, MTU 1280 on both tunnelsThis device can't reach <host>'s tunnel:/oauth/token timed out after 10000msPOST /oauth/tokenarriving and answered 200 in 7 ms, so the response was lost on the way backquic_client_mtu1344 on all 4 connections,quic_client_lost_packets51 / 171 / 61 / 109,/ready200 with 4 connectionsfailed to dial to edge with quic: timeout: handshake did not complete in timefor about 6 minutesworkaround so far: set
TUNNEL_TRANSPORT_PROTOCOL=http2in 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 runslaunchctl setenv TUNNEL_TRANSPORT_PROTOCOL http2at login, then relaunched the app. all 4 connections registered withprotocol=http2, and the phone's next attempt reached/ws(101)Written with Claude Code (Claude Opus 5.5) in a T3 Code triage session