Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 18:39

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Hosting website with Cloudflare

Discussion on Hosting website with Cloudflare within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
sebariio's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 98
Received Thanks: 76
Hosting website with Cloudflare

Hello,
Recently I decided to open my website, and recently I have been facing DDOS attacks. To solve the problem I decided to register with Cloudflare so that the connections are not established directly with me.

I configured the server correctly the DNS servers. My domain name points to the Cloudflare server and the Cloudflare server is trying to connect to my original server.

I don't really understand network, so that's why i ask your help.

My problem is about my Firewall. As stated in the documentation, you must whitelist with Cloudflare IP addresses. I did it:

But i still have this error :
Code:
Error 522 Ray ID: 55c8e10c6ef8f959 • 2020-01-29 05:41:47 UTC
Connection timed out
Official Documentation of this error :
Background
A 522 error happens when a TCP connection to the web server could not be established. This typically happens when Cloudflare requests to the origin (your webserver) get blocked. When this happens, you’ll see “ERR_CONNECTION_TIMED_OUT”.

Quick Fix Ideas
Make sure that you’re not blocking Cloudflare IPs in .htaccess, iptables, or your firewall.

Make sure your hosting provider isn’t rate limiting or blocking IP requests from the Cloudflare IPs and ask them to whitelist the IP addresses here: 535. If the IPs that fail are consistent each time, that indicates some of the IPs in Cloudflare’s IP ranges are either being rate-limited or blocked by a network device at your hosting provider. Because Cloudflare operates as a reverse proxy the IP address your server will see is one of a limited number of Cloudflare IPs. In that sense, many actual visitors may all come from the same IP address, which can cause firewalls or security software that is not appropriately whitelisting the Cloudflare IP ranges to block this traffic as it may see it as excessive or malicious

If you are seeing 522 errors in certain locations only, it means you likely forgot to whitelist one of our ranges that corresponds to these locations, so double check to ensure all our IPs are whitelisted appropriately.

Please reach out to your hosting provider or site administrator to confirm if there are any load problems on your infrastructure.

It may be there was a temporary problem on the path or at your origin preventing connections from completing. If they are no longer happening, here are two actions to take: a) Check with your hosting provider to see if they had any issues with packet loss or if your server was under load at the time the errors happened and b) Have your hosting provider or server administrator confirm that all Cloudflare IP ranges are fully whitelisted from any rate limits.

If your firewall is configured to DROP packets rather than refuse connections, it will cause a 521; meaning an incorrectly configured firewall can actually masquerade as a connection timeout 522 error.

Thank you in advance for your help.
sebariio is offline  
Old 02/01/2020, 17:39   #2
 
0o0o0o0o's Avatar
 
elite*gold: 26
Join Date: Oct 2012
Posts: 301
Received Thanks: 267
maybe your current host is blocking cloudflare IPs?
0o0o0o0o is offline  
Old 02/02/2020, 15:08   #3
 
elite*gold: 0
Join Date: Jun 2018
Posts: 7
Received Thanks: 0
just as a sidenote, you will not be free from DDOS if your original server IP is known. With running the free Cloudflare package, you can still fairly easily get a hold of it by looking through the DNS records, since you cant wildcard proxy it with the free package.
Cratyz is offline  
Reply


Similar Threads Similar Threads
Cloudflare, Cloudflare, Cloudflare,.... Kann es nicht mehr sehen !!
12/08/2015 - Main - 19 Replies
Man Epvp, was ist los? Dauernd erreicht man die Seite nicht. Dauernd kriegt man nur Cloudflare zu sehen. Was stimmt da nicht? Kriege diese Meldung heute zum 8. mal http://i.epvpimg.com/XC1vg.png http://i.epvpimg.com/d74Fb.png
Frage zu Einstellungen im Cloudflare wg. Vote4Coins
08/26/2012 - Metin2 Private Server - 8 Replies
Hallo Leute, habe meine Hp mit CloudFlare verschlüsselt, möchte ich nun Vote4Coins-Events starten, können die Spieler nicht mehr für den Server voten. Meine Fragen Welche Version nutzt ihr da, die Kostenlose oder Profi? Weil wenn ich Cloudflare nutze, habe ich dass Problem, dass dadurch viele Spieler nichtmehr Voten können, da dies anscheinend die Ip's o.Ä. verfälscht, gibt es da eine besondere Einstellung, die man tätigen muss?



All times are GMT +2. The time now is 18:40.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.