Packet Filtering Firewall

In a packet filtering firewall, each packet is compared with a set of criteria before it is forwarded.

Packet filtering firewalls focus on individual packets, analyzing their header information to determine the correct direction. Traditional packet filters make decisions based on the following packet information:


A Packet Filtering Firewall is a fundamental type of firewall that operates primarily by examining individual network packets against a defined set of criteria to control the flow of data traffic.

This type of firewall operates at the Network Layer (Layer 3) of the OSI model or the Internet layer of the TCP/IP model.

I. Mechanism and Operation

  1. Packet Examination: A packet filtering firewall compares each packet crossing the boundary against a set of predetermined criteria or rules before forwarding, dropping, or transmitting a message.
  2. Filtering Decision: Based on the packet and the established criteria, the firewall decides whether to drop the packet or transmit it. If the packet passes the test defined by the rules, it is allowed to pass; otherwise, it is rejected.
  3. Efficiency: Packet filters are highly efficient, holding up each packet for only a few milliseconds while inspecting the headers before applying rules. They are also generally inexpensive and often built into most routers.
  4. Configuration: Packet filtering is the technique employed by Network-based Firewalls. This type of firewall is designed to protect the private Local Area Network (LAN).

II. Criteria for Filtering

Traditional packet filtering firewalls make decisions based solely on the header information contained in individual packets. These criteria include:

Packet Attribute Function in Filtering
Source IP address Used to check whether the packet originates from a valid source.
Destination IP address Checks if the packet is directed to the correct destination and if that destination accepts the packet type.
Source TCP/UDP port Used to check the port from which the packet originated.
Destination TCP/UDP port Used to monitor the destination port regarding which services should be allowed or denied.
Protocol in use Used to check whether the protocol carried by the packet (e.g., TCP, UDP, ICMP) should be permitted.
TCP flag bits Used to check whether specific flags such as SYN, ACK, or RST are set for connection establishment or termination.
Direction Used to check whether the packet is entering or leaving the private network.
Interface Used to check whether the packet is coming from an unreliable zone.

III. Limitations and Exploitation

Packet filtering firewalls, despite their common use, have several notable limitations that can be exploited by attackers:

IV. Defensive Context

Packet filtering firewalls can be bypassed by spoofing techniques. Countermeasures suggested in the sources include: