Hi all: Current shorewall only support one level flat htb queue. Here it is a patch to make htb support multiple level htb tree. It is based on shorewall shell. I changed the format of tcclasses configure file. eg. configure file #INTERFACE MARK PARENT RATE CEIL PRIORITY OPTIONS eth2 0 - full full 3 default eth2 T1 - full full 1 eth2 T10 T1 full/2 full/2 1 eth2 11 T1 full/2 full/2 1 eth2 T12 T1 full/2 full/2 1 eth2 101 T10 full/3 full/3 1 eth2 102 T10 full/3 full/3 1 eth2 121 T12 full/3 full/3 1 eth2 122 T12 full/3 full/3 1 will generate a tree like: root 1:0 | _1:1_ / | \ / | \ / | \ 10: 11: 12: / \ / \ 10:1 10:2 12:1 12:2 The mark begin with a T is a tree node, following number is its tree id. The mark witch is a number is fwmark, has the same meaning as before. Parent is a column I added witch specifies the parent of the node, and ''-'' means root. It must be a tree id witch is defined before it or a ''-''. ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4