From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bjorn Ruberg Subject: Re: nat & ip accounting Date: 26 Mar 2003 22:38:39 +0100 Sender: netfilter-admin@lists.netfilter.org Message-ID: <1048714720.18872.13.camel@mikke> References: <004401c2f3ce$812d08e0$0200a8c0@lynx> <200303262201.59505.kimj@dawn.dk> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <200303262201.59505.kimj@dawn.dk> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="iso-8859-1" To: netfilter@lists.netfilter.org On Wed, 2003-03-26 at 22:01, Kim Jensen wrote: > On Wednesday 26 March 2003 20:32, Alexandru Coseru wrote: > > Hello.. > > > > I want to see using iptables -L -v the ammount of traffic generated by > > each of my LAN's IP.. > > > > i have masq 192.168.0.2 to 192.168.0.50... > > > > and now i want to see the traffic generated by 192.168.0.4 since the la= st > > reset of counters.. > > > > How can I do that ? I want to be able to see the download and the uplo= ad > > ... > > > ifconfig ifconfig is the worst alternative, because it regularly resets its counters. As Rowan suggested, use MRTG [1] or some other tool (RRDtool [2], perhaps? :) to read the statistics. You may use MRTG with an SNMP daemon on your system or with an iptables extract script [3]. Hope this helps; Bj=F8rn [1] http://www.mrtg.org/ [2] http://www.rrdtool.org/ [3] http://www.norris160.org/cisco/MRTG_Monitor_Software.htm