DDOS Deflate installation on linux

DDOS deflate is simple shell script used to block a denial of service attack on Linux Host. It uses netstat command to identify the number of connection from IP addresses and block the IP address if an IP address exceeds a threshold value.

Prerequisites:

  1. Linux Host with Root access
  2. Webserver (nginx or apache)

Implementation:

Download the installer to the server.

cd /usr/local/src

wget http://www.inetbase.com/scripts/ddos/install.sh

Change the permission of downloaded file

chmod 700 install.sh

Install the script

sh install.sh

The above command will install the DDOS deflate script.

We can open the configuration and edit the number of connection from IP address.

vi /usr/local/ddos/ddos.conf

Default value will be 150. We can change this value as per our wish.

 

 

Leave a Reply