Survive DDOS attack with Nginx’s and fail2ban

Sujit Kumar Security, TechBreathe Leave a Comment

fail2ban Recently one among our client-server was subjected to DDOS attack. We use Nginx’s Limit Req Module and fail2ban together to thwart this attack. Installing fail2ban On Ubuntu/Debian, just run… apt-get install fail2ban Configuration There are 2 parts. First, we’d like to configure nginx to limit the amount of requests for IP addresses. Nginx will log info about banned IP into the error log. fail2ban will parse nginx …