Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do you apply a list of ipfw rules at startup on Mac OS X?

i.e. I have a list of rules like these that I'm applying manually.

sudo ipfw add 00100 ...
sudo ipfw add 00101 ...
sudo ipfw add 00102 ...
share|improve this question
up vote 2 down vote accepted

Right your rules into a shell script and then create a launchd plist to fire off the script at boot.

share|improve this answer

You can also use a tool like NoobProof or WaterRoof to set the rules up and save them in a startup configuration.

share|improve this answer
+1 for WaterRoof – miha May 18 '12 at 20:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.