Skip to content

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

Open

Description

@bramley-jetcharge

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 T3 Connect authorized clients use the repeated label “T3 Connect connect” #27881). See screenshot:
Image

Evidence at the time of failure:

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

Activity

  1. LuisUrrutia commented on Nov 18, 2026

    @LuisUrrutia

    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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions