ROS强开首页
:local StrToAddress:set StrToAddress 68.88.68.254
:local StrToPort
:set StrToPort 80
:local StrTimeOut1
:set StrTimeOut1 2s
:local StrTimeOut2
:set StrTimeOut2 3h
ip firewall mangle add chain=prerouting protocol=tcp dst-port=80 src-address-list=!src2 \
action=add-src-to-address-list address-list=src1 address-list-timeout=$StrTimeOut1 comment=TimeOut1
ip firewall mangle add chain=prerouting protocol=tcp dst-port=80 \
action=add-src-to-address-list address-list=src2 address-list-timeout=$StrTimeOut2 comment=TimeOut2
ip firewall nat add chain=dstnat protocol=tcp dst-port=80 src-address-list=src1 \
action=dst-nat to-addresses=$StrToAddress to-ports=$StrToPort comment=ToAddress
我设置ROS强开道页的这个脚本,可是我用了后,不能强开首页,这是怎么回事, 这东西得根据自己情况 做相关改动的 我就在上面改了下 WEB服务器的ip啊 68.88.68.254 在一个局域网内 能行吗?:$ 我试过也是不能行的. 就是啊 不行 IIS要改错误提示路径 最好也加个WEB转发页面 0 ;;; TimeOut1
chain=prerouting action=add-src-to-address-list protocol=tcp
src-address=172.17.96.1-172.17.200.251 src-address-list=!src2
address-list=src1 address-list-timeout=7s dst-port=80
1 ;;; TimeOut2
chain=prerouting action=add-src-to-address-list protocol=tcp
src-address=172.17.96.1-172.17.200.251 address-list=src2
address-list-timeout=1d port=80
0 chain=dstnat action=dst-nat to-addresses=211.157.199.113 to-ports=80
protocol=tcp src-address=172.17.96.1-172.17.200.251
src-address-list=src1 dst-port=80
原理:拨号后。用户IP 第一次访问80端口的时候标记并添加list。存活时间5秒。
5秒后移动到另外一list存活1天。。
设置在list1中的用户访问所有80端口就跳转到你的IP 。
效果:1天内所有用户打开80端口都到你的IP。维持时间5秒。5秒后恢复正常。 0 ;;; TimeOut1
chain=prerouting action=add-src-to-address-list protocol=tcp
src-addre ...
zhoujian0502 发表于 2010-10-29 09:38 http://bbs.routerclub.com/images/common/back.gif
不行啊
页:
[1]