1
0
mirror of https://github.com/PrivSec-dev/privsec.dev synced 2025-01-08 13:11:34 -05:00

add firewall command

This commit is contained in:
kimg45 2024-09-29 02:43:24 -05:00 committed by GitHub
parent c51d834b02
commit e9449268b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 <path to your app>
```
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."