On Mon, 2003-10-27 at 12:09, Payal Rathod wrote:
> Hi,
> Can someone suggest a simple and accurate software which will correctly
> measure traffic in and out of my network over to internet?
> I need to measure how much data I consume per day.

Ntop/mrtg are good but a quick trick is to try iptables like this -
(long lines have been wrapped)

--------------------
[EMAIL PROTECTED] root]# iptables -L -v -n
Chain INPUT (policy ACCEPT 6296 packets, 1675K bytes)
 pkts bytes target     prot opt in     out     source              
destination         

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source              
destination         

Chain OUTPUT (policy ACCEPT 5550 packets, 486K bytes)
 pkts bytes target     prot opt in     out     source              
destination         
[EMAIL PROTECTED] root]# 
--------------------

My desktop does not have any rules hence not much details but if you
need to find out traffic going through a gateway machine to a particular
machine, add a specific, dummy accept OR forward (whatever applies) and
then run this. You should then see the specific amount of data through
that rule.

HTH.

VaibhaV
http://vsharma.net




-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to