From owner-freebsd-stable Sat Nov 4 1:52: 2 2000 Delivered-To: freebsd-stable@freebsd.org Received: from dataloss.net (massive.dataloss.net [212.189.232.193]) by hub.freebsd.org (Postfix) with SMTP id CCC3E37B4CF for ; Sat, 4 Nov 2000 01:51:57 -0800 (PST) Received: (qmail 21264 invoked by uid 1000); 4 Nov 2000 09:49:58 -0000 Date: Sat, 4 Nov 2000 10:49:58 +0100 From: Peter van Dijk To: freebsd-stable@FreeBSD.ORG Subject: Re: Log total bandwidth used. Message-ID: <20001104104958.V5048@dataloss.net> Mail-Followup-To: freebsd-stable@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from noor@comrax.com on Sat, Nov 04, 2000 at 11:36:09AM +0200 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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