I have a few computers that check in to Jamf fine, execute policy no problems etc, but we can't Screen Share into them with Casper Remote or SSH in to them. Wondering if the firewall is turned on so I'm looking for a script that might check the firewall status if Anyone has one? I found a Firewall EA on jamf nation, but it's not pulling any data for me, perhaps its dated (2011).
Solved
Find Firewall Status
Best answer by DBrowning
#!/bin/sh
fw=$(defaults read /Library/Preferences/com.apple.alf globalstate)
if [ "$fw" == 0 ]; then
echo "<result>No</result>"
else
echo "<result>Yes</result>"
fiEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.
