Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Nov 2000 10:49:58 +0100
From:      Peter van Dijk <peter@dataloss.net>
To:        freebsd-stable@FreeBSD.ORG
Subject:   Re: Log total bandwidth used.
Message-ID:  <20001104104958.V5048@dataloss.net>
In-Reply-To: <Pine.BSF.4.10.10011041134550.92961-100000@dns.comrax.com>; from noor@comrax.com on Sat, Nov 04, 2000 at 11:36:09AM %2B0200
References:  <Pine.BSF.4.10.10011041134550.92961-100000@dns.comrax.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Nov 04, 2000 at 11:36:09AM +0200, noor@comrax.com wrote:
> Hi all,
> 
> Using ipfw, is there a way to add a rule to compute all bandwidth used
> during one day? The rule would just compute the bandwidth, then move on
> to the next rule.

Every ipfw rule has a packet and byte counter associated with it. If you
don't need any real firewalling functionality, just make sure you have
an 'allow ip from any to any' rule at the start of your firewall.

'ipfw show' will give you some counters. 'ipfw zero' supposedly resets
them, or you could just record the number every 24hours and subtract
yesterday from it.

Greetz, Peter
-- 
dataloss networks
'/ignore-ance is bliss' - me
'Het leven is een stuiterbal, maar de mijne plakt aan t plafond!' - me


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001104104958.V5048>