From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Peter V. Saveliev" Date: Tue, 25 Sep 2007 21:26:51 +0000 Subject: Re: [LARTC] incoming traffic Message-Id: <200709260126.52343.peet@altlinux.org> List-Id: References: <519f77360702270831v2dd01e3bu6af6c75de50d96eb@mail.gmail.com> In-Reply-To: <519f77360702270831v2dd01e3bu6af6c75de50d96eb@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org > Hello, > > i made this script : > tc qdisc add dev eth0 handle ffff: ingress > The main goal is to limit incoming traffic from 138.96.20.23 to 15000kbit > and the incoming traffic from 138.96.20.10 to 10000kbit. But the total must > not exceed 20000kbit. Does it work? Afair, such setup is possible only with htb/cbq, not with policing filters. But I can stumble. If so, consider to use imq (which can be unstable) or to shape outgoing traffic, if it is applicable (e.g., on a router). If you do not have imq, but use OpenVZ or Xen with network in routed mode, you can try to use htb to shape traffic to a VE. -- Peter V. Saveliev _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc