From owner-freebsd-questions Mon Sep 30 2:35: 9 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD4BD37B401 for ; Mon, 30 Sep 2002 02:35:07 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id A203B43E6E for ; Mon, 30 Sep 2002 02:35:06 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id g8U9Z0OL052077; Mon, 30 Sep 2002 10:35:00 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id g8U9YtCG052076; Mon, 30 Sep 2002 10:34:55 +0100 (BST) Date: Mon, 30 Sep 2002 10:34:55 +0100 From: Matthew Seaman To: Eric Thornton Cc: freebsd-questions@FreeBSD.ORG Subject: Re: how to auto reset log limits Message-ID: <20020930093455.GA51277@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , Eric Thornton , freebsd-questions@FreeBSD.ORG References: <200209300541.g8U5fAt11069@uni01mr.unity.ncsu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200209300541.g8U5fAt11069@uni01mr.unity.ncsu.edu> User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-13.4 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01, USER_AGENT,USER_AGENT_MUTT version=2.41 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Sep 30, 2002 at 01:41:09AM +0000, Eric Thornton wrote: > I have my loglimit set to 100 entries for each ipfw rule. Is there > a way in periodic.conf or such to automatically execute "ipfw > resetlog"? My log entires fill up in about 2 days due to attempted > tcp connections to http, telnet, netbios, ect. I would like to keep > the loglimit active to prevent syslog flooding, and still get > attempted connections logged to me everyday. Thanks. The easy way to run 'ipfw resetlog' each day is to run it out of /etc/daily.local: #!/bin/sh PATH=/usr/bin:/bin:/sbin ; export PATH ipfw resetlog # # That's All Folks! # If /etc/daily.local exists, by default the periodic scripts will run it after all the other daily scripts. Similarly weekly.local or monthly.local could be used if you want to run at a different frequency. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message