CPanel / WHM, Installation, Security

How to install and uninstall DDoS Deflate on Linux server

How to install and uninstall DDoS Deflate on Linux server


DDoS Deflate

(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


Go to below path.

cd /usr/local/src/

Create directory

mkdir ddos

Go to that directory

cd ddos

Get the latest source file using the below link:


Install DDOS Deflate


Edit the configuration file,


Start the ddos

/usr/local/ddos/ -c


Download the below file


Check the permission of uninstall.ddos, If it is not 700 then make it using below command.
chmod 0700 uninstall.ddos
Run the below command to uninstall it.


  • 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.


Comments are closed.