Overview

A firewall is a system—software, hardware, or a combination—that enforces rules governing network traffic between zones of differing trust, most commonly between a protected internal network and the wider Internet. Firewalls examine packets or higher‑level traffic and decide whether to allow, block, or log the communication based on a configured policy. Many implementations also provide address translation, connection tracking, and logging functions.

Common types and components

Firewalls are commonly categorized by how they inspect traffic and where they operate. Major types include:

  • Packet‑filtering: checks packet headers against rules (source/destination IP, port, protocol).
  • Stateful inspection: tracks active connections and makes decisions using connection state.
  • Proxy or application‑layer: terminates and reestablishes connections, inspecting application data.
  • Next‑generation firewalls (NGFW): combine stateful inspection with deep packet inspection, intrusion prevention features and application awareness.

At the device level, a firewall typically enforces an access control list (ACL), maintains logs, and may provide network address translation (NAT) or VPN termination.

Brief history and development

Early firewalls appeared as simple packet filters in the late 1980s. During the 1990s, stateful inspection and application proxies became common to address limitations of basic filters. Over time functionality expanded to include intrusion prevention, content filtering and application identification, giving rise to what vendors term next‑generation firewalls.

Uses and deployment patterns

Firewalls are used at network perimeters, between internal segments, and on individual hosts. Typical deployments include a perimeter firewall protecting an enterprise from the Internet, internal segmentation to isolate sensitive systems (for example in a DMZ), and host‑based firewalls on laptops and servers. Proper rule design—often following a default‑deny principle—and regular logging and review are essential for effectiveness.

Distinctions and practical matters

A firewall is not a catch‑all security control: it complements but does not replace antivirus, intrusion detection systems, secure application design, or strong authentication. Performance, correct rule order, and comprehensive logging determine real‑world usefulness. For more technical details and software options see firewall software, and for discussion of how individual packets are evaluated see packet handling.