Re: Problem with ipfw rules
- From: "Bob Eager" <rde42@xxxxxxxxxxx>
- Date: 28 Feb 2009 22:31:55 GMT
On Sat, 28 Feb 2009 21:56:46 UTC, "Rodney Pont"
<pmmspamuxxj@xxxxxxxxxxxxxxxxxxxxx> wrote:
On Sat, 28 Feb 2009 21:01:12 +0100, Torfinn Ingolfsen wrote:
Bob Melson wrote:
But, every time I attempt to start ipfw from /etc/rc.d/ipfw or to manually
start ipfw from the command line with "ipfw /etc/ipfw.rules I get the
following error:
Line 9: bad command `ipfw'
Try using the whole path to the ipfw command instead of just 'ipfw':
tingo@kg-work2$ which ipfw
/sbin/ipfw
See if that works better.
The problem here is that the script is calling ipfw:
It's defining fwcmd in the line below
fwcmd="ipfw -q add"
pif="xl0"
#------------------------------------
# keep loopback "open"
#------------------------------------
$fwcmd 00001 allow all from any to any via lo0
and then using it in the line about to make it
ipfw -q add 00001 allow all from any to any via lo0
All it needs is:
sh /etc/ipfw.rules
It's actually a script and, as Bob says, not the file containing the
firewall rules.
As I said, two solutions:
1) set it as the script by changing rc.conf
2) remove the 'ipfw' bit
--
Bob Eager
UNIX since v6..
http://tinyurl.com/2xqr6h
.
- Follow-Ups:
- Re: Problem with ipfw rules
- From: Bob Melson
- Re: Problem with ipfw rules
- Next by Date: Re: Problem with ipfw rules
- Next by thread: Re: Problem with ipfw rules
- Index(es):
Relevant Pages
|