IPFW manpage suggestion

Josh Paetzel josh at tcbug.org
Fri Sep 29 04:02:32 UTC 2006


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



More information about the freebsd-doc mailing list