DDoS deflate其实非常简单,下面是详细的安装和配置步骤: 1.安装 DDoS deflate
wget http://www.inetbase.com/scripts/ddos/install.sh //弹出版权信息后,在SSH下键入 q , 即可退出版权信息。 2.配置 DDoS deflate . 安装成功后会提示Config file is at /usr/local/ddos/ddos.conf,所以你可以在ddos.conf里进行简要配置. # vim /usr/local/ddos/ddos.conf
##### Paths of the script and other files
##### frequency in minutes for running the script
##### How many connections define a bad IP? Indicate that below.
##### APF_BAN=1 (Make sure your APF version is atleast 0.96)
##### KILL=0 (Bad IPs are’nt banned, good for interactive execution of script)
##### An email is sent to the following address when an IP is banned. 3.卸载 DDoS deflate ,如果你不想用.
wget http://www.inetbase.com/scripts/ddos/uninstall.ddos 另外如果总是会收到以下类似的邮件提示的话 Banned the following ip addresses on Tue Aug 5 01:32:01 BST 2008 1120 with 1120 connections 请查看/usr/local/ddos/ddos.sh文件的第117行 netstat -ntu | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -nr > $BAD_IP_LIST 修改为以下代码即可! netstat -ntu | awk ‘{print $5}’ | cut -d: -f1 | sed -n ‘/[0-9]/p’ | sort | uniq -c | sort -nr > $BAD_IP_LIST (责任编辑:IT) |