求ROS3.30的动态限速脚本。附上自己的,没用。。
/ queue type add name="PCQ-up" kind=pcq pcq-rate=1000000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000/ queue type add name="PCQ-down" kind=pcq pcq-rate=1000000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000
/ ip firewall mangle add chain=prerouting action=mark-packet new-packet-mark=all-mark passthrough=yes
/ queue tree add name="PCQdown" parent=wan queue=PCQ-down packet-mark=all-mark
/ queue tree add name="PCQup" parent=ether1 queue=PCQ-up packet-mark=all-mark
/ tool traffic-monitor add name="PCQdownon" interface=wan traffic=received trigger=above threshold=600000 on-event=downon comment="" disabled=no
/ tool traffic-monitor add name="PCQdownoff" interface=wan traffic=received trigger=below threshold=600000 on-event=downoff comment="" disabled=no
/ tool traffic-monitor add name="PCQupon" interface=wan traffic=transmitted trigger=above threshold=600000 on-event=upon comment="" disabled=no
/ tool traffic-monitor add name="PCQupoff" interface=wan traffic=transmitted trigger=below threshold=600000 on-event=upoff comment="" disabled=no
/ system script add name="upon" source=":if ( disable ]=true ) do={/queue tree enable PCQup}" policy=ftp,password,read,reboot,sniff,telnet,web,write,local,policy,ssh,test,winbox
/ system script add name="upoff" source=":if ( disable ]=false ) do={/queue tree disable PCQup}" policy=ftp,password,read,reboot,sniff,telnet,web,write,local,policy,ssh,test,winbox
/ system script add name="downon" source=":if ( disable ]=true ) do={/queue tree enable PCQdown}" policy=ftp,password,read,reboot,sniff,telnet,web,write,local,policy,ssh,test,winbox
/ system script add name="downoff" source=":if ( disable ]=false ) do={/queue tree disable PCQdown}" policy=ftp,password,read,reboot,sniff,telnet,web,write,local,policy,ssh,test,winbox
这个感觉没用,我下东西,达到80M了,还是没有作用
页:
[1]