加上 ipfilter 防火墙

2009-05-13 03:46:22来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折


                在 /etc/rc.conf 中
ipfilter_enable="YES"
ipfilter_rules="/etc/ipf.rules"
ipmon_enable="YES"
ipmon_flags="-Ds"
gateway_enable="YES"
ipnat_enable="YES"
ipnat_rules="/etc/ipnat.rules"
ipmon_enable="YES"
ipmon_flags="-D /var/log/ipfilter.log"
/etc/ipf.rules :
block in all
pass in quick proto tcp from any to any  port = 22 keep state
pass in on lnc1 from 192.168.224.0/24 to any keep state
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/9802/showart_134052.html

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:远程登陆,txt界面显示中文

下一篇:OpenBSD Packet Filter包处理流程图