Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Sep 2006 23:00:53 +0000
From:      Josh Paetzel <josh@tcbug.org>
To:        doc@freebsd.org
Subject:   IPFW manpage suggestion
Message-ID:  <200609282300.53946.josh@tcbug.org>

next in thread | raw e-mail | index | archive | help
I have a friend who's converting from linux to FreeBSD.  He's trying 
to set up ipfw and was reading through the ipfw manpage.  He asked me 
some questions about examples in the manpage and while I think the 
manpage is very clear it is perhaps a poor example.

As an example, an address specified as 1.2.3.4/24{128,35-55,89}
will match the following IP addresses:
1.2.3.128, 1.2.3.35 to 1.2.3.55, 1.2.3.89

This is perfectly clear and works exactly as stated but the choice of 
1.2.3.4/24 as a network number isn't the best in my opinion.  His 
question was whether the example would match 1.2.3.4.  It doesn't of 
course but perhaps the example would make more sense as:
1.2.3.0/24{128,35-55,89}

This also opens to door to what happens if you do something like:
1.2.3.15/25{215-220}  I regret to say I don't have a box I can 
actually test that on though.

There are other places in the manpage where a network number would 
make more sense than an IP but the one I pointed out seems to be the 
most glaring.

I'm willing to do the grunt work if it's determined it's worth 
changing.

-- 
Thanks,

Josh Paetzel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609282300.53946.josh>