请各位高手看下这个脚本是那出错了?
脚本如下:然后将所有内网出来的数据通过pcc的both-addresses分成40分并标记连接和路由:> :for i from=2 to=41 do= {/ip firewall mangle add chain=prerouting src-address-list=lan-add action=mark-connection new-connection-mark=("conn".$i) per-connection-classifier=("both-addresses:40/".$i) comment=$i{... /ip firewall mangle add chain=prerouting src-address-list=lan-add action=mark-routing new-routing-mark=("rout".($i-2)) connection-mark=("conn".$i)}
粘贴后提示:line 1 column 209 本帖最后由 47771885 于 2010-6-25 23:07 编辑
夸张
/ip firewall mangle
:for ii from 2 to 41 do={
:if ([:len ]>0) do={
set action=mark-connection chain=prerouting new-connection-mark=$ii passthrough=yes per-connection-classifier=("both-addresses:40/" . ($ii-1)) src-address=192.168.88.0/24 comment=("C" . $ii)
} else={add action=mark-connection chain=prerouting new-connection-mark=$ii passthrough=yes per-connection-classifier=("both-addresses:40/" . ($ii-1)) src-address=192.168.88.0/24 comment=("C" . $ii)}
}
:for ii from 2 to 41 do={
:if ([:len ]>0) do={:put ("already have routing mark R" . $ii)
} else={add action=mark-routing chain=prerouting connection-mark=$ii new-routing-mark=$ii passthrough=no src-address=192.168.88.0/24 comment=("R" . $ii)}
}自己看着修改了 多谢了 40条ADSL?这么凶猛?
页:
[1]