Configuring your Mac’s firewall correctly means turning it on, deciding which apps are allowed to accept incoming connections, and knowing how to handle the stealth mode and signed-software options. This guide walks you through the exact steps in current macOS versions, explains what each setting actually does, and covers common problems and misconceptions.
What the Mac Firewall Does (and Doesn’t Do)
The Mac firewall is a host-based packet filter built into macOS. It monitors incoming network connections and blocks those that aren’t explicitly allowed. It does not scan outgoing traffic, nor does it act as an antivirus or content filter. Its primary job is to prevent unsolicited connections from reaching services running on your Mac—for example, file sharing, remote login, or a local web server.
By default, the firewall is off on most Macs. That’s fine if you’re behind a home router with NAT, but it becomes more important when you use public Wi‑Fi, connect directly to a modem, or run network services.
How to Turn On and Configure the Firewall
- Open System Settings (or System Preferences on older macOS) from the Apple menu.
- Go to Network → Firewall.
- Click the toggle to turn it On. If the toggle is greyed out, click the lock icon and enter your admin password.
- Click Options to see the detailed settings.
In the Options panel you’ll find:
- Block all incoming connections: This is the most restrictive mode. It blocks every incoming connection except those required for core system services (like DHCP and mDNS). Use it when you’re on an untrusted network and don’t need any sharing features.
- Automatically allow signed software to receive incoming connections: When enabled, apps signed by a recognized certificate authority are allowed without asking you. This is convenient but slightly less secure—a compromised signed app could accept connections. If you disable it, you’ll get a prompt for every new app.
- Enable stealth mode: This makes your Mac ignore unsolicited probes (like ping) and not respond to connection attempts on closed ports. It doesn’t make you invisible, but it reduces your footprint on a network.
Managing App Permissions
When an app first tries to accept incoming connections, macOS shows a dialog asking whether to allow or block it. If you click “Allow,” the app appears in the firewall’s list of allowed apps. You can manage this list manually:
- In the Firewall Options, click the + button to add an app.
- Select the app from your Applications folder (or elsewhere).
- Choose Allow or Block next to the app’s name.
To remove an app from the list, select it and click the − button. Removing an app means it will be blocked from receiving incoming connections unless you add it again later.
What About the “Signed Software” Setting?
Apple’s code-signing system is used by both the App Store and third-party developers. When you enable “Automatically allow signed software,” the firewall trusts any app that has a valid Developer ID signature. That includes most commercial software, but also some malware that has been signed (Apple has revoked certificates in the past, but it’s not instantaneous). If you want maximum control, turn this off and approve each app individually.
Common Problems and Misconceptions
- “The firewall is slowing down my internet.” In practice, the Mac firewall adds negligible overhead. Any slowdown is likely from something else (Wi‑Fi interference, VPN, etc.).
- “I turned it on but my app still can’t connect.” The firewall only controls incoming connections. If an app can’t connect outward (e.g., a browser can’t load pages), the firewall is not the cause—check your network settings, DNS, or proxy.
- “Stealth mode makes me invisible.” No. It stops responses to pings and port scans, but a determined attacker can still see your IP address if you make any outgoing connection (like loading a webpage).
- “I need to turn off the firewall to use AirDrop.” AirDrop uses Bluetooth and peer-to-peer Wi‑Fi; the firewall generally doesn’t interfere. If AirDrop fails, check Bluetooth and Wi‑Fi settings instead.
How the Firewall Interacts with Sharing Services
When you enable features like File Sharing, Screen Sharing, or Remote Login in System Settings → General → Sharing, macOS automatically opens the corresponding ports in the firewall. If you later turn on the firewall with “Block all incoming connections,” those sharing services will stop working for remote clients, even if they’re enabled. You’ll need to either allow the specific system services (they appear as “System” items in the firewall list) or disable the block-all mode.
Comparing with Third-Party Firewalls
Third-party firewalls like Little Snitch or LuLu offer more granular control, especially for outgoing connections. They can alert you when an app tries to phone home, which the built-in firewall cannot do. However, they are not free and require more setup. For most users, the built-in firewall is sufficient, but if you’re privacy-conscious or run a server, a third-party tool adds valuable insight.
Frequently Asked Questions
Should I turn on the firewall even if I’m behind a router?
Yes. A router’s NAT provides some protection, but it doesn’t block all unsolicited traffic—especially if you’ve set up port forwarding or if a malicious app on your Mac opens a connection outward and then accepts replies. The firewall adds a second layer.
Does the firewall block outgoing connections?
No. The built-in macOS firewall only filters incoming connections. If you need to control outgoing traffic, you’ll need a third-party firewall like Little Snitch or LuLu.
Why does my Mac ask to allow an app every time I open it?
That happens when you’ve disabled “Automatically allow signed software” and the app isn’t in the allowed list. You can add it manually in the firewall options to stop the prompts.
Will the firewall break my VPN?
No. VPN traffic uses outgoing connections (and incoming responses), which the firewall allows by default. Some VPN apps might need to accept incoming connections for certain features, but that’s rare and the firewall will prompt you.
How do I reset the firewall to default settings?
Turn the firewall off, then on again. That clears any temporary rules. To remove all app-specific allowances, you’ll need to delete the app entries from the list manually, or use the terminal command sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off and then re-enable it—but that’s rarely necessary.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Valheim Server Not Showing in Community List Fixes
- DisplayPort vs HDMI: Which Cable Should You Use?
- Soundbar vs 2.1 Speaker System: Which Is Better?
- Survive Lava for Brainrot Tier List170 points
- MySQL Dump Import: Fix Common Errors
- Mouse Moving on Its Own? Causes & Fixes