From owner-freebsd-ipfw Sun Jan 6 17:38:53 2002 Delivered-To: freebsd-ipfw@freebsd.org Received: from tom.dyn.dhs.org (c2020b86.adsl.oleane.fr [194.2.11.134]) by hub.freebsd.org (Postfix) with ESMTP id 86AC937B419 for ; Sun, 6 Jan 2002 17:38:50 -0800 (PST) Received: from dial.oleane.com (tom.priv [192.168.27.2]) by tom.dyn.dhs.org (8.12.1/8.12.1) with ESMTP id g071cmXl004089 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Mon, 7 Jan 2002 02:38:48 +0100 (CET) Message-ID: <3C38FC27.CC1E8AC9@dial.oleane.com> Date: Mon, 07 Jan 2002 02:38:47 +0100 From: =?iso-8859-1?Q?Ga=EBl?= Roualland X-Mailer: Mozilla 4.79 [fr] (X11; U; Linux 2.4.15 i686) X-Accept-Language: fr, en MIME-Version: 1.0 To: freebsd-ipfw@freebsd.org Subject: Reporting last packet that will get logged Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, ipfw has a nice feature of logging limit to avoid flooding the logs; However, one needs to reset them regurlarly, and this outputs annoying logging messages while often the reset wouldn't have been needed... To solve this, a while back I did a simple patch to the 4.2 ipfw(8) command to be able to report the number of the last packet that will be logged on a rule which has logging enabled, before the logging limit is reached. This allows to resetlogs only when one rule has reached (or is close to reach) its limit. Maybe this could be a feature to add to the stock ipfw command ? Gaël. -- Gaël Roualland -+- gael.roualland@dial.oleane.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message