Short for Stateful Packet Inspection, SPI, also known as stateful firewall, is a feature found in networking devices, like routers, that keeps track of the state of network connections. Keeping track of a connection's state allows the device to do better filtering of unwanted or harmful network traffic.