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
LouisSanchezAsked:
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 http://blog.stephanbuys.com/2007/11/leopard-firewall-woes.html (Tested)

Or you can do as http://silvester.org.uk/OSX/wrangling_ipfw.html (Not tested)
0
 
thetmanvnCommented:
Step 1: Enabling IPFW

Open /etc/rc.conf file
# vi /etc/rc.conf
Append following settings:
firewall_enable="YES"
firewall_script="/usr/local/etc/ipfw.rules"

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
0
 
LouisSanchezAuthor Commented:
I don't see a rc.conf in the /etc/ directory on 10.5
0
 
thetmanvnConnect With a Mentor Commented:
Another way, but not pretty and cannot using variables is enter raw ipfw command to this file

/etc/ipfilter/ipfw.conf

Good luck
0
All Courses

From novice to tech pro — start learning today.