* Re: [LARTC] Limit Bandwidth + limiting the amount of Bytes to download
@ 2003-05-28 8:13 Stef Coene
2003-05-28 12:17 ` Stef Coene
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Stef Coene @ 2003-05-28 8:13 UTC (permalink / raw)
To: lartc
On Thursday 29 May 2003 02:21, Osgaldo Suanzes wrote:
> Hi.
> Just wondering if it is possible for example :If I limit an IP Address to
> 512kb/s, if It is possible to
> stop him from using the net after he reaches a certain limit of bandwidth ,
> lets say 5 meg a day/week/ or month,year or whatever.
> I was thinking about maybe using a Packet counter like the one used at
> http://wipl-wrr.sourceforge.net/wipl.html or
> http://bwmon.sourceforge.net/an and a script which activates a rule with
> IpTables that denys all traffic from/to that IP Address after
> the limit of total of max byte downloaded has been reached.
> I was trying to to find something regarded on the net about BW controller,
> watcher...etc
> But couldnt find anything, Does someone know if this has been done, and
> how?
My ISP is doing it, so it can be done :) They don't block me, but the speed
goes from 4mbit to 128kbit.
You can do it with iptables counters. Read them each 15 minutes and count the
bytes. And trigger a script if it reaches it's maximum. I don't think it's
hard to implement. If you do this, make sure you can detect a counter reset.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [LARTC] Limit Bandwidth + limiting the amount of Bytes to download
2003-05-28 8:13 [LARTC] Limit Bandwidth + limiting the amount of Bytes to download Stef Coene
@ 2003-05-28 12:17 ` Stef Coene
2003-05-29 0:21 ` Osgaldo Suanzes
2003-05-29 8:51 ` [LARTC] Limit Bandwidth + limiting the amount of Bytes to Rio Martin.
2 siblings, 0 replies; 4+ messages in thread
From: Stef Coene @ 2003-05-28 12:17 UTC (permalink / raw)
To: lartc
On Thursday 29 May 2003 10:51, Rio Martin. wrote:
> Stef Coene wrote:
> > On Thursday 29 May 2003 02:21, Osgaldo Suanzes wrote:
> > My ISP is doing it, so it can be done :) They don't block me, but the
> > speed
> > goes from 4mbit to 128kbit.
> > You can do it with iptables counters. Read them each 15 minutes and
> > count the
> > bytes. And trigger a script if it reaches it's maximum. I don't think
> > it's
> > hard to implement. If you do this, make sure you can detect a counter
> > reset.
>
> So that means you re guaranteed 128Kbit, and burstable to 4Mbps until you
> reaches the limit for your quota. Cool stef (:
The quota is 10GB up + down and max 2GB up for the last 30 days. I'm not a
big downloader so I almost never hit the maximum.
> btw, how about my question regarding QoS stef? i need to implement QoS for
> my network. There are still kazaa users and getting worse lately.
> I need to limit all tcp connection for my network only 40Kbit for single
> TCP stream eventhough they have huge bandwidth (256Kbps).
If kazaa is your problem, you should that traffic in a different class. Maybe
the layer 7 filter can help : http://l7-filter.sourceforge.net/. You can use
it match kazaa traffic and put it a seprate, low bandwidth class.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread* [LARTC] Limit Bandwidth + limiting the amount of Bytes to download
2003-05-28 8:13 [LARTC] Limit Bandwidth + limiting the amount of Bytes to download Stef Coene
2003-05-28 12:17 ` Stef Coene
@ 2003-05-29 0:21 ` Osgaldo Suanzes
2003-05-29 8:51 ` [LARTC] Limit Bandwidth + limiting the amount of Bytes to Rio Martin.
2 siblings, 0 replies; 4+ messages in thread
From: Osgaldo Suanzes @ 2003-05-29 0:21 UTC (permalink / raw)
To: lartc
Hi.
Just wondering if it is possible for example :If I limit an IP Address to
512kb/s, if It is possible to
stop him from using the net after he reaches a certain limit of bandwidth ,
lets say 5 meg a day/week/ or month,year or whatever.
I was thinking about maybe using a Packet counter like the one used at
http://wipl-wrr.sourceforge.net/wipl.html or
http://bwmon.sourceforge.net/an and a script which activates a rule with
IpTables that denys all traffic from/to that IP Address after
the limit of total of max byte downloaded has been reached.
I was trying to to find something regarded on the net about BW controller,
watcher...etc
But couldnt find anything, Does someone know if this has been done, and how?
Thanks.
Osgaldo
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [LARTC] Limit Bandwidth + limiting the amount of Bytes to
2003-05-28 8:13 [LARTC] Limit Bandwidth + limiting the amount of Bytes to download Stef Coene
2003-05-28 12:17 ` Stef Coene
2003-05-29 0:21 ` Osgaldo Suanzes
@ 2003-05-29 8:51 ` Rio Martin.
2 siblings, 0 replies; 4+ messages in thread
From: Rio Martin. @ 2003-05-29 8:51 UTC (permalink / raw)
To: lartc
Stef Coene wrote:
> On Thursday 29 May 2003 02:21, Osgaldo Suanzes wrote:
> My ISP is doing it, so it can be done :) They don't block me, but the
> speed
> goes from 4mbit to 128kbit.
> You can do it with iptables counters. Read them each 15 minutes and count
> the
> bytes. And trigger a script if it reaches it's maximum. I don't think
> it's
> hard to implement. If you do this, make sure you can detect a counter
> reset.
So that means you re guaranteed 128Kbit, and burstable to 4Mbps until you
reaches the limit for your quota. Cool stef (:
btw, how about my question regarding QoS stef? i need to implement QoS for
my network. There are still kazaa users and getting worse lately.
I need to limit all tcp connection for my network only 40Kbit for single
TCP stream eventhough they have huge bandwidth (256Kbps).
Regards,
Rio Martin.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-05-29 8:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-28 8:13 [LARTC] Limit Bandwidth + limiting the amount of Bytes to download Stef Coene
2003-05-28 12:17 ` Stef Coene
2003-05-29 0:21 ` Osgaldo Suanzes
2003-05-29 8:51 ` [LARTC] Limit Bandwidth + limiting the amount of Bytes to Rio Martin.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.