{"id":148,"date":"2014-06-21T06:47:17","date_gmt":"2014-06-21T06:47:17","guid":{"rendered":"http:\/\/www.pir8geek.com\/?p=148"},"modified":"2014-06-21T06:47:17","modified_gmt":"2014-06-21T06:47:17","slug":"installing-ddos-deflate-mitigate-ddos-attack","status":"publish","type":"post","link":"https:\/\/www.jameseduard.com\/?p=148","title":{"rendered":"Installing (D)DoS Deflate To Mitigate DDoS Attack"},"content":{"rendered":"<p><strong>(D)DoS Deflate<\/strong> 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.<br \/>\n<code>netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n<\/code><br \/>\n<strong>DoS Defkate Features:<\/strong><\/p>\n<ul>\n<li>It is possible to whitelist IP addresses, via \/usr\/local\/ddos\/ignore.ip.list.<\/li>\n<li>Simple configuration file: \/usr\/local\/ddos\/ddos.conf<\/li>\n<li>IP addresses are automatically unblocked after a preconfigured time limit (default: 600 seconds)<\/li>\n<li>The script can run at a chosen frequency via the configuration file (default: 1 minute)<\/li>\n<li>You can receive email alerts when IP addresses are blocked.<\/li>\n<\/ul>\n<p><strong>How To Install (D)DoS Deflate:<\/strong><\/p>\n<pre>\nwget http:\/\/www.inetbase.com\/scripts\/ddos\/install.sh\nchmod 0700 install.sh\n.\/install.sh\n<\/pre>\n<p><strong>How To UnInstall (D)DoS Deflate:<\/strong><\/p>\n<pre>\nwget http:\/\/www.inetbase.com\/scripts\/ddos\/uninstall.ddos\nchmod 0700 uninstall.ddos\n.\/uninstall.ddos\n<\/pre>\n<p><strong>How To Edit Configuration File:<\/strong><\/p>\n<pre>\nvi \/usr\/local\/ddos\/ddos.conf<\/pre>\n<p><strong>How To Check The Number Of Connected Ips:<\/strong><\/p>\n<pre>sh \/usr\/local\/ddos\/ddos.sh<\/pre>\n<p><strong><br \/>\nHow To Restart DDos Deflate:<br \/>\n<\/strong><\/p>\n<pre>sh \/usr\/local\/ddos\/ddos.sh -c<\/pre>\n<p>Source to my <a href=\"http:\/\/www.ro-services.com\" title=\"ROServies\" target=\"_blank\" rel=\"noopener noreferrer\">ROService<\/a> Site<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(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. netstat -ntu | awk &#8216;{print $5}&#8217; | cut -d: -f1 |<\/p>\n","protected":false},"author":1,"featured_media":149,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[150,47,154],"tags":[151,152,97,153],"class_list":["post-148","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cyber-security","category-how-tos","category-pentesting-tools","tag-ddos-attack","tag-dos-deflate","tag-hardening","tag-network-security"],"_links":{"self":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts\/148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=148"}],"version-history":[{"count":0,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts\/148\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}