From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Furniss Date: Fri, 18 Jun 2004 00:10:58 +0000 Subject: Re: [LARTC] How to limit per tcp session ? Message-Id: <40D23312.2020700@dsl.pipex.com> List-Id: References: <200406161632.43708.rio@martin.mu> In-Reply-To: <200406161632.43708.rio@martin.mu> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Ed Wildgoose wrote: > >> Okay, then let me describe whats on my mind to help develope this >> project (if someone dare to start make a project) >> >> The idea perhaps like this: >> Let say i'm goin to download some graphics from www.lartc.org. The >> first session i opened my browser, created connection localhost:3101 >> --> www.lartc.org:80, the 2nd, localhost:3102 --> www.lartc.org:80, >> and so on. >> So as you could see, this is the key. Source port, not Destination port. >> Every time you open new window of your browser and connect to some >> host, they create other originating port which is completely different >> from the 1st. >> >> > > Hmm, I think the ESFQ module *might* be able to do a little of what you > ask if you hash on port? Worth a look anyway. In fact you might even > be able to tweak the code to hash on something different? You could probably do the hash bit, but (e)sfq doesn't rate limit, so rate per tcp would vary with the number of connections. Andy. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/