Pcornel
Networking · Security › Next-Generation Firewall

NGFW Stateful Inspection

Cheat sheet · https://pcornel.dk/topic.php?topic=1532

Back to the Topic

Answer

Stateful inspection tracks each connection's state (for example TCP handshake and sequence), so return traffic is allowed automatically and packets that do not belong to a known session are dropped. General firewall principles are in Firewall.

Remember

A connection-table entry proves local tracking, not successful application delivery or comprehensive threat inspection.

First checks

show conn on ASA/FTD (or the session table on another platform) → an entry for the flow and its flags. show asp drop → packets dropped for having no connection. Compare forward and return path: both must cross the same firewall.

Commands

show zone-pair security
Inspect zone-pair stateful inspection attachment.

Verify in this order

first packet (TCP SYN) permitted by a rule → connection entry created → replies matched to the entry, no rule needed → entry removed on close or idle timeout → a packet without an entry is dropped (asymmetric path, timeout)

Where it usually breaks

physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1532

Confirmation

Confirm action

Continue?