https://panel.bullten.net/knowledgebase/62/Mitigating-Layer7-HTTP-Flood-with-NginxplusFail2ban.html
thanks for the tip!
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.
it works even when you turn on varnish
just add "set_real_ip_from SERVERIP;" to your nginx.conf
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.