Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save florido/35d6db9fee1782aa8e9ae6523ee2d1d7 to your computer and use it in GitHub Desktop.
Save florido/35d6db9fee1782aa8e9ae6523ee2d1d7 to your computer and use it in GitHub Desktop.
Disable macOS Firewall Logging
title date author source
Disable macOS Firewall Logging
April 9, 2017
Jon LaBelle

Steps for disabling macOS Firewall logging to the appfirewall.log file.

NOTE: Only disables logging, not the Firewall itself.

Steps

  1. Convert the current com.apple.alf.plist plist binary file into XML text.
sudo plutil -convert xml1 /Library/Preferences/com.apple.alf.plist
  1. Open the converted com.apple.alf.plist XML file in vim.
sudo vim /Library/Preferences/com.apple.alf.plist
  • Search for the key loggingenabled:
    Esc /loggingenabled Enter
  • Change the integer value to 0 (zero) to disable logging
  • Save the the changes and quit vim:
    :wq
  1. Convert the com.apple.alf.plist plist file back into binary format.
sudo plutil -convert binary1 /Library/Preferences/com.apple.alf.plist

Verification

To verify that Firewall logging is now disabled...

  • Apple-menu -> About This Mac -> System Reports...
  • Network
    • Firewall
      • Logging: No

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment