Solved

Firewall rules Mac OSX

Posted on 2009-05-09
4
578 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

iCloud Drive was introduced after iOS 8 was launched last year. This drive is Apple’s online storage device that lets users sync their files and access them from all their Apple devices.   There is a lot of data that is not automatically backed up…
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

630 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