Reader-supported: we earn a commission on some links, at no extra cost to you. How this works
Security & PrivacyGuide

What Does a Firewall Do?

A firewall controls which network traffic can enter or leave your device or network, blocking unwanted connections while allowing the ones you trust.

A firewall is a security barrier that controls which network traffic is allowed to enter or leave your device or network. It checks connections against a set of rules and blocks anything unwanted, such as an outside attempt to reach your computer, while allowing the traffic you trust. Your operating system and home router both include firewalls that work in the background.

Why this happens

Every device on a network communicates through numbered ports and addresses. Without control, unwanted or malicious connections could reach services running on your machine. A firewall sits at that boundary and inspects traffic, deciding what to permit or reject.

Firewalls apply rules based on things like the source, destination, port, and program involved. A home router firewall protects your whole network from the internet, while the firewall built into Windows or Mac protects that individual device, including on public networks.

Is this normal?

Yes. Firewalls are standard and usually on by default. Windows, Mac, and home routers all run one, so most people are already protected without doing anything.

Does it cause any problems?

Occasionally. A firewall can block a game, app, or device feature that needs an open connection. The fix is to allow that specific program rather than turning the firewall off.

How to fix or check it

  1. On Windows, open Windows Security, then Firewall and network protection, and confirm it is on for your active network.
  2. On Mac, go to System Settings, Network, Firewall and make sure it is enabled.
  3. If an app is blocked, add it to the allowed list instead of disabling the firewall.
  4. Leave your router's built-in firewall on, and avoid opening ports unless you truly need to.
  5. Keep your operating system and router firmware updated so firewall rules stay effective.
  6. On public Wi-Fi, make sure the device firewall is active and sharing features are off.

Frequently asked questions

Do I need a firewall if I have antivirus?

Yes, they do different jobs. A firewall controls network connections, while antivirus detects and removes malicious files. Using both gives layered protection.

Is the built-in firewall enough?

For most home users, yes. The firewall in Windows or Mac plus your router firewall covers everyday needs without extra software.

Should I ever turn my firewall off?

Almost never. If an app is blocked, allow that specific app instead. Turning the firewall off exposes your device to unwanted connections.

More in this topic

More in Security & Privacy

See the full guide →