On Thu, 24 Oct 2002, Tom wrote: > tc filter add dev $DEV parent 1:0 prio 0 protocol ip handle 20 fw flowid 1:20 > tc filter add dev $DEV parent 1:0 prio 0 protocol ip handle 21 fw flowid 1:21 > tc filter add dev $DEV parent 1:0 prio 0 protocol ip handle 22 fw flowid 1:22 This odd. With my setup (2.4.20pre10 and tc from the 3.6 tarball) I need to specify classid instead of flowid: # tc filter add fw help Usage: ... fw [ classid CLASSID ] [ police POLICE_SPEC ] POLICE_SPEC := ... look at TBF CLASSID := X:Y > iptables -t mangle -N MYSHAPER-OUT > iptables -t mangle -I POSTROUTING -o $DEV -j MYSHAPER-OUT Tried OUTPUT chain for locally generated packets? > I transfered a file by ftp. The packets was sent through the class 22 and > its bandwith limited to 88kbits, which is normal. Yes if normal == default. > But i sent pings and thoose packets were sent through the class 22 too > which is not normal due to the mangle packets marking. I know which > class was used by looking the tc classes status. Why icmp packets was > not sent through class 20 ? To see which chain you're required to use, append your MYSHAPER-OUT chain to all default chains in the mangle table and see if it works. Then have a look at the packet counts and remove the unused. Walter _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/