From owner-freebsd-stable@FreeBSD.ORG Wed Nov 5 22:50:07 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9764A16A4CE for ; Wed, 5 Nov 2003 22:50:07 -0800 (PST) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8522843FEA for ; Wed, 5 Nov 2003 22:50:06 -0800 (PST) (envelope-from cristjc@comcast.net) Received: from blossom.cjclark.org (12-234-156-182.client.attbi.com[12.234.156.182]) by comcast.net (rwcrmhc11) with ESMTP id <2003110606500501300roi1re>; Thu, 6 Nov 2003 06:50:05 +0000 Received: from blossom.cjclark.org (localhost. [127.0.0.1]) by blossom.cjclark.org (8.12.9p2/8.12.8) with ESMTP id hA66oPsb043480; Wed, 5 Nov 2003 22:50:25 -0800 (PST) (envelope-from cristjc@comcast.net) Received: (from cjc@localhost) by blossom.cjclark.org (8.12.9p2/8.12.9/Submit) id hA66oHBq043479; Wed, 5 Nov 2003 22:50:17 -0800 (PST) (envelope-from cristjc@comcast.net) X-Authentication-Warning: blossom.cjclark.org: cjc set sender to cristjc@comcast.net using -f Date: Wed, 5 Nov 2003 22:50:17 -0800 From: "Crist J. Clark" To: Matthew George Message-ID: <20031106065017.GA43445@blossom.cjclark.org> References: <20031102061154.GA539@> <20031104222336.GA6904@blossom.cjclark.org> <20031105130845.T24164@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031105130845.T24164@localhost> User-Agent: Mutt/1.4.1i X-URL: http://people.freebsd.org/~cjc/ cc: Zoran Kolic cc: freebsd-stable@freebsd.org Subject: Re: ipfw2 logging X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: cjc@freebsd.org List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Nov 2003 06:50:07 -0000 On Wed, Nov 05, 2003 at 01:14:21PM -0500, Matthew George wrote: > On Tue, 4 Nov 2003, Crist J. Clark wrote: > > > On Sun, Nov 02, 2003 at 07:11:54AM +0100, Zoran Kolic wrote: > > [snip] > > > Well! Firewall works, I have data > > > with "ipfw show", but there is no > > > log. My intentioned rule is > > > > > > add 65535 deny log all from any to any > > > > > > It should work, but is does not. > > > What I am doing wrong? > > > > You cannot change rule 65535. Perhaps try 65534. > > > > from the 4.9 relnotes: > > ipfw(8) can now modify ipfw(4) rules in set 31, which was read-only and > used for the default rules. They can be deleted by ipfw delete set 31 > command but are not deleted by the ipfw flush command. This implements a > flexible form of ``persistent rules''. More details can be found in > ipfw(8). > > > I haven't actually done it yet for myself, but it would seem that 65535 > can be changed now. (?) Still cannot. If you delete set 31, all of the rules in 31 are deleted except for 65535. If there is a bug here, it is this, # ipfw add 65535 pass ip from any to any 65535 allow ip from any to any # echo $? 0 # ipfw sh 65535 65535 0 0 deny ip from any to any That the first ipfw(8) command appears to succeed. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org