Skip navigation
This discussion is archived

How to use socketfilterfw to add trusted applications to the firewall?

3178 Views 4 Replies Latest reply: Jan 14, 2010 10:15 AM by Westbeach Girl RSS
Westbeach Girl Calculating status...
Currently Being Moderated
Jan 13, 2010 2:06 PM
Hello,

I am trying to add trusted sites to Mac OS X's firewall via command-line. I understand that previously, we were able to use ipfw to configure the firewall on a packet level by using port numbers or IPs. In Leopard (10.5) and on, there is a new feature to add a trusted application to a list. This can be accomplished using the UI:

+System Preferences > Security > Firewall+

As well as using the command-line: socketfilterfw

%sudo /usr/libexec/ApplicationFirewall/socketfilterfw -t "<binary path of application>"

However, I am having problems when I execute the above command, the utility "hangs" and doesn't seem to do anything. This is the output I would receive, and then does nothing:

kyue:/usr/libexec/ApplicationFirewall> sudo ./socketfilterfw -t <my binary path>
adding ~/<my binary path> to the list of trusted applications
GetSignException: creator ‘BNUp’
GetSignException: creator ‘BNu2′
GetSignException: creator ‘SWar’
GetSignException: creator ‘StCm’
GetSignException: creator ‘Dbl2′
GetSignException: creator ‘PJ03′
GetSignException: creator ‘PJ07′
GetSignException: creator ‘FP98′

There was great guidance from this article:

http://krypted.com/mac-os-x/command-line-alf-on-mac-os-x/comment-page-1/#comment -547

I've also read a two related posts here in the Apple Discussion Forum, but it's still a mystery...

http://discussions.apple.com/thread.jspa?messageID=9931275&#9931275
http://discussions.apple.com/thread.jspa?messageID=8118951&#8118951

Just wondering if anyone here may know why it doesn't seem to be working.

Kat
iMac, MacMini, iPhone, Mac OS X (10.5.8)

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.