From owner-freebsd-isp Thu Apr 3 00:52:02 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id AAA07231 for isp-outgoing; Thu, 3 Apr 1997 00:52:02 -0800 (PST) Received: from panda.hilink.com.au (panda.hilink.com.au [203.2.144.5]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id AAA07211 for ; Thu, 3 Apr 1997 00:51:52 -0800 (PST) Received: (from danny@localhost) by panda.hilink.com.au (8.8.5/8.7.3) id TAA11639; Thu, 3 Apr 1997 19:14:15 +1000 (EST) Date: Thu, 3 Apr 1997 19:14:14 +1000 (EST) From: "Daniel O'Callaghan" To: Hugh Blandford cc: freebsd-isp@freebsd.org Subject: Re: How can I measure Mb downloaded? In-Reply-To: <3.0.1.32.19970403173015.006f5aec@mail.island.net.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Thu, 3 Apr 1997, Hugh Blandford wrote: > I am trying to find a piece of software/utility that will tell me how many > Mbytes have been sent to and from an IP address or device. I would like to > log the traffic. I have a P50 for my router and it is not really upto the > task. I am aware of the end of day routine that gives how many packets > have come in and out of the interface, but I have no idea how you can get > from the number of packets to the number of bits or megabytes etc. you want to build a kernel with options IPFIREWALL Then configure counting rules into your firewall and read them every hour/day/whatever using ipfw show (ipfw -a list in 2.1.5+) Danny