|
发表于 2012-2-6 01:00:43
|
显示全部楼层
/system script
add name=2m policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
:do {\r\
\n:local max 1000000/2000000\r\
\n:if ([/queue simple get [/queue simple find] max-limit]!=\$max) do={\r\
\n/queue simple set [/queue simple find] max-limit=\$max\r\
\n}}"
add name=no policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
:do {\r\
\n:local max 0/0\r\
\n:if ([/queue simple get [/queue simple find] max-limit]!=\$max) do={\r\
\n/queue simple set [/queue simple find] max-limit=\$max\r\
\n}}";
/tool traffic-monitor
add comment="" disabled=no interface=wan name=more on-event="2m\r\
\n" threshold=90000000 traffic=received trigger=above
add comment="" disabled=no interface=wan name=less on-event="no\r\
\n" threshold=90000000 traffic=received trigger=below
--------------------------------
这么限速效果可不会好到哪去哦 |
|