Skip to main content
Download — FreeNo credit card required
CoreLock · Illustration

Overview

Last scan: 2 min ago · 6 checks

87of 100

Security Score

CRITICALRunning apps

Risky command line: reverse shell

bash connecting out to port 4444

WARNINGLogin items

Unsigned item in LaunchAgents

Network: no open doorsNothing listening beyond this Mac
Opinion6 min read

Should I Turn On the Mac Firewall? Usually, Yes

HassanainUpdated

Quick answer: Yes, for most people: turn on the macOS firewall in System Settings > Network > Firewall, because it blocks unwanted incoming connections at almost no cost, and that matters most on public Wi-Fi. It does nothing about outgoing connections, so it won't stop an app already on your Mac from sending data out.

Below: what the firewall does and doesn't do, when it matters, whether to use stealth mode, and how to handle the permission prompts it shows.

What Your Mac's Firewall Actually Does (And Doesn't Do)

Let's clear up some confusion first. The macOS firewall isn't some mystical shield that blocks "bad stuff" from the internet. It's actually pretty specific about what it does.

When you enable it in System Settings > Network > Firewall, it blocks incoming connections to your Mac. That's it. It doesn't filter your outbound traffic or scan downloads for malware. If you download a sketchy app that wants to phone home with your data, the firewall won't stop it.

The firewall works by monitoring which apps are allowed to accept incoming network connections. When an app tries to listen on a port for the first time, macOS asks if you want to allow it. You've probably seen these dialogs if you've ever run a local web server or file sharing app.

You can check which apps currently have firewall exceptions by running this in Terminal:

sudo /usr/libexec/ApplicationFirewall/socketfilterfw --listapps

What you'll see is a list of apps that have been granted permission to accept incoming connections. Most people have way more apps on this list than they realize.

The Thing Most People Don't Realize About Home Networks

Here's where it gets interesting. If you're at home, connected to your Wi-Fi router, you're already behind a firewall of sorts. Your router uses Network Address Translation (NAT), which means devices on the internet can't directly connect to your Mac anyway.

Think of your router as a receptionist. When someone from the internet tries to connect to your Mac, they're actually talking to your router first. Unless you've specifically configured port forwarding (which most people haven't), your router just ignores these connection attempts.

This is why many Mac users have lived happily for years with the firewall turned off. Their router is already doing the heavy lifting for incoming connections.

But there's a catch.

When the Firewall Actually Matters

The firewall becomes important in two main scenarios. First, when you're on public Wi-Fi. That coffee shop network? Other people on the same network can potentially connect directly to your Mac. No NAT router protecting you there.

Second, if your Mac is directly connected to the internet. This is rare for most people, but if you're using a cellular modem or some other direct connection, you're exposed.

The stealth mode option is worth mentioning here. When you enable it (either in System Settings or by running sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setstealthmode on), your Mac won't respond to ping requests or to probes of closed ports. It doesn't hide your Mac's IP address.

Honestly, this is probably overkill for most people, but it does make your Mac harder to discover on untrusted networks.

The Apps That Surprise People

What catches most Mac users off guard is seeing which apps want network access. Spotify wants incoming connections for its Connect feature. Adobe apps often want to accept connections for licensing checks. Even some games want to listen for multiplayer connections.

Some of these make sense. Others ask for incoming connections with no clear reason. CoreLock's network check helps here. It lists services listening beyond your Mac's loopback address, so you can see which apps are open to incoming connections. Listening doesn't prove anyone can actually reach them.

The firewall dialog that pops up when an app first tries to accept connections is your chance to make an informed decision. But it's not always clear why an app needs this permission.

My Recommendation (With Caveats)

So should you turn on the Mac firewall? For most people, I'd say yes, but with some nuance.

If you ever connect to public Wi-Fi, turn it on. The security benefit when you're on untrusted networks is real. The performance impact is negligible on modern Macs, and the extra layer of protection is worth it.

If you only ever use your Mac at home on your own network, the benefit is smaller. Your router is already protecting you from most incoming connection attempts. But there's no real downside to enabling it either.

Here's where I might be wrong about this, though. Some network-heavy workflows can get tricky with the firewall enabled. If you're doing complex local development with multiple services, or running media servers that need to be accessible from other devices, you might find yourself constantly managing firewall exceptions.

And to be fair, the firewall won't protect you from the most common ways Macs get compromised these days. Phishing emails, malicious downloads, and social engineering attacks all bypass the firewall entirely. Most Mac users don't need traditional antivirus, but they do need to understand what's running on their system.

The Stealth Mode Decision

Stealth mode is easy to overthink. It sounds cool and secure, but for most users, it creates more problems than it solves.

Network troubleshooting becomes harder when your Mac doesn't respond to ping. Some legitimate network discovery protocols stop working. Unless you're regularly on hostile networks where someone might be actively scanning for devices, regular firewall mode is probably sufficient.

What the Firewall Can't Do

This is important: the Mac firewall only handles incoming connections. It does nothing about apps that want to send data out to the internet. If malware gets on your system and wants to steal your files, the firewall won't stop it from uploading them.

The security industry has done Mac users a disservice by either saying "Macs don't get viruses" (wrong) or that you need a paid security suite (overkill for most people). The truth is somewhere in the middle. You need visibility into what's happening on your system, not necessarily another scanning engine.

This limitation is why it helps to look at outbound connections too. CoreLock has a Network screen that lists your apps' open connections by IP address and port. It doesn't block anything, but it shows you which apps are talking to the internet. Its free Shields also show the macOS Firewall and Stealth mode as switches: turning either on or off asks for your administrator password, and CoreLock reads the setting back to confirm it changed. Understanding what's talking to the internet is often more valuable than blocking random port scans.

The Application Firewall vs Network Firewall Confusion

Apple's firewall is actually an application-level firewall, not a traditional network firewall. Instead of blocking traffic based on ports and IP addresses, it makes decisions based on which applications are trying to accept connections.

This is generally better for most users because it's more intuitive. When Zoom asks for firewall permission, you can reasonably guess it's for video calls. When some random utility you installed last month asks for the same permission, that's worth questioning.

You can see the current firewall settings by running:

sudo /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate

The output will show you whether the firewall is on, whether stealth mode is enabled, and whether it's blocking all incoming connections.

When to Say No to Apps

The firewall permission dialog is actually a decent security checkpoint if you pay attention to it. When an app asks for incoming connection permission, take a second to think about whether it makes sense.

Photo editing apps probably don't need to accept network connections. Music production software might, for collaboration features. Messaging apps almost certainly do.

If you're not sure, err on the side of saying no. You can always grant permission later if the app stops working properly. It's much easier to allow an app through the firewall than to remove permission from something that shouldn't have had it.

The Bottom Line

Should you turn on the Mac firewall? For most people, yes. The protection it offers on public Wi-Fi networks alone makes it worthwhile, and there's essentially no downside for typical usage.

But don't expect it to solve all your security problems. The firewall is one piece of a larger puzzle. Understanding what's running on your system, being careful about what you download, and having good backups are all more important than firewall settings.

If you want my specific recommendation: turn on the firewall, leave stealth mode off unless you have a specific need for it, and pay attention to which apps are requesting network permissions. That covers what most Mac users need from their built-in firewall.

The real security happens at the application layer anyway. Knowing what's running, what has access to your files, and what's communicating with the internet – that's where the interesting stuff happens. The firewall is just one tool in that bigger picture.

Ready to try CoreLock?

Free to download. No credit card required.

Download CoreLock Free