From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Limit Bandwidth + limiting the amount of Bytes to download
Date: Wed, 28 May 2003 08:13:15 +0000 [thread overview]
Message-ID: <marc-lartc-105419609920814@msgid-missing> (raw)
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/
next reply other threads:[~2003-05-28 8:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-28 8:13 Stef Coene [this message]
2003-05-28 12:17 ` [LARTC] Limit Bandwidth + limiting the amount of Bytes to download 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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-105419609920814@msgid-missing \
--to=stef.coene@docum.org \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.