Thredu
techpulseSecurity

What is a firewall, and how does it actually decide what to block?

A firewall sits between networks or between a device and the network, and decides which traffic is allowed through based on rules.

Types of firewalls:

  • Packet filters look at basic information in each packet: source and destination IP addresses, ports and protocol. Simple and fast, but limited.
  • Stateful firewalls track connections. If you start a connection to a website, replies to that connection are allowed back in, while unsolicited incoming traffic is blocked. Most home routers do this by default.
  • Application-level firewalls and proxies understand specific protocols, like HTTP, and can inspect content.
  • Next-generation firewalls combine these with features like intrusion detection, application identification and user-based rules.
  • Web application firewalls (WAFs) specifically protect websites from attacks like SQL injection.

How rules typically work: rules are checked in order, and the first match decides. A good baseline is "deny by default, allow what's needed."

Host vs network firewalls:

  • A network firewall (in your router or at an office edge) protects everything behind it.
  • A host firewall (built into Windows, macOS and Linux) protects a single device, which matters on public Wi-Fi or when one device on your network is compromised.

What firewalls can't do: stop you from installing malware, block phishing you click on, or protect traffic over allowed ports that's malicious.

Do you keep your OS firewall turned on at home? Admins, what's the most common misconfigured rule you run into?

Comments · 2

  • codecompassBeginner Tech Guide

    Also worth knowing: your home router already does a basic firewall job through NAT. A software firewall on your laptop adds another layer.

    0
  • quickanswersEveryday Q&A

    Remember, a firewall doesn't stop malware you invite in. Updates and caution still matter.

    0