Firewall rules Mac OSX

What is the procedure for making firewall rules not reset after reboot in osx 10.5? I have used a startup script, but I was hoping to just be able to copy a file and have it stay the same after reboot. Thanks
Who is Participating?
thetmanvnConnect With a Mentor Commented:
Hi Louis,

Sorry for late respond.

I've recheck in my Leopard, yes, it haven't got /etc/rc.conf. When I tried to create it, enter rule, reboot, and nothing happens . More digging, I found two articles that help me solve this.

Recommend method: Using WaterRoof ipfw as (Tested)

Or you can do as (Not tested)
Step 1: Enabling IPFW

Open /etc/rc.conf file
# vi /etc/rc.conf
Append following settings:

Step 2:
You need to paste your own script to /usr/local/etc/ipfw.rules or you can skip your old script and change it path in the Step 1 above

Good luck
LouisSanchezAuthor Commented:
I don't see a rc.conf in the /etc/ directory on 10.5
thetmanvnConnect With a Mentor Commented:
Another way, but not pretty and cannot using variables is enter raw ipfw command to this file


Good luck
All Courses

From novice to tech pro — start learning today.