由 juliaugong 在 11-13-2003 23:54 发表:
Linux服务器遭遇DoS攻击
只要一启动Apache就会发现有很多个连接来自同一个IP,然后Apache就不能对外服务了。
请高手帮忙解决,谢谢!
域名注册,虚拟主机,企业邮局
国际域名68元/年,国内域名185元/年,注册或转移转入域名即送20M免费空间及10M免费邮箱
领先推出Windows2003+IIS6.0+Asp.Net虚拟主机
详情请登录http://www.xuanyu.cn
由 r2007 在 11-14-2003 01:36 发表:
试试调整一下tcp/ip参数, For Linux kernel 2.2,其它版本未经证实。
/sbin/sysctl -w net.ipv4.tcp_max_syn_backlog=1280 或者更大
Increases the size of the socket queue (effectively, q0).
/sbin/sysctl -w net.ipv4.tcpsyn_cookies=1
Enables support for TCP SYN cookies, which mitigates the effectiveness of SYN floods. However, this may cause performance problems for large windows (see RFC1323 and RFC2018). To read more about SYN cookies, please review DJ Bernstein's paper here.
/sbin/sysctl -w net.ipv4.conf.all.send_redirects=0
/sbin/sysctl -w net.ipv4.conf.all.accept_redirects=0
/sbin/sysctl -w net.ipv4.conf.all.accept_source_route=0
Drop all source route packets.
/sbin/sysctl -w net.ipv4.conf.all.forwarding=0
/sbin/sysctl -w net.ipv4.conf.all.mc_forwarding=0
/sbin/sysctl -w net.ipv4.vs.timeout_timewait=60 缩短连接超时时间
Sockets will linger in TIME_WAIT state for no more than 60 seconds.
/sbin/sysctl -w net.ipv4.icmp_echo_ignore_broadcasts=1
Do not respond to directed broadcasts.
原文
http://www.cymru.com/Documents/ip-stack-tuning.html
由 juliaugong 在 11-14-2003 09:07 发表:
这些我不会弄啊,他是指针对HTTP进行攻击,我可不可以配置Apache让每个IP只能有5个或者更少的链接啊
域名注册,虚拟主机,企