Tom Eastep wrote: > > Am I right in thinking that this would translate to the following in > > tcclasses ? > > ... > >Yes.
Champion. >Yes, assuming that you can classify incoming traffic based on packets as >they look on the wire. I'm currently using loads of tc filters like this : run_tc filter add dev ethint parent 100:0 protocol ip prio 1 u32 match ip dst a.b.c.x/32 flowid 100:117 run_tc filter add dev ethext parent 1:0 protocol ip prio 1 u32 match ip src a.b.c.x/32 flowid 1:17 run_tc filter add dev ethint parent 100:0 protocol ip prio 1 u32 match ip dst a.b.c.x/32 match ip dport 25 0xffff flowid 100:118 run_tc filter add dev ethext parent 1:0 protocol ip prio 1 u32 match ip src a.b.c.x/32 match ip dport 25 0xffff flowid 1:18 It's not too bad where there's a separate bandwidth allocation for a single customer or device, but in some cases there are multiple customers/devices sharing one allocation - so it's gets somewhat repetitive and I suspect inefficient. I still haven't fully got my head around http://shorewall.net/traffic_shaping.htm