CentOS安装CSF防火墙


1、安装CSF依赖包
yum install perl-libwww-perl perl iptables
2、下载安装包
wget http://www.configserver.com/free/csf.tgz tar -xzf csf.tgz cd csf sh install.sh
3、安装需要的时间很短,完成后运行。
perl /etc/csf/csftest.pl
4、成功运行后提示
Testing ip_tables/iptable_filter...OK Testing ipt_LOG...OK Testing ipt_multiport/xt_multiport...OK Testing ipt_REJECT...OK Testing ipt_state/xt_state...OK Testing ipt_limit/xt_limit...OK Testing ipt_recent...OK Testing ipt_owner/xt_owner...OK Testing iptable_nat/ipt_REDIRECT...OK RESULT: csf should function on this server
因为在DA和CP有可视,我没有安装,进异步探索中。这样就安装完毕了。安装后是测试模式,你可以在/etc/csf/csf.conf里面看下配置,没什么问题的话,可以把测试模式去掉。

相关内容

    暂无相关文章