1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Does script generator work for Thibor16a + Static speed limits?

Discussion in 'HyperWRT Firmware' started by HKPolice, Dec 26, 2006.

  1. HKPolice

    HKPolice LI Guru Member

    Script generator doesn't work for Thibor16a

    Talking about this little program: http://www.hyperwrt.org/forum/viewtopic.php?id=2002&p=1

    Also, is there any way to set static speed limits for certain IPs instead of having it dynamically throttled only when needed?

    This is what it's produced so far:

    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
    tc class add dev br0 parent 1:1 classid 1:10 htb rate 3200kbit prio 2
    tc filter add dev br0 parent 1:0 prio 2 protocol ip handle 10 fw flowid 1:10
    iptables -t mangle -A POSTROUTING -d 192.168.1.10 -j MARK --set-mark 10
    tc qdisc add dev br0 ingress
    tc filter add dev br0 parent ffff: protocol ip u32 match ip src 192.168.1.10 flowid :1 police rate 320kbit mtu 12k burst 10k drop

    Edit: doesn't seem to work :(
     
  2. Banzai27

    Banzai27 LI Guru Member

    should work...find out :)

    I don't think much of the basics of 15c were changed to create 16/6a, so I would guess it would work just fine.

    try it and let us know!
     
  3. HKPolice

    HKPolice LI Guru Member

    Doesn't seem to work :(
     
  4. Thibor

    Thibor Super Moderator Staff Member Member

    maybe because "police" isn't used. i wasn't involved in this script creation app and have not been made aware of it's requirements by the author, if i had; i would've accommodated him.
     
  5. HKPolice

    HKPolice LI Guru Member

    I don't know what I'm doing wrong, I tried setting the interface to br0 and eth1, nothing has any affect on download speeds.

    I'm using PPPoE on the WAN interface, should I set the interface to ppp0 instead?
     
  6. Banzai27

    Banzai27 LI Guru Member

    try creating it again

    Make sure you use the Thibor button in the begining.
    That script with "police" in it looks like a Tomato script (?)

    I just did one and no "police" was used.
     
  7. HKPolice

    HKPolice LI Guru Member

    I tried them all, the tomato button is the only one that doesn't use "police" in the script.

    I tried deleting "police" from the thibor script and still didn't work.
     
  8. HKPolice

    HKPolice LI Guru Member

    I just ran the script manually 1 line at a time without the variables and I got a few errors

    tc qdisc del dev br0 root RTNETLINK answers: No such file or directory I think this is normal.
    tc qdisc add dev br0 root handle 1: htb
    tc class add dev br0 parent 1: classid 1:1 htb rate 4400kbit
    tc class add dev br0 parent 1:1 classid 1:10 htb rate 3200kbit ceil 3200kbit prio 2
    tc filter add dev br0 parent 1:0 prio 2 protocol ip handle 10 fw flowid 1:10 RTNETLINK answers: Invalid argument
    iptables -t mangle -A POSTROUTING -d 192.168.1.10 -j MARK --set-mark 10
    tc qdisc add dev br0 ingress RTNETLINK answers: Invalid argument
    tc filter add dev br0 parent ffff: protocol ip u32 match ip src 192.168.1.10 flowid :1 police rate 320kbit mtu 12k burst 10k drop command is too big
     

Share This Page