Date: Wed, 5 Nov 2003 22:50:17 -0800 From: "Crist J. Clark" <cristjc@comcast.net> To: Matthew George <mdg@secureworks.net> Cc: freebsd-stable@freebsd.org Subject: Re: ipfw2 logging Message-ID: <20031106065017.GA43445@blossom.cjclark.org> In-Reply-To: <20031105130845.T24164@localhost> References: <20031102061154.GA539@> <20031104222336.GA6904@blossom.cjclark.org> <20031105130845.T24164@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031106065017.GA43445>