I have a script that sets Cisco Jabber.app (chat, phone call application) to allow all connections, but in some cases, when a user makes an external phone call with the application, the firewall will prompt for admin credentials to allow/deny access. Entering the password makes it go away, but this is not a viable solution as we have hundreds of users without admin rights.
In the gui, the firewall shows as Jabber.app always allowed.
Happens on Mavericks, Yosemite and El Capitan.
This is the script I am using to add the exceptions.
#!/bin/sh
checkFirewall=`/usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate | awk '{print $3}'`
if [[ "$checkFirewall" == "disabled." ]]; then
# Start firewall
/usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate on
# Add trusted application to firewall
/usr/libexec/ApplicationFirewall/socketfilterfw --add /Applications/Cisco Jabber.app
/usr/libexec/ApplicationFirewall/socketfilterfw --add /Applications/Skype.app
else
echo "Firewall is already enabled"
fi
exit 0