From owner-freebsd-questions Tue Oct 15 10:52:46 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 8240B37B401 for ; Tue, 15 Oct 2002 10:52:44 -0700 (PDT) Received: from mpls-qmqp-02.inet.qwest.net (mpls-qmqp-02.inet.qwest.net [63.231.195.113]) by mx1.FreeBSD.org (Postfix) with SMTP id D366243EB1 for ; Tue, 15 Oct 2002 10:52:43 -0700 (PDT) (envelope-from maildrop@qwest.net) Received: (qmail 16670 invoked by uid 0); 15 Oct 2002 17:47:11 -0000 Received: from unknown (63.231.195.6) by mpls-qmqp-02.inet.qwest.net with QMQP; 15 Oct 2002 17:47:11 -0000 Received: from unknown (HELO jenny) (63.231.238.226) by mpls-pop-06.inet.qwest.net with SMTP; 15 Oct 2002 17:52:42 -0000 Date: Tue, 15 Oct 2002 13:06:04 -0500 Message-ID: From: "Maildrop" To: "Roman V. Mashak" , freebsd-questions@FreeBSD.ORG Subject: RE: monitor ALL connections to ALL ports MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <20021015023521.GB19297@mrv.tusur.ru> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal 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 This is what I currently have. /dev/ad0s3e 1.2G 912M 175M 84% /var/log I got a 30 count of sys rotates at ever 10 megs (newsyslog.conf), expect for httpd* logs, I just leave them untouched for stat info and clean by hand, right now htye are only 115 megs. Jack > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Roman V. Mashak > Sent: Monday, October 14, 2002 9:35 PM > To: freebsd-questions@FreeBSD.ORG > Subject: Re: monitor ALL connections to ALL ports > > > On Mon, Oct 14, 2002 at 11:42:25PM +0100, Matthew Seaman wrote: > > > I want to log all connections, regardless if they failed or > > > successed, regardless if they have a daemon running on that port or > > > not. > > > The only way I can think of to achieve what you want -- logging every > > packet received by your machine -- is to use ipfw(8) and add the 'log' > > keyword to all appropriate rules. You'll need to have a lot of space > > in /var and bump up the net.inet.ip.fw.verbose_limit sysctl to some > Could you describe some methods of counting /var-partition size > for saving there: > 1) 'maillog' data > 2) 'ipfw' logs. > > Thanks in advance. > > huge limit and run 'ipfw resetlog' at regular intervals (or ipfw(8) > [skip] > > -- > Best regards, Roman > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message