Yosemite - Extension Attribute - Firewall status broke

jeffrey_fesunof
New Contributor

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?

1 REPLY 1

alexjdale
Valued Contributor III

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>"