Skip to main content
Jamf Nation, hosted by Jamf, is a dynamic and knowledgeable community of Apple-focused IT admins and Jamf Pro users. Join us in person, in October, for the annual Jamf Nation User Conference (JNUC) to discover new and better ways to manage Apple devices. -- 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...