Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 May 2003 21:04:46 -0500
From:      David Kelly <dkelly@HiWAAY.net>
To:        FreeBSD-Questions@FreeBSD.org
Subject:   Re: Update Firewall Rules
Message-ID:  <200305222104.46859.dkelly@HiWAAY.net>
In-Reply-To: <Sea1-F44bF503zJLTz7000278e4@hotmail.com>
References:  <Sea1-F44bF503zJLTz7000278e4@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 22 May 2003 03:16 am, Carolyn Longfoot wrote:
> How do I switch the firewall rules on a system without rebooting?
> I tried executing /etc/rc.firewall OPEN
> for example but the same rule set is put in place again that is
> defined in /etc/rc.conf.
>
> I'm sure there's a simple answer, thanks in advance!

Actually, not as simple as you might like. I didn't want any of the 
default firewall suites but found they were excellent examples. Got 
tired of mergemaster wanting to change my /etc/rc.firewall. So I copied 
it to /etc/my.firewall, added 'firewall_script="/etc/rc.firewall"'to 
/etc/rc.conf and no longer had any problems.

If you really want an open firewall then simply type:

% su
# ipfw add 1 allow ip from any to any

To put things back the way they were:

# ipfw delete 1

All the above does is add a new rule at the front of your rule set. Then 
later remove it so the other rules are once again used.

-- 
David Kelly N4HHE, dkelly@hiwaay.net
=====================================================================
The human mind ordinarily operates at only ten percent of its
capacity -- the rest is overhead for the operating system.



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