[plug] Open Source download meters
Caleb Duggan
caleb.duggan at gmail.com
Sun Jul 22 23:47:53 WST 2007
Yea I thought there was a thread a while ago on it but I couldnt find it
in the list archives. It'd be easier to have some nice GUI to use but I
guess I can use iptables if I can't find a graphical program, does anyone
know of any graphical download meters? even a graphical frontend to
iptables would be good.\
Caleb
On Sun, 22 Jul 2007 22:15:30 +0800, Patrick Coleman <blinken at gmail.com>
wrote:
> On 7/22/07, Caleb Duggan <caleb.duggan at gmail.com> wrote:
>> Hi,
>> Does anybody know of any decent open source download meters? I'm looking
>> for one to install on individual computers, keep logs of internet usage
>> and, to support Mac(i can probably install a linux meter on OSX),
>> Windows
>> and Linux. So far google has been of little help.
>
> I think there was a thread on the list a little while ago relating to
> this; but one solution I didn't see suggested was iptables, if you
> want a command-line linux bandwidth monitoring tool. You won't get
> logging, but what people generally do is to run a script periodically
> that saves the current bandwidth counters to disk.
>
> On each machine run:
>
> # iptables -A OUTPUT -j ACCEPT
> # iptables -A INPUT -j ACCEPT
>
> to establish the rules, then:
>
> # iptables -L -n -v
>
> to view the bandwidth counters. You will see something like:
>
> Chain INPUT (policy ACCEPT 164 packets, 21546 bytes)
> pkts bytes target prot opt in out source
> destination
> 41 2180 ACCEPT 0 -- * * 0.0.0.0/0
> 0.0.0.0/0
>
> Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
> pkts bytes target prot opt in out source
> destination
>
> Chain OUTPUT (policy ACCEPT 203 packets, 198K bytes)
> pkts bytes target prot opt in out source
> destination
> 117 127K ACCEPT 0 -- * * 0.0.0.0/0
> 0.0.0.0/0
>
> The bandwidth info is column two, under 'bytes', and you can see input
> and output is broken down for you.
>
> Adding the -Z option resets the counters, ie:
>
> # iptables -L -n -v -Z
>
> will display and reset the counters.
>
> Note this will not persist over a reboot, so you will need to put the
> two commands above into a script and run it when the system starts to
> activate the monitoring.
>
> There's a bit of information at http://www.linux.com/articles/50649,
> more if you search for 'iptables bandwidth monitoring'.
>
> Hope that helps.
>
> -Patrick
>
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
More information about the plug
mailing list