QOS限速脚本生成器使用方法(图片教程)
脚本生成器下载器https://www.right.com.cn/forum/viewthread.php?tid=7856&extra=page%3D1
[ 本帖最后由 ekinmagic 于 2007-2-10 23:28 编辑 ] 无效了,老毛子可以用吗?谁提供一个谢谢 LZ觉得好用吗?生成后可直接粘贴使用? 为什么不做一个中文版 这个软件是加壳的似乎本地化比较麻烦,可惜我不会脱壳 不知道那个应该是连接数 使用脚本后如何取消呢 请教番茄 中那个位置输入这个设好的脚本?? 裸版刷DDWRT可以用吗? 我深圳ADSL 3M的,平时最高下载可以达到400K/S,我想限制网内的电脑下载最高只能130K,前面设置的都和你一样,为什么到完成时老提示错误,请看下图,楼主这是为什么,谢谢``另外3M的带宽下行速度是不是填400kbps? 可能楼主翻译有误 dl rate(保证速率) dl ceil (最大速率)
看这句话 还有一点楼主要注意生成的脚本可能太大不能保存到防火墙命令中。我就是这样的,
我是用这个方法解决的脚本如下:
#--------------------------------------------
#WRT54 Script Generator v1.00
#Copyright (C) 2006 Robert "Robson" Mytkowski
#--------------------------------------------
TCA="tc class add dev br0"
TFA="tc filter add dev br0"
tc qdisc del dev br0 root
tc qdisc add dev br0 root handle 1: htb
tc class add dev br0 parent 1: classid 1:1 htb rate 2048kbit
$TCA parent 1:1 classid 1:10 htb rate 300kbit ceil 300kbit prio 2
$TFA parent 1:0 prio 2 protocol ip handle 10 fw flowid 1:10
iptables -t mangle -A POSTROUTING -d 192.168.0.12/30 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.0.16/28 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.0.32/27 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.0.64/26 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.0.128/26 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.0.192/27 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.0.224/28 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.0.240/29 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.0.248/30 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.0.252/31 -j MARK --set-mark 10
tc qdisc add dev br0 ingress
$TFA parent ffff: protocol ip handle 50 fw police rate 300kbit mtu 12k burst 10k drop
iptables -t mangle -A PREROUTING -s 192.168.0.12/30 -j MARK --set-mark 50
iptables -t mangle -A PREROUTING -s 192.168.0.16/28 -j MARK --set-mark 50
iptables -t mangle -A PREROUTING -s 192.168.0.32/27 -j MARK --set-mark 50
iptables -t mangle -A PREROUTING -s 192.168.0.64/26 -j MARK --set-mark 50
iptables -t mangle -A PREROUTING -s 192.168.0.128/26 -j MARK --set-mark 50
iptables -t mangle -A PREROUTING -s 192.168.0.192/27 -j MARK --set-mark 50
iptables -t mangle -A PREROUTING -s 192.168.0.224/28 -j MARK --set-mark 50
iptables -t mangle -A PREROUTING -s 192.168.0.240/29 -j MARK --set-mark 50
iptables -t mangle -A PREROUTING -s 192.168.0.248/30 -j MARK --set-mark 50
iptables -t mangle -A PREROUTING -s 192.168.0.252/31 -j MARK --set-mark 50
ip 地址从192.168.0。12-192.168.0.253 是太长是无法保存的! 我一般自己用循环语句写 楼主,我的无线路由54G是选择了自动获取IP,不是PPPOE,因为我前面还有一个路由,是在前一个路由分了条线过来的,我需要改一下哪里再把这些复制进去呢?
#--------------------------------------------
#WRT54 Script Generator v1.00
#Copyright (C) 2006 Robert "Robson" Mytkowski
#--------------------------------------------
TCA="tc class add dev br0"
TFA="tc filter add dev br0"
tc qdisc del dev br0 root
tc qdisc add dev br0 root handle 1: htb
tc class add dev br0 parent 1: classid 1:1 htb rate 3200kbit
$TCA parent 1:1 classid 1:10 htb rate 400kbit ceil 1300kbit prio 2
$TFA parent 1:0 prio 2 protocol ip handle 10 fw flowid 1:10
iptables -t mangle -A POSTROUTING -d 192.168.10.101 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.10.102 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.10.103 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.10.104 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.10.105 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.10.106 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.10.107 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.10.108 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.10.109 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.10.110 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.10.111 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.10.112 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.10.113 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.10.114 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.10.115 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.10.116 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.10.117 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.10.118 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.10.119 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.10.120 -j MARK --set-mar 请问运行这个脚本后,结果是保存在那的,
以后好编辑啊
谢谢 楼上:保存在防火墙命令中。
楼主:怎样用循环语句能不能给一个例子????