Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Firewall rules Mac OSX

Posted on 2009-05-09
4
Medium Priority
?
585 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 1500 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 1500 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
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 …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

719 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