Mitigate Layer7 HTTP Flood with Nginx+Fail2ban in CWP

Started by brijendrasial, October 24, 2015, 07:12:32 PM

Previous topic - Next topic

cyfocus

------
https://cyfocus.com - Domain, Hosting, Ecommerce, SEO

aicon

Thank you. This one works, but you need powerful CPU on each new attack.
(min 2 cores 2400GHz, depending on the attack volume)
Does not work with varnish is enabled, only nginx.
In case anyone wants $10 bonus for FREE on cheap cloud VPS from Vultr:
http://www.vultr.com/?ref=6855695
-------------------------------------------------------------------------------------------------
And $10 bonus for FREE on cheap cloud VPS from Digitalocean:
https://www.digitalocean.com/?refcode=c41029801394

mozev

it works even when you turn on varnish

just add "set_real_ip_from   SERVERIP;" to your nginx.conf

CyberCr33p

Quote from: mozev on December 22, 2016, 06:37:40 AM
it works even when you turn on varnish

just add "set_real_ip_from   SERVERIP;" to your nginx.conf

It will only work if you have varnish on the same server. Because if you use varnish in different server the connections are made from varnish server IP, so blocking the real visitor ip makes no sense.