This simple shell script will block IPs at the firewall that are found to have too many connections under the presumption that they are part of a (D)DoS attack. The script supports auto-unblocking, email notifications, logging, a simple cron installer and reverse DNS.
-
Clone this repo into /usr/local/ddos:
sudo git clone git://github.com/colinmollenhour/ddos-deflate.git /usr/local/ddos
-
Add your IP address to the whitelist:
vim /usr/local/ddos/ignore
-
Configure (D)DoS Deflate:
vim /usr/local/ddos/ddos.conf
-
Add the cron job (optional)
/usr/local/ddos/ddos.sh --cron
- 7/21/2012 - Colin Mollenhour ([email protected]) ** Installation procedure changed to git-centric ** Removed install.sh and uninstall.sh