From owner-cvs-src@FreeBSD.ORG Tue Dec 13 15:08:53 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 548A316A41F; Tue, 13 Dec 2005 15:08:53 +0000 (GMT) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id D30AD43D62; Tue, 13 Dec 2005 15:08:52 +0000 (GMT) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.12.11) with ESMTP id jBDF8qtT011102; Tue, 13 Dec 2005 07:08:52 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id jBDF8lh6011101; Tue, 13 Dec 2005 07:08:47 -0800 (PST) (envelope-from rizzo) Date: Tue, 13 Dec 2005 07:08:47 -0800 From: Luigi Rizzo To: Poul-Henning Kamp Message-ID: <20051213070846.A10708@xorpc.icir.org> References: <20051213061503.A10373@xorpc.icir.org> <12911.1134485339@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <12911.1134485339@critter.freebsd.dk>; from phk@phk.freebsd.dk on Tue, Dec 13, 2005 at 03:48:59PM +0100 Cc: cvs-src@FreeBSD.org, Alexey Dokuchaev , Gleb Smirnoff , cvs-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: ipfw2 logs to bpf (was Re: cvs commit: src/sbin/ipfw ipfw2.c...) X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 15:08:53 -0000 On Tue, Dec 13, 2005 at 03:48:59PM +0100, Poul-Henning Kamp wrote: > In message <20051213061503.A10373@xorpc.icir.org>, Luigi Rizzo writes: > > >talking about ipfw2, a couple of years ago i posted some code for 4.x > >to let ipfw2 "log" packets to a pseudo interface called /dev/ipfw0 so > >that people in need of detailed logging could just get it from > >there through tcpdump or whatever. > > Isn't it easier to use ipfwpcap(8) and a divert socket ? well apart that i just learned about it from this email and couldn't find a manpage, they are similar in spirit but they don't seem to do exactly the same thing: - 'log' is an option that you can set on any ipfw rule, independently from the action; - ipfwpcap only works on divert or tee rules (i read in the code that tee is broken but assume it can be fixed so the performance objection for the -r option will not matter, eventually). so i believe the /dev/ipfw trick is a bit more flexible cheers luigi > -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > phk@FreeBSD.ORG | TCP/IP since RFC 956 > FreeBSD committer | BSD since 4.3-tahoe > Never attribute to malice what can adequately be explained by incompetence.