Opened 6 years ago

Closed 3 years ago

#181 closed (fixed)

tc filter doesnt work

Reported by: anonymous Owned by: somebody
Keywords: Cc:

Description

using DD-WRT v24 RC-2 (09/04/07) mini ingress filter works but,no matter wht filter i add, all traffic goes to default id script that i use (saving to firewall) sharing a 128/500kbit link between 4 persons 1.1.1.3,1.1.1.4 > Desktop and Laptop ips gets all bandwidth 1.1.1.10 > gets all bandwidth 1.1.1.20 and 1.1.1.30 shares 24kbit up,160kbit down(or 3k/20k)

tc qdisc del dev ppp0 root 2> /dev/null > /dev/null tc qdisc del dev ppp0 ingress 2> /dev/null > /dev/null tc qdisc add dev ppp0 root handle 1: htb default 10 tc class add dev ppp0 parent 1: classid 1:1 htb rate 10kbps ceil 10kbps tc class add dev ppp0 parent 1:1 classid 1:10 htb rate 4kbps ceil 10kbps burst 8k prio 1 quantum 1000 tc class add dev ppp0 parent 1:1 classid 1:20 htb rate 3kbps ceil 3kbps burst 4k prio 3 quantum 1000 tc qdisc add dev ppp0 parent 1:10 handle 10: sfq perturb 10 tc qdisc add dev ppp0 parent 1:20 handle 20: sfq perturb 10 tc filter add dev ppp0 parent 1:0 protocol ip prio 3 u32 match ip src 1.1.1.16/28 flowid 1:20 tc qdisc add dev ppp0 handle ffff: ingress tc filter add dev ppp0 parent ffff: protocol ip prio 50 u32 match ip dst 1.1.1.16/28 police rate 160kbit burst 10k drop flowid :1

Change History (4)

comment:1 Changed 6 years ago by BrainSlayer

  • Resolution set to invalid
  • Status changed from new to closed

dd-wrt will clean your qos rules since it has a own qos handling. no bug, you have to modify the dd-wrt sourcecode to get control about the tc filters

comment:2 Changed 6 years ago by leosdutra@…

  • Resolution invalid deleted
  • Status changed from closed to reopened
  • type changed from defect to enhancement

Is this ever going to change? or is this how you really intended it to work? Doesn't seems right to me. Should at least have config file, not to be forced to recompile the whole thing... So, for each computer I add to my network, I'll have to change source code? Does it really seems right? Is there any problems, if you don't clean qos rules? or maybe, apply our rules after your qos handling? Really weird... might not be a bug, but still looks weird...

comment:3 Changed 6 years ago by anonymous

i can see all my filters doing tc filter list dev ppp0 parent 1: and theres no other filters, i'm not using dd-wrt's qos

comment:4 Changed 3 years ago by phuzi0n

  • Resolution set to fixed
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.