博百优提醒您,网络很危险,请做好安全防护!

给大家推荐几款软件:DDoS-Deflate APF CSF mod_evasive  ModSecurity

当然这些不能也没有必要一起装,推荐选择 APF+DDoS_Deflate组合,或者是CSF,后者从各方面考虑要更好一些。至于mod_evasive  ModSecurity是apache的模块,前者用于ddos防护,后者主要用户脚本检测,攻击检测等。

这些软件的信息请参考下面的链接:

DDoS-Deflate APF mod_evasive

虽然推荐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)

     # 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"
     # 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就不行了。

无相关文章。