Mac firewall guides

Mac firewall settings: incoming connections and options

Mac firewall settings are in System Settings → Network → Firewall. Turn it on to control incoming connections, then use Options to choose which apps may receive them. These settings don’t block outgoing connections.

Updated

Step by step

  1. Open Firewall settings. Open the Apple menu, choose System Settings, click Network in the sidebar, then Firewall. Scroll down if needed.
  2. Turn the firewall on or off. Turn on Firewall to enable the incoming connection controls, and use the same switch to turn it off. If you’re troubleshooting, note how it was set so you can put it back.
  3. Review the automatic permissions. Click Options and look at Block all incoming connections, then the separate automatic permissions for built-in software and for downloaded signed software.
  4. Allow or block an app. Under the app and service list, click the add button and select the app. Use its up and down arrows to choose whether to allow or block incoming connections.
  5. Choose stealth mode and save. Enable stealth mode if you want the Mac to ignore probing requests. Click OK to save the options. Test any service you need to reach from another computer.
  6. Check the status in Terminal. Run /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate. It reports whether the built-in firewall is enabled. This checks the global switch, not each app permission.

Where are Mac firewall settings, and how do you turn them on or off?

Open System Settings → Network → Firewall to turn the built-in firewall on or off.

Turn on Firewall, then click Options to configure it. Options is unavailable while Firewall is off. Use the switch again to turn it off. Apple’s firewall setup guide covers the setting and app permissions.

Where are firewall settings on macOS 14, 15 and 26?

The Mac firewall is in System Settings → Network → Firewall on macOS Sonoma 14, macOS Sequoia 15 and macOS Tahoe 26. Apple’s firewall guide gives the same path for each version: macOS 14, macOS 15 and macOS 26. You may need to scroll down in Network to see Firewall.

How do you turn the Mac firewall off?

Turn the Mac firewall off in System Settings → Network → Firewall by switching Firewall off.

Options is unavailable while Firewall is off; Apple says to turn Firewall on first if the Options button is disabled. If you’re turning it off to troubleshoot, note how it was set so you can put it back. Apple’s firewall guide shows the switch.

What do the firewall options do?

The options decide how much incoming traffic to allow.

  • Block all incoming connections: blocks incoming connections to non-essential apps and services. Basic Internet services remain available, but other sharing services are blocked.
  • Automatically allow built-in software to receive incoming connections: adds built-in apps and services signed by a valid certificate authority to the allowed list without asking you.
  • Automatically allow downloaded signed software to receive incoming connections: does the same for downloaded apps and services with valid signatures.

Choose these permissions based on the services you need to use. Apple’s Firewall options guide explains each control. The two automatic permissions concern incoming access, not permission to contact websites.

How do you allow or block incoming connections for one app?

Add the app in Options, then choose whether to allow or block its incoming connections. Use the add button below the app and service list, select the app, and use the arrows beside its entry to change the permission.

This is an incoming permission. It will not stop the app contacting a remote server. After changing it, test the service from another computer if you need that access. Apple’s app permission instructions show the controls.

How do you allow Chrome through the Mac firewall?

Google Chrome doesn’t need a Mac firewall exception to open websites: Apple describes the firewall as protecting your Mac from unwanted contact started by other computers, and Chrome starts its own connections.

To let Chrome accept incoming connections, open Firewall, click Options, click the add button under the list of apps and services, select Google Chrome, then use its arrows to allow connections. Google’s help for Chrome connection errors says to check that firewall or antivirus software isn’t blocking your connection. If Chrome still can’t connect, look for software that filters outgoing traffic, such as an outbound firewall, a VPN or a content filter listed in System Settings → Network → Filters (VPN & Filters on macOS 27 and later).

What does stealth mode change?

Stealth mode makes your Mac ignore probing requests such as ping and connection attempts to closed TCP or UDP ports. It cuts down how your Mac responds to probes and has no effect on an app’s outgoing traffic.

With Firewall on, click Options, turn on Enable stealth mode, then click OK. Apple’s stealth mode guide explains the setting.

How do you check if the Mac firewall is on?

Check whether the Mac firewall is on in System Settings → Network → Firewall, where the Firewall switch shows its state. In Terminal, /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate reports the same global setting without changing it.

How do you check firewall status from Terminal?

Run /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate to check whether the built-in firewall is enabled.

/usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate

The command reads the global state; it does not change it or list each app’s permission. For Apple’s local command help, run /usr/libexec/ApplicationFirewall/socketfilterfw -h. You can also check the switch in Firewall settings.

What is the difference between inbound and outbound firewall rules on a Mac?

Inbound rules decide which connections other computers may start to your Mac; outbound rules decide which servers your Mac’s apps may contact. The macOS firewall covers the inbound side: Apple’s firewall security guide lists controls such as blocking all incoming connections and not responding to ICMP probes and port scans.

An outbound application firewall, such as Outbound, checks each outgoing connection against rules for the app and its destination: a host, domain, IP address or network range, with port and protocol. Outbound’s rules can cover incoming connections too. See how Outbound rules work.

When is an outbound firewall the right tool?

Use an outbound firewall when you want to decide which remote destinations an app may contact. The built-in settings above control incoming access; they do not provide outgoing app and destination rules. Apple’s firewall security guide lists the incoming controls.

Turning on Block all incoming connections will not keep an app offline. See whether the macOS firewall blocks outgoing connections and how to block an app’s internet access before choosing another tool.

The Outbound steps are written for Outbound 1.5.3 and its command-line help. Download Outbound. Sources for other products and for macOS are linked where they’re used.