I have a utility that uses port ####(redacted), and need to open the local Mac's firewall to handle this. I'm not very experienced with OS X firewalls other then the pretty GUI. My research has revealed that for the command line:
ipfw is deprecated
pfctl replaces ipfw
socketfilterfw handles application specific firewall issues
\- also the '-t' option seems to be deprecated
Ideally I'd love to use a socketfilterfw command to add the utility as a trusted app
alternatively what would be the pfctl command to accept port #### connections?