From owner-freebsd-questions Mon Jan 29 23:49:17 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id E280037B69C for ; Mon, 29 Jan 2001 23:49:00 -0800 (PST) Received: from rfx-216-196-73-168.users.reflexcom.com ([216.196.73.168]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Mon, 29 Jan 2001 23:47:05 -0800 Received: (from cjc@localhost) by rfx-216-196-73-168.users.reflexcom.com (8.11.1/8.11.1) id f0U7mq606953; Mon, 29 Jan 2001 23:48:52 -0800 (PST) (envelope-from cjc) Date: Mon, 29 Jan 2001 23:48:51 -0800 From: "Crist J. Clark" To: Nevermind Cc: freebsd-questions@FreeBSD.ORG Subject: Re: ipfw count Message-ID: <20010129234851.H91447@rfx-216-196-73-168.users.reflex> Reply-To: cjclark@alum.mit.edu References: <20010129163837.A17432@nevermind.kiev.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20010129163837.A17432@nevermind.kiev.ua>; from never@nevermind.kiev.ua on Mon, Jan 29, 2001 at 04:38:37PM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jan 29, 2001 at 04:38:37PM +0200, Nevermind wrote: > Dear Sirs, > > I would like to know if it is possible to save ipfw count rule's counter of > bytes/packets between reboots? If we're talking about clean shutdowns, you could just add something to rc.shutdown to save 'ipfw show' to a file. > The point is I need to count my total traffic, and traffic initiated by all of > my local workstations but my router reboots sometimes and all of my ipfw rules > are zeroed... Spontaneuous reboots, especially on a box just doing routing, should not be happening. If that is the case, bets are off on rc.shutdown. You can put in a cronjob to write out 'ipfw show' every few minutes. -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message