bin/156653: ipfw reports missing file as parameter problem
jclear at speakeasy.net
Mon Apr 25 21:50:09 UTC 2011
>Synopsis: ipfw reports missing file as parameter problem
>Arrival-Date: Mon Apr 25 21:50:08 UTC 2011
>Originator: Jed Clear
FreeBSD net5501 8.1-RELEASE-p3 FreeBSD 8.1-RELEASE-p3 #0: Sat Apr 23 16:01:09 EDT 2011 root at fbsdam3.my.domain:/usr/obj/nanobsd.custom/i386/usr/src/sys/JEDWALL i386
I was trying to use -n and the cpp preprocessor to syntax check a new rules file, using "ipfw -n -p cpp new.rules". It kept giving me "ipfw: illegal option -- p". This was very puzzling for a bit as it matches the man page perfectly. Eventually I discovered that I hadn't copied the new ruleset over to the right place and "new.rules" was MIA.
So the bug is that the error report is misleading.
Run "ipfw -n -p cpp /path/to/missing_file"
More information about the freebsd-bugs