Concept Focus

Firewalls set trust boundaries, filter packets and sessions, and make sure traffic does not get a free pass just because it knows an IP. In CISSP terms they operationalize network segmentation and access control, embodying defense in depth, least privilege, and boundary protection. To understand them, look at how they evolved.

First generation, static packet filtering

Operating primarily at Layer 3, it filtered on static attributes: source IP, destination IP, port, and protocol, with no session awareness, so each packet was judged independently. Rules were simply permit or deny. Weaknesses: no connection state, bypassable by port spoofing or fragmented packets, and it needed manual return rules for bidirectional traffic. Still found in routers as lightweight screening filters.

Second generation, proxy-based

Operating at the Session and Application layers, a proxy mediates every session instead of allowing direct host-to-host contact. It hides the internal IP space behind one outward identity and enables content inspection and logging.

Strength: it breaks direct connection paths, so attackers never talk to the real host. Limitation: performance bottlenecks and latency under load.

Third generation, stateful inspection

Operating at Layers 3 and 4, a stateful firewall remembers ongoing connections in a state table (IPs, ports, sequence numbers, connection state) and allows packets belonging to an established or related session, so no manual return rules are needed. Strengths: handles dynamic ports (FTP, VoIP), efficient for high throughput, balanced security for most enterprises. Weaknesses: cannot interpret payload, and is vulnerable to attacks hidden in allowed ports like HTTP and HTTPS.

Fourth generation, next-generation firewalls

NGFWs work across Layers 3 to 7 and fold several capabilities into one platform: deep packet inspection, application awareness (spotting an app on port 443 regardless of port), integrated IPS/IDS, user-identity policies, and advanced threat protection with sandboxing and TLS inspection. Benefits: unified visibility, event correlation, cloud and zero-trust ready. Trade-off: complex policy design and higher cost.

Evolution of firewalls from packet filtering to proxy, stateful inspection and NGFW
The four generations, packet filter, proxy, stateful inspection, next-generation
GenerationPrimary layerWhat it does
1st · Static packet filterL3Filters on IP, port, protocol; stateless
2nd · ProxyL5 / L7Mediates sessions, hides internal IPs, inspects content
3rd · Stateful inspectionL3 / L4Tracks connections in a state table, permits related traffic
4th · NGFWL3–L7DPI, application awareness, IPS, user identity, TLS inspection

Network vs host firewalls

Network firewall at the perimeter versus host-based firewall on each endpoint
Network firewall guards the boundary; host-based firewall defends each endpoint

A network firewall sits at the junction of trusted and untrusted networks, scrutinizing every packet against a rule base to permit or block. It enforces ACLs, blocks spoofing, isolates sensitive segments, and logs inbound and outbound events. It is the moat around the castle, a single choke point for policy. A host-based firewall runs on each endpoint and filters that host's traffic, blocking unauthorized connections such as malware calling out, with per-user or per-application control. Even if the network firewall is bypassed, host firewalls limit lateral movement and exfiltration. Examples: Windows Defender Firewall, iptables, cloud VM agents.

By form factor

By network placement

Firewall placement: perimeter, internal segmentation and distributed enforcement
Placement, perimeter shield, internal segmentation, and distributed enforcement

By data-filtering method

Brain Ticklers

Practice Questions — Domain 4 · Firewalls

Q1. Which type of firewall can block spoofed internal addresses at the perimeter?

  1. Packet filter
  2. Circuit proxy
  3. Stateful inspection
  4. Next-gen firewall

Q2. A company complains of high latency after deploying content-filtering. Which firewall type was likely introduced?

  1. Circuit-level proxy
  2. Application-level proxy
  3. Stateful firewall
  4. Packet filter

Q3. Which firewall creates a state table to track TCP handshakes?

  1. 1st-gen packet filter
  2. 2nd-gen proxy
  3. 3rd-gen stateful firewall
  4. Next-gen firewall

Q4. An organization needs policies based on user identity and app type (block Torrents, allow Teams). Which firewall fits?

  1. Packet filter
  2. Stateful firewall
  3. Next-generation firewall
  4. Circuit proxy

Q5. Which sequence correctly represents the evolution of firewalls?

  1. Proxy → Packet Filter → Stateful → NGFW
  2. Packet Filter → Proxy → Stateful → NGFW
  3. Stateful → Proxy → NGFW → Packet Filter
  4. Circuit Proxy → Application Proxy → Packet Filter → NGFW