From owner-freebsd-questions Mon Oct 14 20:43:35 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 E615C37B401 for ; Mon, 14 Oct 2002 20:43:34 -0700 (PDT) Received: from mrv.tusur.ru (mrv.tusur.ru [212.192.120.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 502BE43EAF for ; Mon, 14 Oct 2002 20:43:25 -0700 (PDT) (envelope-from mrv@mrv.tusur.ru) Received: from mrv.tusur.ru (localhost [127.0.0.1]) by mrv.tusur.ru (8.12.6/8.12.5) with ESMTP id g9F2ZM1Z021496 for ; Tue, 15 Oct 2002 10:35:22 +0800 (KRAST) (envelope-from mrv@mrv.tusur.ru) Received: (from mrv@localhost) by mrv.tusur.ru (8.12.6/8.12.6/Submit) id g9F2ZLfn021492 for freebsd-questions@FreeBSD.ORG; Tue, 15 Oct 2002 10:35:21 +0800 (KRAST) Date: Tue, 15 Oct 2002 10:35:21 +0800 From: "Roman V. Mashak" To: freebsd-questions@FreeBSD.ORG Subject: Re: monitor ALL connections to ALL ports Message-ID: <20021015023521.GB19297@mrv.tusur.ru> Mail-Followup-To: "Roman V. Mashak" , freebsd-questions@FreeBSD.ORG References: <20021014205437.GA21823@blossom.cjclark.org> <20021014224225.GB61025@happy-idiot-talk.infracaninophi> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20021014224225.GB61025@happy-idiot-talk.infracaninophi> User-Agent: Mutt/1.3.99i 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, 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