LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 664|回复: 1

ipf分组问题 这样对吗?大家帮我看看呀

[复制链接]
发表于 2005-8-7 16:13:20 | 显示全部楼层 |阅读模式
ipf分组问题


10.0.0.1
10.0.0.5
10.0.0.4
为一组
可以出外网

10.0.0.2
10.0.0.8
可以对外发送邮件

10.0.0.7
10.0.0.6
外网关闭


###################
ipf有规则可以分组吗
比如
pass ............
10.0.0.1
10.0.0.5
10.0.0.4


pass  25  110
block  any
10.0.0.2
10.0.0.8


block  any

10.0.0.7
10.0.0.6

有这样的分组规则吗?
 楼主| 发表于 2005-8-7 21:12:56 | 显示全部楼层
这样对吗?大家帮我看看呀




block in quick all with short
block in quick all with ipopts
block in log quick all with short
block in log quick all with ipopts
block in log quick all with opt lsrr
block in log quick all with opt ssrr
pass in quick on lo0 all
pass out quick on lo0 all
pass in quick on vr0 all
pass out quick on vr0 all
#####################################################################
block in quick on vr1 all head 10
#####
pass in quick on vr1 proto tcp/udp from 192.168.0.10/32 to any port = 53 keep state group 10
pass in quick on vr1 proto tcp/udp from 192.168.0.10/32 to any port = 80 keep state group 10
pass in quick on vr1 proto tcp/udp from 192.168.0.10/32 to any port = 22 keep state group 10
#####
#####
pass in quick on vr1 proto tcp/udp from 192.168.0.20/32 to any port = 53 keep state group 10
pass in quick on vr1 proto tcp/udp from 192.168.0.20/32 to any port = 21 keep state group 10
pass in quick on vr1 proto tcp/udp from 192.168.0.20/32 to any port = 110 keep state group 10
#####
###########################################################################
pass in quick all
pass out quick all
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表