Skip to main content

How to use a firewall and stealth mode on a Mac

A digital lock key with an arbitrary assortment of numbers key sitting on piece of hardware.
Image used with permission by copyright holder

While the general consensus regarding whether a Mac is more secure than Windows leans toward Apple’s system, it doesn’t mean a Mac is still unable to be affected by hackers and malware; it's still vulnerable. When it comes to security, the Mac includes a few built-in features that go a long way in providing a secure user experience. We take a look at how to use some of these, namely the firewall and stealth mode on MacOS.

Recommended Videos

Difficulty

Easy

Duration

5 minutes

What You Need

  • A Mac system

How to use a firewall

Before we explain the steps in using a firewall on a Mac, it’s important to understand the actual purpose behind a firewall. Firewalls protect the system from an outside threat actor or a harmful connection gaining access to your Mac when you’re connected to the internet or to a given network. With this in mind, it doesn’t necessarily work in the same way traditional antivirus software operates, but that’s not to say it’s a redundant feature.

Macs can always be targeted in order for someone to infiltrate your system when utilizing a network that’s not trusted or unknown. That being said, let’s take a look at the steps you can take for using a firewall on a Mac.

Step 1: Select the Apple logo on the top left of your Mac screen and open System Preferences, choose Security & Privacy, and click the Firewall tab.

how to use a firewall and stealth mode on mac macfirewallwindow
Image used with permission by copyright holder

Step 2: You’ll need to click the lock button located at the bottom-left corner. Enter your username and password (providing you’re an administrator).

Step 3: Select the Turn on Firewall button.

If you know what you’re doing and require more specific control over the firewall, select the Firewall Options button. Here, you’ll have access to the following (for macOS Monterey):

Allow only specified apps and services to connect: Click the Add (or "+" sign for earlier versions of macOS) button, and choose the app or service you wish to include. With each application you add, you have the ability to either allow or block incoming connections.

Allow only essential apps and services to connect: Choose the Block All Incoming Connections box.

Automatically allow built-in software to receive incoming connections: This option is enabled by default and allows default Mac apps to receive incoming connections.

Automatically allow downloaded signed software to receive incoming connections: This is also enabled by default and allows any software that is signed by a valid certificate authority to provide services accessed from the network.

Enable stealth mode: The final configuration option when it comes to the Mac’s firewall is a feature that strengthens the overall security of your Mac, consequently making it more challenging for hackers and malware to infiltrate your system. One example of this is unexpected requests such as ICMP (ping) being ignored by your system. Stealth mode will also prevent your Mac from responding to probing requests. That said, the system will still be capable of answering incoming requests for authorized apps. It’s a particularly relevant feature for when a Mac is connected to external networks — more on that in the next section.

Ultimately, upon your Mac detecting an attempt to connect to an app that hasn’t been included within the list of apps that can access your Mac, an alert will pop up giving you the choice to allow or deny the connection over either the network or internet.

If you attempt to open an unsigned app that is not listed within the firewall list, a message that gives you options to Allow or Deny connections for that app is shown. Clicking Allow will make your Mac’s operating system sign the application, as well as adding it to the firewall list automatically. Selecting Deny, meanwhile, makes the Mac add the program to the list but denies incoming connections for the app itself.

how to use a firewall and stealth mode on mac macfirewalloptions
Image used with permission by copyright holder

How to use stealth mode

As we touched on above, stealth mode is a useful feature that will essentially make your Mac invisible to outside networks. It’s not necessarily essential when you’re confined to your own private network when at home. However, it can prove to be useful when you’re exposed through a public or shared network in settings such as coffee shops that provide Wi-Fi or an internet hotspot point when you’re commuting, university Wi-Fi access, etc. However, you can also use your iPhone is an internet hotspot for your Mac.

Hackers and criminals can target a Mac if it’s connected to a public or shared network. By enabling stealth mode, no one else that has access to the same network you’re using can discover your system.

Step 1: Go to System Preferences, click Security & Privacy, and select Firewall.

how to use a firewall and stealth mode on mac macstealthmode
Image used with permission by copyright holder

Step 2: You’ll need to have the Mac’s firewall enabled. Click Firewall Options and then click the Enable Stealth Mode button. Click OK to confirm the change.

It should be noted that with stealth mode enabled, it could potentially make it difficult to diagnose and troubleshoot an issue pertaining to network access. It can offer an additional layer of security when you’re using a public network, but when at home, a Mac that has stealth mode switched on won’t be capable of receiving or responding to ping requests. Connection attempts from a closed TCP or UDP network will also be completely rejected.

You won’t even receive a message from the Mac that lets you know a connection is attempting to be made to your system. As such, just be sure to know whether you have the setting enabled or you may spend countless hours trying to fix connectivity issues.

If you're concerned about data privacy, here's how to encrypt data with FileVault on your Mac.

Zak Islam
Former Digital Trends Contributor
Zak Islam was a freelance writer at Digital Trends covering the latest news in the technology world, particularly the…
Amazon has slashed the price of the MacBook Pro M4 by $250
Someone using a MacBook Pro at a desk.

Amazon is often the home of great Apple deals, and that continues to be the case today. Right now, you can buy the latest Apple MacBook Pro with M4 Pro chip for $250 off. That means instead of paying $2,499, you pay $2,249. That’s not quite the lowest price it’s ever been, but it’s not far off -- the MacBook Pro with M4 has only ever dropping to $2,199 at its lowest. For the most part, $2,249 is a sweet deal and one of the better laptop deals around. If you’re keen to learn more, read on and we’ll take you through all it has to offer.

Why you should buy the Apple MacBook Pro with M4 Pro
The latest MacBook Pro tops our look at the best MacBooks for so many fantastic reasons. It’s a true powerhouse of a machine while still looking super elegant and stylish. In our MacBook Pro review, we described it as “the best gets even better.” It offers “record-breaking performance,” with the M4 Pro chip proving to be exceptionally powerful for all kinds of tasks. It also has a best-in-class keyboard and trackpad, which adds to the experience.

Read more
I desperately want MacBooks to steal this trackpad feature
Someone using a MacBook Pro M4.

One of my favorite things about using a MacBook Pro is the trackpad gestures. For years, I’ve been able to swipe through different windows, open Command Center or Launchpad, and check notifications while hardly moving my hand at all.

Most Windows laptops I try have an inferior overall trackpad experience, but like most things in tech, that hasn’t lasted for long. I’ve recently been trying the Asus Zenbook S 14 — powered by Intel’s latest Lunar Lake CPU — and one of my favorite features is the way Asus has approached the trackpad. It’s quickly changing my opinion of Windows laptops as a whole.

Read more
These are all the Macs that are expected to launch in 2025
The M3 MacBook Air in front of a window.

We just got a fresh delivery of Macs in November with the M4 MacBook Pro, iMac, and Mac mini -- and there's plenty more to come in 2025. If you're wondering which Mac to buy and when to buy it, you'll need to know the latest rumors on what's coming in 2025. Buckle up, because there's a lot.

We expect Apple to complete its full M4 update for the Mac lineup during the first half of the year and introduce the first M5 products toward the end of the year. If we're lucky, we may even get a few surprises along the way.
M4 MacBook Air

Read more