From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stef Coene Date: Fri, 20 Dec 2002 21:13:47 +0000 Subject: Re: [LARTC] Filter in HTB not working Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org On Friday 20 December 2002 03:31, Miguel Figueiredo wrote: > Em Qui, 2002-12-19 =E0s 10:06, Nestor S A Melo escreveu: > > Nestor, > > First: If my english is poor, you can contact me direct by email in > portuguese since I`m Brazilian too :) > > So, somebody correct me if I`m wrong ( Stef? ): > > 1 - I think you share more bandwidth than you have allocated. That's no problem. Rate of class 1:10 and 1:20 =3D 26+220=3D246kbit and ra= te of=20 parent class is 256kbit. > 2 - In sfq directive, you should write: > #tc qdisc add dev eth0 parent 1:10 handle 10: sfq perturb 10 His command will work too. > 3 - You've marked packets with iptables -t mangle, but you're using u32 > instead fw.I'm not sure if you did the correct u32 configuration too. > > Probably you must use: > > #tc filter add dev eth0 parent 1: protocol ip prio 100 handle 6 fw classid > 1:10 > > The handle is the parameter that says to tc what mark you're using and > fw is the parameter that says to tc that you're using a firewall mark. And it's all in hex. Stef --=20 stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/