currently using this code to make classes note: this is being used on a bridge which has been patch to allow iptables to effect the packets. http://bridge.sourceforge.net/ _________ tcclass_add="tc class add dev brint_ext parent 1: classid" tcclass_rate="cbq allot 1514 avpkt 1000 rate" tcclass_end=""
tc qdisc add dev brint_ext root handle 1: cbq bandwidth 192kbps avpkt 1000 tc class add dev brint_ext parent 1: classid 1:1 cbq allot 1514 avpkt 1000 rate 5kbps $tcclass_add 1:2 $tcclass_rate 128kbit #up $tcclass_add 1:3 $tcclass_rate 128kbit #down $tcclass_add 1:4 $tcclass_rate 256kbit #up $tcclass_add 1:5 $tcclass_rate 256kbit #down $tcclass_add 1:6 $tcclass_rate 768kbit $tcclass_add 1:7 $tcclass_rate 768kbit $tcclass_add 1:8 $tcclass_rate 384kbit $tcclass_add 1:8 $tcclass_rate 256kbit _________ I need to filter packets into these classes with iptables. the line i have came up with so far is as follows iptables -A FORWARD -s <IP> iptables -A FORWARD -d <IP> how to i finish the line so that when a packet comes from an IP it will be filtered into the correct class for limiting.? this is being used on a bridge which has been patch to allow iptables to effect the packets. I believe there is something to do with marking but dont understand which mark command to use.
