Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I have a couple of firewall rules I would to like to apply at startup. I have followed the instructions from On page 192.

However, the rules do not get applied at startup.

I am running 10.6.8 NON Server Edition.

I can however run: (Which applies the rules correctly)

sudo ipfw /etc/ipfw.conf

Which results in:

00100 fwd,8080 tcp from any to any dst-port 80 in
00200 fwd,8443 tcp from any to any dst-port 443 in
65535 allow ip from any to any

Here is my /etc/ipfw.conf

# To get real 80 and 443 while loading vagrant vbox
add fwd localhost,8080 tcp from any to any 80 in
add fwd localhost,8443 tcp from any to any 443 in

Here is my /Library/LaunchDaemons/ipfw.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "">
<plist version="1.0">
        <true />

The permissions of all the files seem to be appropriate:

-rw-rw-r--  1 root  wheel  151 Oct 11 14:11 /etc/ipfw.conf
-rw-rw-r--  1 root  wheel  438 Oct 11 14:09 /Library/LaunchDaemons/ipfw.plist

Any thoughts or ideas on what could be wrong would be very helpful!

share|improve this question
Does or any of the logs in /var/log have errors related to it from startup? Does running it manually via launchctl show anything helpful? sudo launchctl load /Library...ipfw.plist – polynomial Oct 12 '11 at 1:04

Thanks to polynomial for having me test via launchctl. The result was:

launchctl: Dubious ownership on file (skipping)...

I changed the permissions as follows:

-rw-r--r--  1 root  wheel  438 Oct 11 14:09 /Library/LaunchDaemons/ipfw.plist

Then everything worked great. Also found if the @ is present (Extended attribute flag) this can also cause the same problem.

share|improve this answer

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.