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

In OSX server, the firewall is usually opened per Applicaation, not per port. However, I have a ton of self-compiled servers, and I find it more convenient to open their ports, rather than select their binaries from somewhere. (It's often cumbersome to spot the "binary" in a server, between millions of scripts and binaries.)

How do I open individual ports on the OSX Server Firewall?

share|improve this question
up vote 1 down vote accepted

Which version of OS X Server? Lion?

Are you sure it's "Server" & not just an OS X client you're using as a server?

If it is indeed OS X Server, make sure you're using Server Admin to manage the Firewall, not System Preferences -> Security & Privacy. The latter controls the OS X Application Firewall, which it sounds like you were using. The former controls the lower level BSD PF firewall, which is much better & actually acclaimed by most as the best firewall out there. You can also use pfctl from the command line to manage the PF firewall if you want.


Sorry, some of that info above is wrong. Apparently Server Admin still only manages ipfw, which is an older BSD firewall. Still good, but not as good as PF.

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.