Skip to main content
Jamf Nation, hosted by Jamf, is the largest Apple IT management community in the world. Dialog with your fellow IT professionals, gain insight about Apple device deployments, share best practices and bounce ideas off each other. Join the conversation. -- Enables or Disables the firewall on Mac OS X Clients


sudo <mountPoint> <computerName> <currentUsername> <enableFirewall>

If there is a hardcoded value specified for <enableFirewall> in the script, or if the parameter is not passed by The Casper Suite, the hardcoded value in the script will be used.

The data that is specified for the <enableFirewall> parameter should be specified in one of
the following formats:



This script enables or disables the firewall on Mac OS X 10.3 or later. It can be used with a hardcoded value in the script, or read in as a parameter. Since the Casper Suite defines the first three parameters as (1) Mount Point, (2) Computer Name and (3) username, we are using the fourth parameter ($4) as the passable parameter to acquire the status of <enableFirewall>. In addition, the fourth parameter is utilized to set the enableFirewall parameter.



Generating Preview...

Uploaded: 11/5/11 at 7:51 PM by jake
Product: Mac OS X