##### Paths of the script and other files
PROGDIR="/usr/local/ddos/ddos.conf" #脚本存放位置
PROG="/usr/local/ddos/ddos.sh" #主程序脚本
IGNORE_IP_LIST="/usr/local/ddos/ignore.ip.list" #白名单IP设置
CRON="/etc/cron.d/ddos.cron" #定时任务脚本路径
APF="/etc/apf/apf" #APF路径
IPT="/sbin/iptables" #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 #检查周期时间,默认为1分钟
##### How many connections define a bad IP? Indicate that below.
NO_OF_CONNECTIONS=150 #允许客户端与服务器的最大连接数,超过就会被屏蔽,保持默认
##### 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 #数字1为使用APF,数字0为使用iptables,因为配合AMH推荐用iptables
##### KILL=0 (Bad IPs are'nt banned, good for interactive execution of script)
##### KILL=1 (Recommended setting)
KILL=1 #是否屏蔽IP,默认
##### An email is sent to the following address when an IP is banned.
##### Blank would suppress sending of mails
EMAIL_TO="system@xxx.com" #指定你要接收警告的邮箱
##### Number of seconds the banned ip should remain in blacklist.
BAN_PERIOD=600 #屏蔽违规IP多少秒,我是3600