From e9449268b9c52dc7d19a82ba4859f2eefff4aabf Mon Sep 17 00:00:00 2001 From: kimg45 <138676274+kimg45@users.noreply.github.com> Date: Sun, 29 Sep 2024 02:43:24 -0500 Subject: [PATCH] add firewall command --- content/posts/macos/macOS Security Overview.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/content/posts/macos/macOS Security Overview.md b/content/posts/macos/macOS Security Overview.md index 3e36e41..a5c4f2a 100644 --- a/content/posts/macos/macOS Security Overview.md +++ b/content/posts/macos/macOS Security Overview.md @@ -169,6 +169,14 @@ macOS comes with a built-in [firewall](https://support.apple.com/guide/mac-help/ Avoid third-party firewalls like LittleSnitch or LuLu that require you to install a system extension. They don't cover DNS so data exfiltration is still possible. +To block an app from the Terminal, run the command + +```zsh +/usr/libexec/ApplicationFirewall/socketfilterfw --blockapp +``` + +Some software might not allow you to block it in the UI, you can use this command to bypass it. + ## Disable AirDrop and Handoff You can disable [AirDrop and Handoff](https://support.apple.com/guide/mac-help/change-airdrop-handoff-settings-mchl6a407f99/mac) to better protect yourself against nearby threats. Turn off "Allow Handoff between this Mac and your iCloud devices," change "Airdrop" to "No one," turn off "AirPlay Receiver," and turn on "Require password."