Posted: Thu Feb 12, 2009 17:24 Post subject: test WRT54 Script Generator
Hi all i'm testing this WRT54 Script Generator v1.02 on firmware DD-WRT v24-sp2 ( 02/09/09 ) mega - build 11580M NEWD Eko but little probleme ... download speed work #1 but upload speed no working .... anybody help me ???
#--------------------------------------------
#WRT54 Script Generator v1.02
#(C) 2006-2007 Robert "Robson" Mytkowski
#--------------------------------------------
TCA="tc class add dev br0"
TFA="tc filter add dev br0"
TQA="tc qdisc add dev br0"
SFQ="sfq perturb 10"
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 8000kbit
$TCA parent 1:1 classid 1:10 htb rate 2668kbit ceil 4000kbit prio 0
$TCA parent 1:1 classid 1:11 htb rate 2666kbit ceil 8000kbit prio 0
$TCA parent 1:1 classid 1:12 htb rate 2666kbit ceil 8000kbit prio 0
$TQA parent 1:10 handle 10: $SFQ
$TQA parent 1:11 handle 11: $SFQ
$TQA parent 1:12 handle 12: $SFQ
$TFA parent 1:0 protocol ip prio 0 u32 match u16 0x0800 0xFFFF at -2 match u32 0x6E04238D 0xFFFFFFFF at -12 match u16 0x000C 0xFFFF at -14 flowid 1:10
$TFA parent 1:0 protocol ip prio 0 u32 match u16 0x0800 0xFFFF at -2 match u32 0xB57E489D 0xFFFFFFFF at -12 match u16 0x0010 0xFFFF at -14 flowid 1:11
$TFA parent 1:0 protocol ip prio 0 u32 match u16 0x0800 0xFFFF at -2 match u32 0xFA627C00 0xFFFFFFFF at -12 match u16 0x0017 0xFFFF at -14 flowid 1:12
TCAU="tc class add dev imq0"
TFAU="tc filter add dev imq0"
TQAU="tc qdisc add dev imq0"
insmod imq
insmod ipt_IMQ
ip link set imq0 up
tc qdisc del dev imq0 root
tc qdisc add dev imq0 root handle 1: htb
tc class add dev imq0 parent 1: classid 1:1 htb rate 850kbit
$TCAU parent 1:1 classid 1:10 htb rate 350kbit ceil 450kbit prio 0
$TCAU parent 1:1 classid 1:11 htb rate 275kbit ceil 850kbit prio 0
$TCAU parent 1:1 classid 1:12 htb rate 225kbit ceil 850kbit prio 0
$TQAU parent 1:10 handle 10: $SFQ
$TQAU parent 1:11 handle 11: $SFQ
$TQAU parent 1:12 handle 12: $SFQ
iptables -t mangle -A PREROUTING -m mac --mac-source 00:xx:xx:xx:xx:xx -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -m mac --mac-source 00:xx:xx:xx:xx:xx -j MARK --set-mark 11
iptables -t mangle -A PREROUTING -m mac --mac-source 00:xx:xx:xx:xx:xx -j MARK --set-mark 12
iptables -t mangle -A PREROUTING -j IMQ --todev 0
where add insmod ipt_mac ??? try many time no working ... add after insmod ipt_IMQ no working ... remplace insmod ipt_IMQ no working ...
thanks all
It should have worked if you put it right after the other insmod commands. You can telnet/ssh to the router and run lsmod to check if the ipt_mac module is loaded. If it is loaded then run the follow to check if the mac marking is applied:
Joined: 07 Jun 2006 Posts: 1476 Location: New York, USA
Posted: Fri Feb 13, 2009 18:13 Post subject:
phuzi0n wrote:
PIKETEAM wrote:
where add insmod ipt_mac ??? try many time no working ... add after insmod ipt_IMQ no working ... remplace insmod ipt_IMQ no working ...
thanks all
It should have worked if you put it right after the other insmod commands. You can telnet/ssh to the router and run lsmod to check if the ipt_mac module is loaded. If it is loaded then run the follow to check if the mac marking is applied:
iptables -t mangle -L PREROUTING -n
Just looked on mine std-nokaid build - Looks like ipt_mac is not there (my generator rules dont use MAC addresses)
Should this be there by default of only when its specified in the rules?
Check that you're doing the speed test from the only host that you've limited. An easy way to test if anything is working would be to just limit all 3 hosts to rate 128kbit ceil 128kbit and if that works then adjust them afterwords.
testing by ip no control on download but i can control little upload can't control separate pc but control total bw upload _________________ Linksys WRT610N V1 (CFE .16)
Asus WL-500W
D-Link DIR-825