DDOS Deflate installation on linux
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:
- Linux Host with Root access
- 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.