All of lore.kernel.org
 help / color / mirror / Atom feed
From: Krystian <optimusprime@o2.pl>
To: Harry <hari76@omantel.net.om>
Cc: Netfilter <netfilter@lists.netfilter.org>
Subject: Re: Bandwidth Monitor
Date: Sat, 08 May 2004 12:23:29 +0200	[thread overview]
Message-ID: <409CB521.60703@o2.pl> (raw)
In-Reply-To: <006001c434da$7c6400e0$36b4fea9@SABNANIS>

Harry wrote:

> Hi All,
> I have a DSL connection which has a bandwidth capacity of 3GB a 
> month...having said that I have 16 machines hooked up on the network 
> with a linux server, is there a away to capture/monitor the total 
> consumption of bandwidth utilised per machine or server basis.This is 
> complicated as I have squid also for caching.....did a lot of reserch 
> there were some scripts for iptables but I cant figure out how to use 
> it ?Has anyone used something like this B4?Help is really appreciated.
>  
> Regards
>  
> Harry
>  
> "In all this world, there is only you
> When all else ceases, there is only you" 
> -- to my MASTER!
>     Harish
> harish@sabnanis.com <mailto:harish@sabnanis.com>
> harish.sabnani@cyberhutoman.com <mailto:harish.sabnani@cyberhutoman.com>

Hi

there r couple things u can do:
1.  every rule in iptables counts bytes of data which went through it. u 
can look at the counters by using command:
iptables -L -v
or maybe more specific for FORWARD chain: iptables -L FORWARD -v

u can place a specific counter for one host:
/sbin/iptables -A FORWARD -j ACCEPT -i eth0 -m state --state ESTABLISHED 
-d 192.168.0.19 --set-counters 0 0

2. use specialized netfilter addons (patch-o-matic) for counting and 
possibly doing what ever u want with leechers. the ones u can use are 
from BASE repository: QUOTA and from EXTRA repository connbytes. the web 
site is of course www.iptabless.org

GL & HF :)


  reply	other threads:[~2004-05-08 10:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-08  8:57 Bandwidth Monitor Harry
2004-05-08 10:23 ` Krystian [this message]
2004-05-08 10:53 ` Antony Stone
2004-05-09  7:23   ` Tech

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=409CB521.60703@o2.pl \
    --to=optimusprime@o2.pl \
    --cc=hari76@omantel.net.om \
    --cc=netfilter@lists.netfilter.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.