Turn on the built-in macOS firewall to reduce unwanted incoming connections from the internet or another network. It is an application firewall: you can allow or block incoming access for specific apps and services.
macOS 13 and later
- Choose Apple menu > System Settings.
- Click Network in the sidebar.
- Click Firewall, then turn it on.
- Click Options to review allowed and blocked apps, automatic allowances, Block all incoming connections, and stealth mode.
macOS 10.11 through 12
- Choose Apple menu > System Preferences > Security & Privacy.
- Open Firewall and unlock the preference pane.
- Click Turn On Firewall.
- Open Firewall Options to review application rules.
Security and functional limits
- The firewall controls incoming connections. It does not normally tell you which remote services an app contacts or block outgoing traffic.
- It does not replace software updates, malware protection built into macOS, strong authentication, or a network router’s firewall.
- Sharing services can create allowed incoming paths. Turn off services such as File Sharing when they are not needed.
- Blocking an app can interfere with that app or dependent software. Review prompts and rules instead of denying them without context.
Then review whether to automatically allow signed software and whether stealth mode fits your network.

