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
- security group — A stateful firewall attached to a resource’s network interface, made only of allow rules for ports, protocols and sources.
- network ACL — A stateless list of numbered allow and deny rules applied to all traffic entering or leaving a subnet.
- firewall — Software or a device that allows or blocks network traffic according to rules about direction, interface, protocol, port and source.
- default deny — A starting policy that blocks all traffic, so only connections you then explicitly allow are possible.
- socket state — The stage a TCP socket has reached in its lifecycle, such as LISTEN, SYN-SENT, ESTABLISHED or TIME-WAIT.
- asymmetric routing — When the packets of one connection travel out by one path and return by another.
Taught in
- Network Address Translation — Cloud Infrastructure & Hyperscaler Architecture
- Security Groups and Firewalls — Cloud Infrastructure & Hyperscaler Architecture
- Firewalls: Default Deny, State And Rule Order — Linux Fundamentals & Systems Administration