Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1261662
  • 博文数量: 315
  • 博客积分: 10397
  • 博客等级: 上将
  • 技术积分: 3731
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-07 21:21
文章分类

全部博文(315)

文章存档

2015年(10)

2014年(3)

2013年(2)

2012年(8)

2011年(8)

2010年(29)

2009年(59)

2008年(77)

2007年(119)

分类:

2010-09-26 17:26:43

转自:

(D)DoS-Deflate是一款免费的用来防御和减轻DDoS攻击。它通过netstat监测跟踪创建大量网络连接的IP地址,在检测到某个结点超过预设的限制时,该程序会通过APF或IPTABLES禁止或阻挡这些IP.

DDoS-Deflate安装及配置

1、安装

wget 
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

阅读(2586) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~