|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
本帖最后由 crc8 于 2011-12-3 15:29 编辑
版本4.9,LAN IP:192.168.200.0/24,设置某些时间段不能上网,但VIP=192.168.200.120此IP不受限制。在未启用Hostpot功能一切按照防火墙中的设置来,一旦开启hostpot,在规定的时间段内,VIP同样无法上网。要如何设置,才能在开启hostpot的情况下,让VIP在非上网时段同样可以正常上网呢?- [admin@Gateway] /ip firewall> filter
- [admin@Gateway] /ip firewall filter> pr
- Flags: X - disabled, I - invalid, D - dynamic
- 0 X ;;; place hotspot rules here
- chain=unused-hs-chain action=passthrough
- 1 ;;; 00:00
- chain=forward action=drop src-address=192.168.200.0/24
- src-address-list=!vip time=0s-1m59s,sun,sat
- 2 ;;; 18:00
- chain=forward action=drop src-address=192.168.200.0/24
- src-address-list=!vip time=17h57m59s-17h59m59s,mon,tue,wed,thu,fri
- [admin@Gateway] /ip firewall filter> export
- # dec/01/2011 18:03:21 by routeros 4.9
- # software id = ***-***
- #
- /ip firewall filter
- add action=passthrough chain=unused-hs-chain comment=\
- "place hotspot rules here" disabled=yes
- add action=drop chain=forward comment=00:00 disabled=no src-address=\
- 192.168.200.0/24 src-address-list=!vip time=0s-1m59s,sun,sat
- add action=drop chain=forward comment=18:00 disabled=no src-address=\
- 192.168.200.0/24 src-address-list=!vip time=\
- 17h57m59s-17h59m59s,mon,tue,wed,thu,fri
- [admin@Gateway] /ip firewall filter>
复制代码
firewall.rar
(362 Bytes, 下载次数: 2)
|
|