From owner-freebsd-stable Sat Nov 4 11:26: 0 2000 Delivered-To: freebsd-stable@freebsd.org Received: from jade.chc-chimes.com (jade.chc-chimes.com [216.28.46.6]) by hub.freebsd.org (Postfix) with ESMTP id EBB6337B4CF for ; Sat, 4 Nov 2000 11:25:53 -0800 (PST) Received: by jade.chc-chimes.com (Postfix, from userid 1001) id 96A291C41; Sat, 4 Nov 2000 14:25:53 -0500 (EST) Date: Sat, 4 Nov 2000 14:25:53 -0500 From: Bill Fumerola To: noor@comrax.com Cc: freebsd-stable@FreeBSD.ORG Subject: Re: Log total bandwidth used. Message-ID: <20001104142553.X37870@jade.chc-chimes.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from noor@comrax.com on Sat, Nov 04, 2000 at 11:36:09AM +0200 X-Operating-System: FreeBSD 3.3-STABLE i386 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: > 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. "ipfw add count ip from any to any", that will give you bytes/packets. Add a cron job to email you the results (or archive the result) and zero the rule out nightly, and you have a daily counter. -- Bill Fumerola - Network Architect, BOFH / Chimes, Inc. billf@chimesnet.com / billf@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message