Re: [squid-users] Limiting user's bandwidth

From: Andrew Beverley <andy_at_andybev.com>
Date: Sun, 31 Oct 2010 23:41:45 +0000

On Fri, 2010-10-29 at 05:48 -0700, Landy Landy wrote:
>
> --- On Thu, 10/28/10, Andrew Beverley <andy_at_andybev.com> wrote:
>
> > From: Andrew Beverley <andy_at_andybev.com>
> > Subject: Re: [squid-users] Limiting user's bandwidth
> > To: "Landy Landy" <landysaccount_at_yahoo.com>
> > Cc: "Squid-Users" <squid-users_at_squid-cache.org>
> > Date: Thursday, October 28, 2010, 6:33 PM
> > > > > $tc filter add
> > dev eth1 parent 2:0
> > > > protocol ip prio 4 handle 1003 fw
> > classid
> > > > 2:1003
> > > >
> > > > I'm no expert, but I would remove the prio
> > parameter. I
> > > > think this is
> > > > matching the prio value of a packet - probably
> > not what you
> > > > want. I
> > > > would also change the "classid" to "flowid".
>
> Changed "classid" to "flowid" and got this error:
>
> We have an error talking to the kernel
> RTNETLINK answers: Invalid argument
> Error: Qdisc "flowid" is classless.
> RTNETLINK answers: File exists
> We have an error talking to the kernel
> RTNETLINK answers: Invalid argument
>
>

Off the top of my head, I think you need to only include the MARK value
(eg 1003), so drop the "2:" part.

Andy
Received on Sun Oct 31 2010 - 23:41:58 MDT

This archive was generated by hypermail 2.2.0 : Mon Nov 01 2010 - 12:00:06 MDT