From owner-freebsd-questions Tue Jan 30 0:35:58 2001 Delivered-To: freebsd-questions@freebsd.org Received: from nevermind.kiev.ua (office.imt.com.ua [212.109.53.33]) by hub.freebsd.org (Postfix) with ESMTP id 15D1637B4E0 for ; Tue, 30 Jan 2001 00:35:38 -0800 (PST) Received: (from never@localhost) by nevermind.kiev.ua (8.11.1/8.11.1) id f0U8ZLA27473; Tue, 30 Jan 2001 10:35:21 +0200 (EET) (envelope-from never) Date: Tue, 30 Jan 2001 10:35:14 +0200 From: Nevermind To: "Crist J. Clark" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: ipfw count Message-ID: <20010130103514.F16812@nevermind.kiev.ua> References: <20010129163837.A17432@nevermind.kiev.ua> <20010129234851.H91447@rfx-216-196-73-168.users.reflex> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010129234851.H91447@rfx-216-196-73-168.users.reflex>; from cjclark@reflexnet.net on Mon, Jan 29, 2001 at 11:48:51PM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, Crist J. Clark! On Mon, Jan 29, 2001 at 11:48:51PM -0800, you wrote: > > 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. Yeah, it is what exactly I'm doing now, I'm logging count diffs to postgesql database for each of rules, but I just thought that maybe there is some internal functionality in ipfw which allows to say, for example "ipfw save-counters-between-reboots" :) So, as I can see there is no such feature and the way I'm doing now is the rightmost way :) Thanx fo answer. -- Alexandr P. Kovalenko http://nevermind.kiev.ua/ NEVE-RIPE To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message