Install DDOS Deflate to your server

Install DDOS Deflate to your server

(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. You can use the below command on your server to see what IPs are currently connected to your server and how many connections each IP has. Users who are experiencing slow page speeds or who are experiencing DDoS issues should follow this guide to get at least some basic protection. We recommend everyone deploys this software to their servers together with CSF. Remember our network can handle 2000GBs of bad traffic so this guide will most likely not be needed now.

netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n

Cheap Dedicated Server Hosting

Install DDOS Deflate
You can install the software by copying the line below into your ssh console. You must be logged in as root to perform this

wget ; chmod 0700 ; ./

IP addresses with over a pre-configured number of connections are automatically blocked in the server’s firewall, which can be direct iptables or CSF. (We highly recommend that you use CSF on your server in general, but deflate will work without it.)

IP Whitelist
It is possible to whitelist IP addresses, via /usr/local/ddos/ignore.ip.list. You can edit this file and place IPs in the white list with the following command

nano  /usr/local/ddos/ignore.ip.list

The configuration file has all the options you need to tweak the software to your own needs. You shouldn’t need to touch this file but you can lower the connections each IP can have to the server inside this file. We advise placing this at 50. Anything lower and people uploading using FTP might get blacklisted. IP addresses are automatically unblocked after a preconfigured time limit (default: 600 seconds) To edit the file;

nano /usr/local/ddos/ddos.conf

Cheap VPS

Removing DDOS Deflate
To remove the software copy the line below into the console like you did to install. 

wget ; chmod 0700 uninstall.ddos ; ./uninstall.ddos

How was this article? – Install DDOS Deflate

Install DDOS Deflate to your server
4 5 100%

Dedicated Servers VPS Servers

1 Comment

Comments are closed.

Select Language
SSD NVMe VPS Server With Free cPanel License ★ 70% Faster Than SATA Storage ★ 30% Faster Than SSD Storage ★ 14 LocationsInstant Deployment