找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 5191|回复: 0

[脚本] 求ROS3.30的动态限速脚本。附上自己的,没用。。

[复制链接]
发表于 2012-12-6 14:37:51 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
/ 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 ([/queue tree get [/queue tree find  name=\"PCQup\"] 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 ([/queue tree get [/queue tree find  name=\"PCQup\"] 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 ([/queue tree get [/queue tree find  name=\"PCQdown\"] 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 ([/queue tree get [/queue tree find  name=\"PCQdown\"] disable ]=false ) do={/queue tree disable PCQdown}" policy=ftp,password,read,reboot,sniff,telnet,web,write,local,policy,ssh,test,winbox


这个感觉没用,我下东西,达到80M了,还是没有作用
routeros
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-6-10 03:49 , Processed in 0.046104 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表