OVH DDoS Mitigation (522 Cloudflare)
I have a ovh vps and I'm using cloudflare as reverse proxy.
Whenever I get at least incoming 1000pps due to L7 (D)DoS attacks or let's say on high user traffic on my website, ovh will turn on ddos mitigation and I receive an email.
While ovh ddos mitigation is active, cloudflare ip ranges will just be blocked and all requests to ovh backend will be automatically discarded which ends in a 522 timeout error.
The problem is that I really don't know how to solve this issue. I have googled a lot and I found out that ovh has a firewall where you can whitelist up to 20 entries. But anyway I don't think this will help to whitelist cloudflare because cf has even more ip's and someone in the ovh forum created a discussion that this method didn't work for him anyway.
Does anyone know what you can do in this situation? Do I need a dedicated ovh server or just other settings?