Update Firewall Rules

Kjell Midtseter kmidtset at c2i.net
Thu May 22 04:06:50 PDT 2003


On Thursday, 22 May 2003 at  4:16:18 -0400, 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!
> 
# To load new rules:
#               ipf -Fa -f /etc/ipf.rules
#               ipnat -CF -f /etc/ipnat.rules
# You can use ipfstat to display firewall statistics a la ``top" command:
#               ipfstat -t
# to display the current list of active MAP/Redirect filters and active sessions:
#               ipnat -l
# to find out the `hit' statistic for each individual rule in /etc/ipf.rules:
#               ipfstat -hio
# to show current rules:
#               ipfstat -i -o
regards from Kjell


More information about the freebsd-questions mailing list