CloudFlare Tunnel not working with HTTPS

What is the name of the domain?

xxx.economizafloripa.com.br

What is the error number?

curl: (56) CONNECT tunnel failed, response 400

What is the error message?

curl: (56) CONNECT tunnel failed, response 400

What is the issue you’re encountering

https not working

What steps have you taken to resolve the issue?

I am running “simple-proxy.exe” on my Windows with a cloudflare tunnel. The command below works fine:

curl.exe --proxy “http://xxx.economizafloripa.com.br:80” “http://httpforever.com/

However if I try to access any https website I get the error 400:

curl.exe --proxy “http://xxx.economizafloripa.com.br:80” “https://www.sitepor500.com.br

I am 100% sure the error is related to Cloudflare Tunnel because if I run this command below directly on my local computer, the HTTPS works just fine:

curl.exe --proxy “http://localhost:8585” “https://www.sitepor500.com.br

Cloudflare tunnel is doing something weird with HTTPS because when I use the proxy locally to access an external resource with https, everyting works fine.

Firewall is completely disabled, nothing wrong is being done on my end.

Using Windows IIS or not? If yes, which version? :thinking:

Have you got SSL certificate installed on your Windows machine for your Website? Is your Website running fine over HTTPS (bound to the port 443) and with a valid SSL certificate at the origin host/server or rather not?

If not, then noTLSVerify option should be enabled from the Zero Trust dashboard for your tunnel public hostname:

Have you tried switching to http2 protocol instead? :thinking:
Might be your ISP might not support Quic protocol. Could you select other protocol e.g. http2, using the command and retry again as follows on the instructions from below article? :thinking:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.