On my enrolled macs if I turn Firewall ON, do i have to turn on any options for casper communication?
will turning ON Firewall mess with JSSConnection? (recurring check-in, login/logout etc...)
On my enrolled macs if I turn Firewall ON, do i have to turn on any options for casper communication?
will turning ON Firewall mess with JSSConnection? (recurring check-in, login/logout etc...)
Best answer by alexjdale
Here is the script, it also checks for the presence of the Connected Backup application and adds it to the approved application list if it is installed. I run this daily for systems that have the firewall off (based on an extension attribute). I can't feasibly stop an admin from turning the firewall off (that I am aware of) so this is the next best thing.
And yes, there is no communication to the client from the JSS, it's all "pull" from the client. If the client initiates the connection (like downloading a package for a software install) then it won't trip a firewall.
#!/bin/bash
fwStatus=`defaults read /Library/Preferences/com.apple.alf globalstate`
if [ "$fwStatus" == "0" ]; then
echo "FW off, adding exceptions and enabling"
/usr/libexec/ApplicationFirewall/socketfilterfw --add "/Applications/Microsoft Lync.app"
if [ -d "/Applications/Autonomy/Connected Backup/Connected Backup.app" ]; then
/usr/libexec/ApplicationFirewall/socketfilterfw --add /Library/AgentService/AgentService
/usr/libexec/ApplicationFirewall/socketfilterfw --add "/Applications/Autonomy/Connected Backup/Connected Backup.app"
fi
if [ -d "/Applications/Iron Mountain/Connected Backup/Connected Backup.app" ]; then
/usr/libexec/ApplicationFirewall/socketfilterfw --add /Library/AgentService/AgentService
/usr/libexec/ApplicationFirewall/socketfilterfw --add "/Applications/Iron Mountain/Connected Backup/Connected Backup.app"
fi
defaults write /Library/Preferences/com.apple.alf globalstate -int 1
else
echo "FW on, exiting"
exit 0
fiEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.