NGFW Stateful Firewall
Cheat sheet · https://pcornel.dk/topic.php?topic=862
Answer
A stateful firewall checks only the first packet of a connection against its rules. If allowed, it records the connection in a table, and every later packet of it — both directions — passes on that entry. Unsolicited packets from outside match no entry and are dropped.
Remember
Replies need a connection entry, not a rule. Asymmetric routing breaks it: the second firewall has no entry. Idle connections time out (TCP default one hour on ASA). Removing a rule does not end connections already in the table.
First checks
show conn address <ip>(ASA / FTD) — connections for a host, with flags and idle time.show conn detail— what the flags mean, per connection.packet-tracer input <if> tcp <src> <sport> <dst> <dport> detailed— which rule and NAT a new connection would hit.show asp drop— why packets were dropped (for example no connection, or a TCP state error).show running-config timeout— idle timeouts.
Commands
show conn
Verify in this order
first packet arrives on the expected interface → rule allows it → connection entry created → replies arrive at the same firewall → matched to the entry → refreshed by traffic → removed at close or idle 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=862