Use it when configuring, checking or troubleshooting Stateful Firewall in Firewalls.
Stateful Firewall
A Stateful Firewall combines policy with connection tracking so new flows are evaluated and permitted return or related packets are associated with established state until timeout or teardown.
1. Stateful firewalls track sessions (TCP state, UDP pseudo-state).
2. Allow return traffic automatically.
3. Table exhaustion under DDoS.
4. Timeouts per protocol.
5. HA syncs state.
packet → session lookup → policy for new sessions
Context & applicabilityCommon mistakes · platform/version boundaries
Session state shows accepted tuple transitions, but it does not show application authorization, safe content or durable HA synchronization.
Suspicious evidence: state exhaustion, timeout mismatch, orphaned session, asymmetric return, helper abuse, unsynced failover or established traffic bypassing changed policy.
Operational reference
Fast context before you go deeper.
diagnose sys session listPrimary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
new flow → rule match → session creation → return/related association → timeout/close → logs and application
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Stateful ≠ application-aware.
- Session table entry ≠ benign or completed application use.
- Rule present ≠ rule matched by the tested flow.
- Allowed session ≠ successful or authorized application transaction.
conntrack -L— state table (Linux)show conn count— ASA connectionsshow session info (PAN)— session stats
ReferenceWhat it is1 section · depth on demand
Session table in practice
| Platform | Command |
|---|---|
| Cisco ASA / FTD | show conn address 10.1.1.5 |
| Palo Alto | show session all filter source 10.1.1.5 |
| Fortinet | diagnose sys session list |
| Linux | conntrack -L |
Typical problems: asymmetric routing (return traffic hits another firewall), session table exhaustion during attacks, and idle timeouts shorter than the application's keepalive (long-lived database connections dropped).
ReferenceHow it works1 section · depth on demand
Decision and enforcement journey
Stateful Firewall is verified as a decision/enforcement journey: packet tuple/direction → zone/interface → rule/policy → connection/session lookup/create → NAT/inspection → forwarding/drop → application.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Session state shows accepted tuple transitions, but it does not show application authorization, safe content or durable HA synchronization.
In depth
A stateful firewall tracks each connection's state in a state table and allows return traffic for connections permitted in one direction. This allows simple, secure rules — "users may initiate HTTPS to the internet" — without opening the reverse direction.
! Cisco ASA
show conn count
show conn address 10.20.4.17
show asp drop ! why packets were dropped
packet-tracer input inside tcp 10.20.4.17 51000 198.51.100.10 443 detailed
State tables have limits: size the firewall for peak concurrent connections, configure timeouts per protocol, and protect against SYN floods with embryonic connection limits. Asymmetric routing — return traffic through a different firewall — breaks stateful inspection.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Firewalls → Stateful Firewall. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/41/r1/final · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Firewalls → Stateful Firewall proof map
Fast scope, effective-policy, runtime-evidence and closure boundaries for Firewalls → Stateful Firewall.
| Boundary | Establish | Does not establish |
|---|---|---|
| Scope and intent | Exact subjects, destinations, application, direction, trust zone and expected decision | Does not prove effective path, identity, cryptography or enforcement |
| Effective control state | Resolved rule/policy, session/SA, identity/posture, translation and selected path | Object/config presence does not prove a match or packet outcome |
| Runtime evidence | Correlated client, authenticator/firewall/VPN, AAA and destination observations for one flow/time | A single log or success does not prove every packet, peer, path or failover state |
| Closure | Original allowed/denied operation behaves as intended and regression/failure tests pass | Administrative commit or tunnel-up state alone is not closure |