To turn on the firewall in current macOS, choose Apple menu > System Settings > Network > Firewall and turn on Firewall. In OS X Mountain Lion, open System Preferences, click Security & Privacy, click the Firewall tab, click the lock and enter your password, then click Turn On Firewall.
The first set of steps covers macOS Ventura 13 and later, including macOS Tahoe 26. The second covers OS X Mountain Lion 10.8 and every later version up to macOS Monterey 12, which all use System Preferences.
Check Your macOS Version
- Check your macOS version. Choose Apple menu > About This Mac. If you see System Settings in the Apple menu, use the current steps. If you see System Preferences, use the older steps.
- Use an administrator account. Changing firewall settings needs an administrator name and password, or Touch ID on Macs that have it.
- Work and school Macs may be locked. Apple lets organizations turn on and configure the firewall through device management. If your settings are dimmed or change back, ask your IT department.
How to Turn On the Firewall in Current macOS
These steps follow Apple’s Block connections to your Mac with a firewall guide.
- Click the Apple menu in the top-left corner of the screen and choose System Settings.
- Click Network in the sidebar.
- Click Firewall on the right side of the window. You may need to scroll down to see it.
- Turn on the Firewall switch. If your Mac asks, enter your administrator password or use Touch ID.
Once the switch is on, the Options button becomes available. Your Mac now blocks unwanted incoming connections. To turn the firewall off later, return to the same screen and turn the switch off.
How to Turn On the Firewall in OS X Mountain Lion (Legacy)
OS X Mountain Lion and later versions up to macOS Monterey use System Preferences instead of System Settings. Apple’s macOS High Sierra firewall guide uses the same steps.
- Click the System Preferences icon in the Dock. You can also choose Apple menu > System Preferences.
- Click Security & Privacy in the Personal section at the top of the window.
- Click the Firewall tab. The window shows whether the firewall is on or off.
- Click the lock icon at the bottom-left corner, type your administrator password, and click Unlock. The buttons on the tab become clickable.
- Click Turn On Firewall. The status changes to Firewall: On.
- Click the lock icon again so nobody can change the setting without your password.
Mountain Lion stopped receiving security updates years ago. The firewall still helps, but an unsupported Mac is exposed in other ways, so update macOS if your Mac can run a newer version.
What the Mac Firewall Does
Apple describes the built-in firewall as protection against unwanted contact started by other computers on the internet or on your network. It is an application firewall: it decides which apps and services on your Mac may accept incoming connections.
Knowing its limits helps you decide what else you need:
- It filters incoming connections. Browsing, streaming, email and app downloads start from your Mac, so they keep working normally.
- It does not block outgoing connections. Apple’s settings only cover what may connect to your Mac, not what your apps send out.
- It is not antivirus. It does not scan files or remove malware you download and open yourself. macOS handles that separately with Gatekeeper and its built-in malware checks.
- It adds a layer on top of your router. A home router already keeps most outside traffic away from your devices. The Mac firewall also protects you on networks you don’t control, such as hotel, airport or coffee shop Wi-Fi, where other people’s devices share the network with yours.
Firewall Options Explained
With the firewall on, click Options (or Firewall Options in System Preferences). Apple’s Change Firewall settings on Mac page describes each one:
| Option | What it does | When to use it |
|---|---|---|
| Block all incoming connections | Blocks connections to nonessential services and apps, including sharing services. Basic internet services keep working. | On untrusted public Wi-Fi when you don’t need file or screen sharing |
| Add (+) or Remove (-) | Adds an app or service to the list and sets it to allow or block incoming connections | When one app needs access, or you want to block one |
| Automatically allow built-in software to receive incoming connections | Lets Apple’s own signed apps receive connections without asking you | Leave on for most people |
| Automatically allow downloaded signed software to receive incoming connections | Does the same for downloaded apps signed by a valid certificate authority | Leave on unless you want a prompt for every app |
| Enable stealth mode | Your Mac ignores probing requests such as ping, so it is harder to find on a network | On laptops that use public networks |
In Mountain Lion, the two “Automatically allow” options appear as one checkbox called Automatically allow signed software to receive incoming connections. Click OK to save your changes.
How to Allow or Block a Specific App
- Open the firewall settings and click Options.
- Click the Add button (+) below the list of apps and services.
- Select the app and click Add or Open.
- Click the up and down arrows next to the app and choose Allow incoming connections or Block incoming connections.
- Click OK.
Blocking an app can affect how well it, or software that depends on it, works. Some system apps and services, and signed apps that other apps open, can get through without appearing in the list. Add them to the list if you want to block them.
When an app that isn’t in the list tries to accept a connection, your Mac shows an alert asking whether to allow or deny it. The connection is denied until you answer.
How to Check That the Firewall Is Working
Open the firewall screen again. In current macOS the Firewall switch is on and the Options button is clickable. In Mountain Lion and other System Preferences versions, the Firewall tab says Firewall: On. Click Options to review which apps are allowed.
When Options Are Gray or Sharing Stops Working
The Options button is grayed out
Options stays dimmed while the firewall is off. Turn on the firewall first. In System Preferences versions, also click the lock and enter your password.
File sharing, screen sharing or an app stopped working
Open Options and check whether Block all incoming connections is on. That setting blocks sharing services. If one app is the problem, find it in the list and set it to allow incoming connections, or remove it so your Mac asks again the next time.
A sharing service still gets through
Turning on a sharing service, such as file sharing, opens a port in the firewall for it. To close it fully, turn the service off in System Settings > General > Sharing (or System Preferences > Sharing on older versions).
You can’t change the setting
You may be signed in as a standard user, or your Mac may be managed by an organization. Sign in with an administrator account or ask the person who manages the Mac.
Mac Firewall Questions
Is the Mac firewall on by default?
On many Macs it is off until you turn it on. Open the Firewall screen to check rather than assuming.
Will the firewall slow down my internet?
No noticeable slowdown is expected, because it filters incoming connections and your normal browsing starts from your Mac. The only caveat is that blocking a specific app could affect that app.
Should I turn on stealth mode?
It’s optional and harmless for most people. Stealth mode stops your Mac from answering unauthorized requests such as ping and connection attempts on closed ports, while authorized apps still get responses.
Do I still need the firewall if my router has one?
At home your router already blocks most outside traffic. The Mac firewall matters most when you join networks you don’t control, so it’s worth leaving on, especially on a laptop.
Can I use a third-party firewall instead?
Yes. Security suites such as Norton 360 include their own firewall for Mac. If you use Norton 360, here’s how to change the Norton 360 firewall settings.
For more privacy on shared networks, you can also change the computer name on your MacBook Air so other devices don’t see your full name, or password-protect a folder on your Mac.

Matthew Burleigh is the founder, head writer, and editor of Solve Your Tech, which he launched in 2012. He has written technology tutorials since 2008 and worked in IT since 2003, including small-business support, IT management, and consulting. He holds Bachelor’s and Master’s degrees in Computer Science from Arizona State University.
Matthew writes practical guides for Windows, iPhone and iPad, Microsoft Office, Outlook, Google apps, and Android. Solve Your Tech’s guides are checked step by step against the device or app maker’s own documentation and tested on his own devices whenever he has the hardware or software, with clear steps, sources, and update dates.
Read more about Matthew and how Solve Your Tech writes and updates its guides, or report a correction.




