From: Jens Thiele Date: Sun, 16 Sep 2007 15:31:05 +0000 Subject: Re: [LARTC] htb : server trafficcontrol Message-Id: <87lkb6d3uu.fsf@thialfi.karme-net.hirschau> List-Id: References: <46ebc3b932656@wp.pl> In-Reply-To: <46ebc3b932656@wp.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On 16 Sep 2007, marek@piasta.pl wrote: > Suppose we have simple router with upstream interface connected > to internet (eth0) and downstream interface connected to lan (eth1). > Lan uses private addressing so there is NAT rule used for traffic > leaving eth0. > > You can redirect lan->internet traffic from ingress qdisc > of eth1 to ifb0. Traffic on ifb0 will be in "before-nat" state, so > private address based shaping will be possible. So no need for > classifying de-nated traffic. Yes, this is of course possible. But then you don't shape the traffic from/to the server itself which is what the original poster wants to do. > Some people here on lartc list shared opinions that shaping in ingress > is not effective. It worked for me well on routers with hundreds of > clients. It works for me quite well, too. (And IMHO would work really well if ECN would be in widespread use) (using IMQ + kernel 2.6.18 - as long as nobody floods me with UDP packets ;-) Greetings Jens _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc