所有的web服务器都有可以有受到Dos(DDos)攻击。这种攻击的目的就是在短时间内制造数量巨大的并发连接,从而使用服务器down机或消耗掉网络带宽和系统资源导致正常用户无法正常访问浏览网站。
DOS/DDOS攻击有很多各类,防范攻击的工具也有很多,比如防火墙。 (D)DoS-Deflate是一款免费的用来防御和减轻DDOS攻击。它通过netstat监测跟踪创建大量网络连接的IP地址,在检测到某个结点超过预设的限制时,该程序会通过APF或IPTABLES禁止或阻挡这些IP.
安装:
wget http://www.inetbase.com/scripts/ddos/install.sh
chmod 0700 install.sh
./install.sh
卸载:
wget http://www.inetbase.com/scripts/ddos/uninstall.ddos
chmod 0700 uninstall.ddos
./uninstall.ddos
配置文件夹是 ddos.conf ,默认有如下配置
FREQ=1
NO_OF_CONNECTIONS=50
APF_BAN=1
KILL=1
EMAIL_TO=”root”
BAN_PERIOD=600
当然是通过这个地方来控制它的动作了。
相关文章:
http://www.linuxsecurity.com/content/view/121960/49/
http://hostechs.com/2008/09/dropping-a-ddos-attack-using-ttl-and-length-in-iptables/
http://lists.netfilter.org/pipermail/netfilter/2006-November/067388.html
http://forums.digitalpoint.com/showthread.php?t=592096
http://himic.org/?info=anti_ddos
http://securepoint.com/lists/html/NetFilter/2006-11/msg00194.html
http://www.kernel-panic.org/pipermail/kplug-list/2009-May/108075.html