Linux(Centos如何防DDOS进攻软件DDoS呢?
DoS-Deflate是一款免费的用来防备和减轻DDoS进攻。它通过netstat监测跟踪创建大量收集毗连的IP地址,在检测到某个结点超越预设的限造时,该法式会通过APF或IPTABLES制止或阻挠那些IP。
DDoS-Deflate安拆及设置装备摆设
1、安拆
wget 。
inetbase。com/scripts/ddos/install。sh
chmod 0700 install。sh
。/install。sh
2、设置装备摆设
设置装备摆设文件是 /usr/local/ddos/ddos。conf ,默认有如下设置装备摆设
FREQ=1
NO_OF_CONNECTIONS=150
APF_BAN=1
KILL=1
EMAIL_TO=”root”
BAN_PERIOD=600
IP地址白名单:/usr/local/ddos/ignore。
ip。list
卸载
wget
chmod 0700 uninstall。ddos
。/uninstall。ddos
MediaLayer was in need of a script to automatically mitigate (D)DoS attacks。
The necessity started when MediaLayer was the target of a rather large, consistent attack originating from multiple IP addresses。
Each IP would have a large amount of connections to the server, as shown as by:
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n。