Artyom
08-03-2007, 09:52 PM
We would like to give credit to www.medialayer.com, elix, www.inetbase.com and Zaf. For the original thread, please go here: http://deflate.medialayer.com/
##### Update From Zaf #####
Version 0.6 released
Changes:
- whitelisting possible by adding ips in /usr/local/ddos/ignore.ip.list
- it uses this file to avoid banning the ip again (it was handling this differently and was a bit slower too)
Installation / Update Method:
It remains the same as last time (uninstall and reinstall the script), and you need to make changes to the conf to suit your preferences (The default values ban an ip with 150 connections (or more) for 600 seconds and run the script every minute)
Steps for installing/updating the script (ignore the first two steps if you are installing first time)
# wget http://www.inetbase.com/scripts/ddos/uninstall.ddo s
# sh uninstall.ddos
# wget http://www.inetbase.com/scripts/ddos/install.ddos
# sh install.ddos
Simply install this on your server and let it do its work. It is recommended to have APF installed wtih as well. You can view a complete how-to on setting up APF in the main Linux Security thread.
Note: Don't forget to start the script with the --cron flag so the cron is setup otherwise it won't run continously.
##### Update From Zaf #####
Version 0.6 released
Changes:
- whitelisting possible by adding ips in /usr/local/ddos/ignore.ip.list
- it uses this file to avoid banning the ip again (it was handling this differently and was a bit slower too)
Installation / Update Method:
It remains the same as last time (uninstall and reinstall the script), and you need to make changes to the conf to suit your preferences (The default values ban an ip with 150 connections (or more) for 600 seconds and run the script every minute)
Steps for installing/updating the script (ignore the first two steps if you are installing first time)
# wget http://www.inetbase.com/scripts/ddos/uninstall.ddo s
# sh uninstall.ddos
# wget http://www.inetbase.com/scripts/ddos/install.ddos
# sh install.ddos
Simply install this on your server and let it do its work. It is recommended to have APF installed wtih as well. You can view a complete how-to on setting up APF in the main Linux Security thread.
Note: Don't forget to start the script with the --cron flag so the cron is setup otherwise it won't run continously.