Problem with "ipfw flush"

applecom at applecom at
Wed Jan 24 21:13:45 UTC 2007

> In trying to tweak my firewall setup I'm using a file called  
> /etc/ipfw.rules
> However, it seems even though I copy my rules perfectly to that file,  
> the system freezes up and locks me out when I do:
> ipfw -f flush; ipfw /etc/ipfw.rules
> I've also tried doing it as
> ipfw -f flush && ipfw /etc/ipfw.rules
> But to no avail.

Firewall script is a common shell script. You don't need to run 'ipfw  
Flushing the rules is usually done by script itself.
For example:
${ipfw} -f flush
${ipfw} <rule>
${ipfw} <rule>
${ipfw} <rule>
This file should be executable (chmod +x). You can also put any non-ipfw  
additional commands in this file if you want.
Try to make such script, execute it and write again about the results.

More information about the freebsd-questions mailing list