This article is a mirror article of machine translation, please click here to jump to the original article.

View: 26302|Reply: 11

[linux] Linux Anti-DDoS Attack Tool (D) DoS-Deflate

[Copy link]
Posted on 12/22/2014 11:09:48 PM | | |
DDoS deflate is actually very simple, and here are the detailed installation and configuration steps:

1. Install DDoS deflate



wget
Tourists, if you want to see the hidden content of this post, pleaseReply

chmod 0700 install.sh
./install.sh



After the copyright information pops up, type q under SSH to exit the copyright information.

2. Configure DDoS deflate .

After successful installation, you will be prompted that the Config file is at /usr/local/ddos/ddos.conf, so you can make a brief configuration in ddos.conf.


# vim /usr/local/ddos/ddos.conf



##### Paths of the script and other files
PROGDIR=”/usr/local/ddos”
PROG=”/usr/local/ddos/ddos.sh”
IGNORE_IP_LIST="/usr/local/ddos/ignore.ip.list" //whitelist
CRON=”/etc/cron.d/ddos.cron”
APF=”/etc/apf/apf”
IPT=”/sbin/iptables”
—————————————————————————-
##### frequency in minutes for running the script
##### Caution: Every time this setting is changed, run the script with –cron
##### option so that the new frequency takes effect
FREQ=1
ddos.sh the frequency of execution, in minutes, with crontab to execute.
If you change this setting, do /usr/local/ddos/ddos.sh –cron
—————————————————————————-
##### How many connections define a bad IP? Indicate that below.
NO_OF_CONNECTIONS=150
//当哪个IP的连接数达到150就加入黑名单;查看连接数你可以执行
#netstat -ntu | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n
—————————————————————————-
##### APF_BAN=1 (Make sure your APF version is atleast 0.96)
##### APF_BAN=0 (Uses iptables for banning ips instead of APF)
APF_BAN=0
Normally, you use iptables for firewalls, so here you need to change the value of APF_BAN to 0.
—————————————————————————-
##### KILL=0 (Bad IPs are’nt banned, good for interactive execution of script)
##### KILL=1 (Recommended setting)
KILL=1
Add illegal IP to the INPUT chain of iptables and DROP.
—————————————————————————-
##### An email is sent to the following address when an IP is banned.
##### Blank would suppress sending of mails
EMAIL_TO=”root”
//给root发一封邮件
—————————————————————————-
##### Number of seconds the banned ip should remain in blacklist.
BAN_PERIOD=600
//关押黑名单中的IP的时长



3. Uninstall DDoS deflate if you don't want to use .



wget
Tourists, if you want to see the hidden content of this post, pleaseReply

chmod 0700 uninstall.ddos
./uninstall.ddos



Also, if you always receive email prompts like the following:



Banned the following ip addresses on Tue Aug 5 01:32:01 BST 2008

1120 with 1120 connections



Look at line 117 of the /usr/local/ddos/ddos.sh file



netstat -ntu | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -nr > $BAD_IP_LIST



Just modify it to the following code!



netstat -ntu | awk ‘{print $5}’ | cut -d: -f1 | sed -n ‘/[0-9]/p’ | sort | uniq -c | sort -nr > $BAD_IP_LIST




Previous:Three-day learning HTML: HTML language learning summary (a must-see for novices)
Next:45 ways to get the database
Posted on 12/26/2014 3:03:05 AM |
ssssssssssssssssssssssssssssssssssssssssssssaaaaaaaaaaaa
Posted on 12/26/2014 3:12:47 AM |
llllllllllllllllllllllllllllllllllllllllllokokokokok
Posted on 12/26/2014 2:59:51 AM |
dsdddddddddddddddddddddddddddddddddddddddd
Posted on 12/26/2014 3:00:17 AM |
dddddddddddddddddddddddddddddddddddd
Posted on 12/26/2014 3:03:20 AM |
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
Posted on 12/26/2014 3:03:45 AM |
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
Posted on 12/26/2014 3:04:24 AM |
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Posted on 12/26/2014 3:04:46 AM |
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Posted on 12/26/2014 3:11:04 AM |
wwwwwwwwwwwwwwwwwwwwwwwqeqwe
Posted on 12/26/2014 3:11:23 AM |
asdsadasdasdasdasdasdasdasdasda
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com