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.
- Convert the current
com.apple.alf.plist
plist binary file into XML text.
sudo plutil -convert xml1 /Library/Preferences/com.apple.alf.plist
- 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
- Convert the
com.apple.alf.plist
plist file back into binary format.
sudo plutil -convert binary1 /Library/Preferences/com.apple.alf.plist
To verify that Firewall logging is now disabled...
- Apple-menu -> About This Mac -> System Reports...
- Network
- Firewall
- Logging:
No
- Logging:
- Firewall