Web Operations · 5 min read

Cloudflare Tunnel Troubleshooting: Separate 1033, 502, Origin TLS and Application Failures

A layer-by-layer failure tree for diagnosing Cloudflare Tunnel and reverse-proxy incidents without changing DNS, TLS or the origin blindly.

Publisher: NetSignalKit Editorial | Corrections and feedback

Independent technical information. Validate vendor claims and test changes in your own environment. Some outbound commercial links may earn a commission; see our disclosure.

Start with the layer that is actually failing

A Cloudflare error page is not a diagnosis. The useful question is which hop failed: client→Cloudflare edge, Cloudflare edge→Tunnel connector, cloudflared→local origin, origin TLS, or the application itself.

Cloudflare's own Tunnel documentation draws an important line: error 1033 means Cloudflare cannot find a healthy cloudflared connector for the tunnel. A Tunnel 502 with 'Unable to reach the origin service' means the tunnel is connected to Cloudflare, but cloudflared cannot reach the configured local service. Those states demand different checks.

The workflow below is designed to preserve evidence. Do not start by deleting DNS records, recreating a tunnel or disabling TLS verification.

Decision tree: 1033 versus Tunnel 502

For 1033, inspect tunnel connector health first. Cloudflare documents Healthy, Inactive, Down and Degraded states; the dashboard or cloudflared tunnel list is the authoritative control-plane view. If the connector is Down, look at the cloudflared process/service, host power/network and outbound connectivity before touching the application.

For a Tunnel 502, the connector is already reaching Cloudflare. Move inward: is the origin process running, is it listening on the exact address/port in the ingress rule, and does cloudflared have a valid local route to it? Cloudflare gives connection-refused examples such as a service expected on localhost:8080 that is not listening.

If the browser receives your application's own 500/404 response rather than a Cloudflare/Tunnel connectivity error, the edge and tunnel may be functioning. Troubleshoot the app route and logs instead of rebuilding transport.

A safe read-only sequence

Use the same hostname, origin address and port that production actually uses. Record each result before changing anything.

Example on Windows: curl.exe -sS -o NUL -w "public=%{http_code}\n" https://example.com/ checks the public route. curl.exe -v http://127.0.0.1:3102/ checks a loopback origin. Get-NetTCPConnection -State Listen can confirm the expected listener. On Linux, ss -lntp provides the listener view if permissions allow.

NetSignalKit FIELD-tested the healthy form of this sequence on the authorized NVIDIA origin: the public HTTPS route returned 200, local /api/health returned service=NetSignalKit/status=ok, and both the Tunnel and web Scheduled Tasks were Running under LOCAL SERVICE. NetSignalKit did not intentionally stop those services to manufacture a 1033/502.

  • Public route fails and tunnel is 1033: investigate connector/control-plane reachability.
  • Public route is Tunnel 502 while tunnel is healthy: investigate local origin address, port, protocol and process.
  • Local HTTP works but HTTPS-origin configuration fails: investigate origin TLS/SNI/CA settings.
  • Origin and tunnel work but one path fails: investigate application route/auth/WAF behavior.
  • Only some clients fail: compare DNS, IPv4/IPv6, resolver/cache and client TLS rather than assuming a global outage.

Origin TLS errors are a separate branch

Cloudflare documents x509 'certificate signed by unknown authority' as an origin trust problem. Supported fixes include installing the appropriate CA into the trust store or configuring an explicit CA pool. noTLSVerify exists as a last-resort temporary diagnostic/compatibility setting, not a good permanent substitute for a valid trust chain.

Before changing certificate settings, verify the ingress scheme. An origin configured as http://127.0.0.1:3102 does not need an origin certificate at that hop. An origin configured as https://internal.example:8443 does. Fix the contract that actually exists.

DNS and Tunnel are related, not interchangeable

A healthy connector cannot serve a hostname whose DNS route points to the wrong tunnel. Conversely, a correct CNAME does not start a dead connector. Treat DNS target and connector health as two independent gates.

Before replacing a DNS record, record the current proxied target and tunnel UUID/name. A DNS cutover should have a rollback value; 'recreate whatever was there' is not evidence.

Common failed approaches

Do not switch protocols randomly between http and https until one appears to work. Do not use noTLSVerify before proving the error is certificate validation. Do not delete and recreate the tunnel to solve a local connection-refused error. Do not infer that Cloudflare is down because the local application has stopped.

Do not test availability by opening firewall ports that the Tunnel architecture intentionally keeps closed. The point of a tunnel is that the connector makes outbound connections; adding public origin exposure can create a new risk while leaving the real fault untouched.

Verification and rollback criteria

Declare recovery at the same layers you diagnosed.

  • Tunnel connector is Healthy/connected in the control plane.
  • cloudflared process/service is running under the expected principal.
  • Origin listener exists on the exact configured address and port.
  • Local origin request returns the expected application status/body.
  • Public hostname returns the expected status from an independent vantage.
  • Critical routes, auth/WAF boundaries and health endpoints behave as designed.
  • Any temporary TLS bypass or diagnostic exposure is removed.
  • Changed DNS/ingress values are documented with a tested rollback path.

Evidence classification for this guide

FIELD: NetSignalKit verified the healthy public→Tunnel→loopback path and local listener/task state on its authorized NVIDIA environment. STATIC/AUTHORITATIVE: the interpretations of Cloudflare 1033, Tunnel 502 and x509 errors come from current Cloudflare documentation. NOT TESTED: intentionally breaking the production tunnel/origin to reproduce those errors was not performed.

Related guides

Primary sources & further reading

Sources are credited for verification, not reproduced. Linked pages may change after publication.