RE: [LARTC] bandwidth limitation per dynamic IP

2004-10-19 Thread Ow Mun Heng
On Wed, 2004-10-20 at 01:17, EC wrote:
> >On Tue, 2004-10-19 at 00:03, EC wrote:
> >> Hi,
> >>
> >> Is there a way to do the following with lartc tools :
> >> I would like to limit any entering user to not use more than Xkb/mb to my
> >> website. The IPs they use are changing all the time so static IP
> >limitation
> >> cannot be used. Is there a way doing so ?
> >
> >You Say "any entering users"
> >
> >If that case, then make a _general_ rule to throttle traffic from
> >to/from port 80
> No.
> There is a general bandwidth limitation for port 80. What I need is limiting
> each user to never use more than Xkb EVEN if there is some bandwidth left
> free.

Wow.. You want to limit based on _per_ user? I'm not sure how that can
be achieved.

What I can think of is to have some sort of logwatcher (syslog-ng)
coupled with swatch (?) and using it to feed into a program that can
dynamically add the IP address into the IPtables FW mark.

But seriously, What you're trying to do, to me, doesn't make much sense.

If user A comes to your site, you give A 10kb/s (out of 50kb/s)
If user B comes then, another 10kb/s is given.

If you have 5 users concurrently then all the 50kb/s is used up.

What happens when user #6 comes in then? U pump out 50kb/s? No such
thing right?

I think the general rule of _how_ much you want to feed out is more
applicable for your needs. (correct me if I'm wrong of more info
please).

Say.. If you limit 50Kb/s for _all_ users, then it will be equally
shared between _all_ users.

-- 
Ow Mun Heng
Fedora GNU/Linux Core 2 on D600 1.4Ghz CPU kernel
2.6.7-2.jul1-interactive 
Neuromancer 09:40:50 up 34 min, 9 users, load average: 0.85, 1.19, 1.18 
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re[2]: [LARTC] bandwidth limitation per dynamic IP

2004-10-19 Thread Michael Slinn
mod_bandwidth (and all apache mods) only can average many, small 
responses.  They can't effectively throttle traffic for large downloads 
since download speeds are averaged between entire files.  This is why 
I'm looking at lartc.

Mike
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] [ANNOUNCE] iproute2 2.6.9-041019

2004-10-19 Thread Stephen Hemminger
Now that 2.6.9 is final. Here is an update of the iproute2 utilities 
that contains
all the patches in my queue. 

   * lnstat to replace rtstat and ctstat (from Harald Welte)
   * latest xfrm related changes
   * several small typo's and build fixes for older systems
http://developer.osdl.org/dev/iproute2/download/iproute2-2.6.9-041019.tar.gz
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] IP based bandwith limit

2004-10-19 Thread Christoph Petersen
Hi,
some other question - with this setup there are two interfaces.
Each interface has two classes. So if I take 1:16 example I've
1.5Mbit for upload and other 1.5Mbit for download. But when I upload
with 1.5Mbit how many bandwith there is for download?
Greets
Christoph
james jones wrote:
Check www.geocities.com/jame_sj
James
 

Message: 2
Date: Mon, 18 Oct 2004 11:17:41 +0200
From: Christoph Petersen <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [LARTC] IP based bandwith limit
Hi,
i've following problem. One of our gateway router, which connects
some 
of our customers should have bandwith limit.

So customer A with IP XX should have 2 Mbit, customer B with IP YY 
should have 10 Mbit. There is no need of borrowing bandwith so no 
fairness needed.

My simple question: with which technique should I manage this
shaping? 
Or is there any existing project which provides this allready?

Greets
Christoph
--__--__--
   

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
 

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


RE:[LARTC] IP based bandwith limit

2004-10-19 Thread Peter Huetmannsberger


Hi!

This is a nicely organized script, thank you. If I understand it correctly 
it stilmeans that there is a bandwidth of 28k for both upload and download 
though, and not 28k altogether. Or am I wrong?

many thanks, 

.peter




On Tue, 19 Oct 2004, james jones wrote:

> Check www.geocities.com/jame_sj
> 
> James
> > Message: 2
> > Date: Mon, 18 Oct 2004 11:17:41 +0200
> > From: Christoph Petersen <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: [LARTC] IP based bandwith limit
> > 
> > Hi,
> > 
> > i've following problem. One of our gateway router, which connects
> > some 
> > of our customers should have bandwith limit.
> > 
> > So customer A with IP XX should have 2 Mbit, customer B with IP YY 
> > should have 10 Mbit. There is no need of borrowing bandwith so no 
> > fairness needed.
> > 
> > My simple question: with which technique should I manage this
> > shaping? 
> > Or is there any existing project which provides this allready?
> > 
> > Greets
> > Christoph
> > 
> > --__--__--
> > 
> 
> ___
> LARTC mailing list / [EMAIL PROTECTED]
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> 

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] IP based bandwith limit

2004-10-19 Thread Christoph Petersen
Hi,
one question - whats the trick behind your marking "flags" (28, 56, ...).
Greets
Christoph
james jones wrote:
Check www.geocities.com/jame_sj
James
 

Message: 2
Date: Mon, 18 Oct 2004 11:17:41 +0200
From: Christoph Petersen <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [LARTC] IP based bandwith limit
Hi,
i've following problem. One of our gateway router, which connects
some 
of our customers should have bandwith limit.

So customer A with IP XX should have 2 Mbit, customer B with IP YY 
should have 10 Mbit. There is no need of borrowing bandwith so no 
fairness needed.

My simple question: with which technique should I manage this
shaping? 
Or is there any existing project which provides this allready?

Greets
Christoph
--__--__--
   

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
 

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


RE:[LARTC] IP based bandwith limit

2004-10-19 Thread james jones
Check www.geocities.com/jame_sj

James
> Message: 2
> Date: Mon, 18 Oct 2004 11:17:41 +0200
> From: Christoph Petersen <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [LARTC] IP based bandwith limit
> 
> Hi,
> 
> i've following problem. One of our gateway router, which connects
> some 
> of our customers should have bandwith limit.
> 
> So customer A with IP XX should have 2 Mbit, customer B with IP YY 
> should have 10 Mbit. There is no need of borrowing bandwith so no 
> fairness needed.
> 
> My simple question: with which technique should I manage this
> shaping? 
> Or is there any existing project which provides this allready?
> 
> Greets
> Christoph
> 
> --__--__--
> 

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] IP based bandwith limit

2004-10-19 Thread Cow
Try this page - might help:

http://omg.wp.gg/wshaper-howto/

Regards
Rune Johannesen

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re[2]: [LARTC] bandwidth limitation per dynamic IP

2004-10-19 Thread diab

>> Is there a way to do the following with lartc tools :
>> I would like to limit any entering user to not use more than Xkb/mb to my
>> website. The IPs they use are changing all the time so static IP limitation
>> cannot be used. Is there a way doing so ?

OMH> You Say "any entering users"

OMH> If that case, then make a _general_ rule to throttle traffic from
OMH> to/from port 80

Or use apache to do it for you.. MOD_THROTTLE and MOD_BANDWIDTH is
your friend. I've been using mod_bandwidth successfully for limiting
traffic and it works perfectly.

Documentation here:
http://www.cohprog.com/v3/bandwidth/doc-en.html

MOD_THROTTLE docs here: http://www.snert.com/Software/mod_throttle/

-
diab


___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/