Re: [gentoo-user] how to implement net bandwidth quota

2006-03-08 Thread Boyd Stephen Smith Jr.
On Tuesday 07 March 2006 23:52, Bobber Cheng [EMAIL PROTECTED] wrote 
about '[gentoo-user] how to implement net bandwidth quota':
 I'd like to implement net bandwidth quota. E.g. I like give normal use
 1M/s at max, give superuse 10M/s at max, give server user like apache
 50M.

 Any suggestion?

What what I understand, bw quotas on a per-user basis are not possible.  
You could limit each connection to 1M/s and vary that based on the user 
that owns the connection using iptables and connection tracking (may not 
work on SMP systems).  Check out the Advanced Linux Routing HOW-TO on 
tldp.org.  It's still a work in progress, but I learned all my few bw 
throttling abilities through it.

-- 
If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability.
-- Gentoo Developer Ciaran McCreesh
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] how to implement net bandwidth quota

2006-03-07 Thread Bobber Cheng

Hi, all,

I'd like to implement net bandwidth quota. E.g. I like give normal use 
1M/s at max, give superuse 10M/s at max, give server user like apache 50M.


Any suggestion?

Bests,
Bobber
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] how to implement net bandwidth quota

2006-03-07 Thread Heiko Wundram
Am Mittwoch, 8. März 2006 06:52 schrieb Bobber Cheng:
 Any suggestion?

Yes. Go and google for tc and the mark table of iptables, and most probably 
the user-match too. (Linux Advanced Routing  Traffic Control HOWTO ring a 
bell?) 

Oh, and by the way, the HOWTO is nothing you couldn't have found by investing 
a little time on Google. Next time, google before you ask, please...

-- 
--- Heiko.

-- 
gentoo-user@gentoo.org mailing list