Solved

Firewall rules Mac OSX

Posted on 2009-05-09
4
552 Views
Last Modified: 2013-11-16
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
0
Comment
Question by:LouisSanchez
  • 3
4 Comments
 
LVL 8

Expert Comment

by:thetmanvn
ID: 24344926
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
 

Author Comment

by:LouisSanchez
ID: 24354881
I don't see a rc.conf in the /etc/ directory on 10.5
0
 
LVL 8

Accepted Solution

by:
thetmanvn earned 500 total points
ID: 24362596
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
 
LVL 8

Assisted Solution

by:thetmanvn
thetmanvn earned 500 total points
ID: 24362603
Another way, but not pretty and cannot using variables is enter raw ipfw command to this file

/etc/ipfilter/ipfw.conf

Good luck
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Create a default user profile for Mac OS X 10.7/10.8 Create a user account on OS X that will be a template for every other user of that computer. I usually call it “profile” and make it an administrator account for the time being. 1. Install a…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now