Posted on 10-20-2014 09:35 AM
After the upgrade to Yosemite, I'm seeing that the existing Extension Attribute posted in JAMF Nation for detecting the Firewall state no longer works. The answer in the EA is blank. The EA checks if the OS is before 10.5 to do one type of check and does a second type of check if the OS is is 10.5++. I'm assuming 10.10 requires a different kind of check. Any recommendations on how firewall status has changed in 10.10?
Posted on 10-20-2014 09:55 AM
I do something very simple (logic that looks at the OS version is bound to stop working eventually):
#!/bin/bash
fwStatus=`defaults read /Library/Preferences/com.apple.alf globalstate`
echo "<result>$fwStatus</result>"