How to Turn On the Firewall on a Mac

The Perimeter Defense Vector

When you connect your MacBook to a public Wi-Fi network at an airport or coffee shop, you are sharing a local subnet with hundreds of unknown devices. If a malicious actor on that network runs an automated port scan against your machine, they can identify open networking services and attempt to inject a payload. To guarantee absolute security in untrusted environments, you must activate the macOS packet-filtering architecture, erecting an impenetrable cryptographic barrier against all unauthorized incoming connections.

How to Turn On the Firewall

Apple engineered a highly robust, application-layer firewall directly into the macOS kernel, but it is frequently disabled by default to ensure maximum compatibility with home networking equipment.

1. Click the Apple Logo in the absolute top-left corner of the screen.
2. Select System Settings from the dropdown menu (or System Preferences on older versions of macOS).
3. In the left-hand navigation sidebar, click on Network.
4. In the main pane, locate the Firewall section and click it.
5. The Master Toggle: You will see a prominent toggle switch. Click it to turn the firewall On. It will instantly illuminate (usually green).
6. The Stealth Override (Highly Recommended): Simply turning the firewall on blocks unauthorized traffic, but your Mac will still respond to “ping” requests, confirming its existence to hackers on the network. You must activate Stealth Mode to become completely invisible.
* Click the Options… button located directly below the master toggle.
* A new configuration panel will appear.
* Locate the toggle switch labelled Enable Stealth Mode and turn it On.
* Click OK.

The kernel will instantly reconfigure its routing tables. Your Mac will now silently drop all unsolicited ICMP (ping) requests, rendering your device mathematically invisible to standard network scanning utilities while maintaining full outgoing internet access.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.