博百优之DDOS防护
May.02, 2010 in
杂谈
博百优提醒您,网络很危险,请做好安全防护!
给大家推荐几款软件:DDoS-Deflate APF CSF mod_evasive ModSecurity
当然这些不能也没有必要一起装,推荐选择 APF+DDoS_Deflate组合,或者是CSF,后者从各方面考虑要更好一些。至于mod_evasive ModSecurity是apache的模块,前者用于ddos防护,后者主要用户脚本检测,攻击检测等。
这些软件的信息请参考下面的链接:
虽然推荐CSF,但是今天我们还是先讲下APF,因为这个用的更广泛。
APF安装
* 下载APF源码
# wget http://www.rfxn.com/downloads/apf-current.tar.gz
* 解压缩
# tar -xvzf apf-current.tar.gz
* 进入 APF目录
# cd apf-0.9.7-1/ or whatever the latest version is.
* 运行安装文件
# ./install.sh
APF设置
修改配置文件
# vi /etc/apf/conf.apf
端口 设置 (INGRES)
- cPanel的 设置
# Common ingress (inbound) TCP ports
IG_TCP_CPORTS=" 20,21,22,25,26,53,80,110,143,443,465,993,995,2082,
2083,2086,2087,2095,2096,3306,6666"\
# Common ingress (inbound) UDP ports
IG_UDP_CPORTS="21,53,465,873"
- DirectAdmin 面板的设置
# Common ingress (inbound) TCP ports
IG_TCP_CPORTS=" 21,22,25,53,80,110,111,143,443,587953,2222,3306,32769"
# Common ingress (inbound) UDP ports
IG_UDP_CPORTS="53,111,631,724,5353,32768,32809"
今天先讲这么多,下次给大家讲 DDoS-Deflate 。如果你参加博百优大赛,那么给你的服务器装好这些软件,免的被攻击。不过这些都是装在linux或者apache上的,如果就用windows就不行了。
无相关文章。


December 14th, 2010 at 6:53 am
沙发··········
[Reply]
August 29th, 2011 at 6:47 pm
每次看到这种文章我心情都很复杂,我很害怕我能做到的和我现在所看到的差之千里。
[Reply]
September 1st, 2011 at 1:59 pm
先mark一下,为你增加些人气。
[Reply]
September 4th, 2011 at 2:12 pm
每次看到这种文章我心情都很复杂,我很害怕我能做到的和我现在所看到的差之千里。
[Reply]