Connection timed out Error code 522 - but server is reachable!

What is the name of the domain?

hidden

What is the error number?

522

What is the error message?

Connection timed out Error code 522

What is the issue you’re encountering

I setup a proxied DNS entry for one of my domains pointing to my webservice. The webservice is availabe but Cloudflare always fails with a 522 error.

What steps have you taken to resolve the issue?

I verified the DNS and IP settings, verified proxy on the firewall.

I tested manually via cURL to verify the firewall and the underlying webservice are setup correctly. This has been done via cURL:
curl -k --resolve host.my-domain.my:443:75.6.34.123 https://host.my-domain.my

Therefore I can verify that the proxy is listening on this ip adress and the proxy configuration is correct because it forwards the request and replies with the html login page.

What are the steps to reproduce the issue?

Entering the URL into the browser.

curl -k --resolve host.my-domain.my:443:75.6.34.123 https://host.my-domain.my
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=11" />
<meta name="msapplication-TileImage" content="resources/images/icon_tile.png?v=4398" />
<meta name="application-name" content="Login" />
<meta name="msapplication-TileColor" content="#246BB3"/>

PS: domain and IP are obfuscated for privacy reasons.

Regarding 522 error, what steps for troubleshooting have you tried already?

Is Cloudflare allowed to connect to your host?

May I ask if your sub-domain is configured and listening on an HTTP(S) port on your which is supported and compatible with Cloudflare :orange: proxy on your origin web server? :thinking:

May I ask what SSL option have you got selected under the SSL/TLS tab at Cloudflare dashboard for your domain ( Flexible, Full, Full Strict … )? :thinking:

Before moving to Cloudflare, was your Website working over HTTPS connection?
Steps for troubleshooting:

  1. Use the “Pause Cloudflare on Site” option from the Overview tab for your domain at dash.cloudflare.com .
  2. The link is in the lower right corner of that page.
  3. Give it five minutes to take effect, then make sure site is working as expected with HTTPS without any error
  4. Check with your hosting provider / Plesk panel / cPanel AutoSSL / Let’s Encrypt / ACME / Certbot and manually click to renew it
  5. Only then, when your website responds over HTTPS, you should un-pause Cloudflare and double-check your SSL/TLS setting to make sure it’s set to Full (Strict).

2 posts were merged into an existing topic: Port 443 connection timeou tcode 522

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