你好,游客 登录 注册 搜索
背景:
阅读新闻

Ubuntu 安装CSF防火墙

[日期:2012-09-16] 来源:Linux社区  作者:Linux [字体:大 中 小]

1. 安装
Login as the root user to SSH and run the following commands.
rm -fv csf.tgz
wget http://www.configserver.com/free/csf.tgz

apt-get install libwww-perl
tar -xzf csf.tgz
cd csf
sh install.sh

2. 防范DDOS攻击
Step 1 :  Open the CSF configuration file /etc/csf/csf.conf
Step 2 : In that search for option called CT_LIMIT, by default it will be like CT_LIMIT=0 , change this to CT_LIMIT=90 ,here 90 is the max no.of connections from an IP to your server ( choose this value according to your server usage )

Step 3:Now search for option called CT_PORTS.This option is used to specify the port for which you want prevent DOS attack.Since our aim is to prevent the DOS attck to apache – port 80 , change CT_PORTS = “” to CT_PORTS = “80″

3. 限制每个IP连接数

CONNLIMIT = "80;7"

4. PT_LIMIT = "0" 禁止程序内存不足时,发邮件

linux
相关资讯       CSF防火墙 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款