online2311 发表于 2011-9-3 20:39:07

麻烦各位老大帮忙看一下脚本。。。

:global num
:set num 10
:for wjsd from=1 to=$num do={
:global type
:set type ("both-addresses:".$num . "/" .($-1))
/ip firewall mangle
add action=mark-connection chain=input comment=("From_ADSL" .$wjsd disabled=no \
    in-interface=("pppoe-out .$wjsd) new-connection-mark=("adsl".$wjsd ."_conn") passthrough=yes
add action=mark-connection chain=output comment=("To_ADSL" .$wjsd disabled=no \
    new-connection-mark=("pppoe-out .$wjsd) out-interface=("adsl".$wjsd ."_conn" passthrough=yes
/ip firewall mangle
add chain=prerouting action=mark-connection new-connection-mark=("adsl".$wjsd ."_conn") \
dst-address-type=!local in-interface=Localper-connection-classifier=$type passthrough=yes comment=("ADSL_PCC" .$wjsd)
/ip firewall mangle
add chain=prerouting connection-mark=("adsl".$wjsd ."_conn") in-interface=Local action=markrouting new-routing-mark=( "to_adsl" .$wjsd) \
comment=("Route_To_ADSL" .$wjsd)

ROS 5.5导入失败。。。请问那里写错了。
页: [1]
查看完整版本: 麻烦各位老大帮忙看一下脚本。。。