CentOS防御DDoS攻击脚本
用Cron定时任务来执行脚本统计单个IP的最大连接数,如果超过设置的阈值APF或者iptables来阻止,并在预设的阻止时间后释放。
一、安装
下载并允许此安装脚本
wget http://www.inetbase.com/scripts/ddos/install.sh && chmod +x install.sh && install.sh
如果出现错误**-bash: wget: command not found**请执行下列命令
yum install -y wget
二、卸载
wget http://www.inetbase.com/scripts/ddos/uninstall.sh && chmod +x uninstall.sh