{"id":1832,"date":"2017-07-25T18:25:10","date_gmt":"2017-07-25T12:55:10","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=1832"},"modified":"2026-09-08T11:36:47","modified_gmt":"2026-09-08T06:06:47","slug":"ddos-deflate-installation-linux","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/ddos-deflate-installation-linux\/","title":{"rendered":"DDOS Deflate installation on linux"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">DDOS Deflate is a simple shell script used to help block denial-of-service attacks on a Linux host. It uses the <code>netstat<\/code> command to identify the number of connections from individual IP addresses and can block an IP address when it exceeds a configured connection threshold.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before installing DDoS Deflate, make sure you have:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>A Linux host with root access.<\/li>\n\n\n\n<li>A web server such as Nginx or Apache.<\/li>\n\n\n\n<li>Basic knowledge of Linux commands.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Implementation<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Download the Installer<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Change to the <code>\/usr\/local\/src<\/code> directory:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">cd \/usr\/local\/src<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Download the DDOS Deflate installer to the server:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">wget http:\/\/www.inetbase.com\/scripts\/ddos\/install.sh<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Change the File Permission<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Change the permission of the downloaded installer:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">chmod 700 install.sh<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Install DDOS Deflate<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Run the installation script:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sh install.sh<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The above command installs the DDOS Deflate script on the server.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Configure the Connection Limit<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Open the DDOS Deflate configuration file:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">vi \/usr\/local\/ddos\/ddos.conf<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The default connection threshold is <strong>150<\/strong>. You can change this value according to your server requirements.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The configured threshold determines when an IP address is considered to have exceeded the allowed number of connections.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">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 <code>ddos.conf<\/code> configuration file according to the server&#8217;s requirements.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FAQs<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. What is DDOS Deflate used for?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Where is the DDOS Deflate configuration file located?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The configuration file is located at:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/usr\/local\/ddos\/ddos.conf<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. What is the default connection limit?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The default connection threshold is <strong>150 connections<\/strong> from an IP address. This value can be changed in the DDOS Deflate configuration file based on the server requirements.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related Articles<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Atop Installation on Linux Host<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Learn how to install Atop on a Linux server and monitor system resources.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/pheonixsolutions.com\/blog\/atop-installation-linux-host\/?utm_source=chatgpt.com\">Atop Installation on Linux Host<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install Multiple Versions of Node on Linux<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Learn how to install and manage multiple Node.js versions on a Linux server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/pheonixsolutions.com\/blog\/install-multiple-version-node-linux\/?utm_source=chatgpt.com\">Install Multiple Versions of Node on Linux<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Talk to our experts<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">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&nbsp;<a href=\"https:\/\/pheonixsolutions.com\/contact\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction DDOS Deflate is a simple shell script used to help block denial-of-service attacks on a Linux host. It uses [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1024],"tags":[359,261],"class_list":["post-1832","post","type-post","status-publish","format-standard","hentry","category-security","tag-ddos","tag-linux","psol-cat-security"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-ty","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=1832"}],"version-history":[{"count":3,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1832\/revisions"}],"predecessor-version":[{"id":11526,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1832\/revisions\/11526"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=1832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=1832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=1832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}