Introduction
DDOS Deflate is a simple shell script used to help block denial-of-service attacks on a Linux host. It uses the netstat command to identify the number of connections from individual IP addresses and can block an IP address when it exceeds a configured connection threshold.
Prerequisites
Before installing DDoS Deflate, make sure you have:
- A Linux host with root access.
- A web server such as Nginx or Apache.
- Basic knowledge of Linux commands.
Implementation
Step 1: Download the Installer
Change to the /usr/local/src directory:
cd /usr/local/src
Download the DDOS Deflate installer to the server:
wget http://www.inetbase.com/scripts/ddos/install.sh
Step 2: Change the File Permission
Change the permission of the downloaded installer:
chmod 700 install.sh
Step 3: Install DDOS Deflate
Run the installation script:
sh install.sh
The above command installs the DDOS Deflate script on the server.
Step 4: Configure the Connection Limit
Open the DDOS Deflate configuration file:
vi /usr/local/ddos/ddos.conf
The default connection threshold is 150. You can change this value according to your server requirements.
The configured threshold determines when an IP address is considered to have exceeded the allowed number of connections.
Conclusion
DDOS Deflate provides a simple way to monitor the number of connections from individual IP addresses and block addresses that exceed the configured threshold. After installation, the connection limit can be adjusted through the ddos.conf configuration file according to the server’s requirements.
FAQs
1. What is DDOS Deflate used for?
DDOS Deflate is a shell-based utility designed to help identify and block IP addresses that create an excessive number of connections to a Linux server.
2. Where is the DDOS Deflate configuration file located?
The configuration file is located at:
/usr/local/ddos/ddos.conf
3. What is the default connection limit?
The default connection threshold is 150 connections from an IP address. This value can be changed in the DDOS Deflate configuration file based on the server requirements.
Related Articles
Atop Installation on Linux Host
Learn how to install Atop on a Linux server and monitor system resources.
Atop Installation on Linux Host
Install Multiple Versions of Node on Linux
Learn how to install and manage multiple Node.js versions on a Linux server.
Install Multiple Versions of Node on Linux
Talk to our experts
Looking for the right technology solution for your business? Our team of experts can help you with development, cloud, DevOps, design, and a wide range of other technology needs. Get in touch with our team here.