A firewall is a filter for network connections. It checks each one against a set of rules and allows it or blocks it. Some firewalls check connections coming in, some check connections going out, and some do both.
The firewall built into a Mac
macOS has an application firewall. You find it in System Settings > Network > Firewall. It only looks at incoming connections, the ones another computer starts toward your Mac. When an app wants to accept those, the firewall allows it or asks you.
The built-in firewall does not stop an app on your Mac from connecting out. For that you need an outgoing firewall.
What it helps with
- It keeps other devices on the same Wi-Fi from reaching sharing services you forgot were on.
- Block all incoming connections shuts nearly everything, which suits public Wi-Fi.
- Stealth mode makes the Mac ignore ping and similar probes.
What it can’t do
A firewall doesn’t remove malware, and it doesn’t stop you from installing a bad app. Most Mac threats today arrive because the user opened them, not because someone connected in. Your router also has its own firewall, which blocks unsolicited traffic before it reaches any device.
On Windows
Windows Defender Firewall also filters incoming connections by default. It can filter outgoing ones too, but allows them unless you add rules.
Our guide to Mac firewall settings shows how to turn it on and what each option does.