In computing, a stateful firewall is a network firewall that tracks the operating state and characteristics of network connections traversing it. The firewall is configured to distinguish legitimate packets for different types of connections. Only packets matching a known active connection are allowed to pass the firewall.
Stateful packet inspection (SPI), also referred not to as dynamic packet filtering, is a security feature often included in business networks.