Update Firewall Rules

David Kelly dkelly at HiWAAY.net
Thu May 22 19:04:51 PDT 2003


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 at hiwaay.net
=====================================================================
The human mind ordinarily operates at only ten percent of its
capacity -- the rest is overhead for the operating system.


More information about the freebsd-questions mailing list