rc.firewall script not running at system boot
The Admiral
xxadmiralxx at gmail.com
Thu Feb 8 14:39:22 UTC 2007
On 2/2/07, Josh <josh at kenoath.org> wrote:
>
> On Thu, 2007-02-01 at 20:59 -0500, The Admiral wrote:
> > On 2/1/07, Dewayne Geraghty <dewayne.geraghty at heuristicsystems.com.au>
> > wrote:
> >
> > I tried executing "/etc/rc.d/ipfw restart" and sure enough, it showed
> that
> > one of my firewall rules was mistakenly entered as "addpass" while it
> > should've been "add pass". I corrected the typo, but the strange thing
> is,
> > when I reboot, it still doesn't work! Running the firewall command
> manually
> > works without error, but it isn't executed at boot.. Any other ideas? I
> was
> > sure that the typo was the problem, unfortunately that's not the
> case. Oh
> > well, at least it seems I'm getting closer to a solution! Thanks,
>
> I have always written my own firewall rules into their own shell script
> and launch it from from /etc/rc.local
>
> You could just add
> /etc/rc.firewall client
> to /etc/rc.local and do away with any of the traditional stuff in
> rc.conf
well, I ended up moving all my firewall commands from /etc/rc.firewall into
rc.local like you suggested and it works fine now.. Strange that it
suddenly stopped working from inside rc.firewall.. I even tried disabling
pretty much everything from rc.conf except for the pertinent firewall lines,
and it still wouldn't execute any of my firewall commands.
Oh well, at least it's working now.. If anyone has any other suggestions of
what to try, please let me know, otherwise I'll just leave it at that.
Thanks,
Mike
More information about the freebsd-ipfw
mailing list