De Help Desk punt NL
De Helpdesk > De Helpdesk > Kennisbank

(D)DoS Deflate

Oplossing About

(D)DoS Deflate is a lightweight bash shell script designed to assist in the process of blocking a denial of service attack. It utilizes the command below to create a list of IP addresses connected to the server, along with their total number of connections. It is one of the simplest and easiest to install solutions at the software level.

netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
IP addresses with over a pre-configured number of connections are automatically blocked in the server's firewall, which can be direct iptables or Advanced Policy Firewall (APF). (We highly recommend that you use APF on your server in general, but deflate will work without it.)

En deze gelijk blokken: iptables -I INPUT -s IP_ADDRESS_HERE -j DROP

Notable Features

It is possible to whitelist IP addresses, via /usr/local/ddos/ignore.ip.list.
Simple configuration file: /usr/local/ddos/ddos.conf
IP addresses are automatically unblocked after a preconfigured time limit (default: 600 seconds)
The script can run at a chosen frequency via the configuration file (default: 1 minute)
You can receive email alerts when IP addresses are blocked.

chmod 0700

chmod 0700 uninstall.ddos

Although most things are explained on this page, if you have any further questions, you may contact the original developer of the script.


Was dit artikel bruikbaar? ja / nee
Gerelateerde artikelen how to install bfd (Brute Force Detection)
How TO install/Configure APF (Advanced Policy Firewall) Firewall
DDOS via Windows command prompt
Nagios installeren op Fedora 12
DDoS filter
Artikel details
Artikel ID: 171
Categorie: Beveiliging
Datum toegevoegd: 2-Mar-2013 11:56:29
Aantal bekeken: 1184
Beoordeling (Stemmen): Artikel beoordeeld 3.5/5.0 (26)

« Ga terug