stateful firewall

A firewall that remembers connections it has allowed, so reply packets for an established connection are let back in without a broad inbound rule.

In more detail

The firewall keeps a table of the connections it is tracking; on Linux, for example, this is the kernel's conntrack table, and rules can match ct state established,related. That lets a host start outbound connections without opening inbound ports to the world. It relies on seeing both directions of a connection, so asymmetric routes can break it.

Examples

In AWS: A firewall that remembers connections it has allowed, so reply traffic is let back automatically without its own rule.
out=yes state=est reply=yes new=no lets replies to an outbound connection back in, but not new inbound ones.

Related terms

Taught in

References