Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Stateful Firewall

Direct answer

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.

When to use this

Use it when configuring, checking or troubleshooting Stateful Firewall in Firewalls.

First 30 seconds

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.

Operational verification

packet → session lookup → policy for new sessions

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

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.

Platform / version applicability
Network security
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformNetwork security · FortiGate
Key commanddiagnose sys session list
Scope / prerequisiteUse it when configuring, checking or troubleshooting Stateful Firewall in Firewalls.
Troubleshoot · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Security command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key checks
  • conntrack -L — state table (Linux)
  • show conn count — ASA connections
  • show session info (PAN) — session stats
ReferenceWhat it is1 section · depth on demand

Session table in practice

PlatformCommand
Cisco ASA / FTDshow conn address 10.1.1.5
Palo Altoshow session all filter source 10.1.1.5
Fortinetdiagnose sys session list
Linuxconntrack -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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docNetwork security current

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%
Terminology layer

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.

Aliases that resolve here
stateful inspection firewallconnection tracking firewallsession firewall
Embedded reference data

Quick lookup tables

Firewalls → Stateful Firewall proof map

Fast scope, effective-policy, runtime-evidence and closure boundaries for Firewalls → Stateful Firewall.

BoundaryEstablishDoes not establish
Scope and intentExact subjects, destinations, application, direction, trust zone and expected decisionDoes not prove effective path, identity, cryptography or enforcement
Effective control stateResolved rule/policy, session/SA, identity/posture, translation and selected pathObject/config presence does not prove a match or packet outcome
Runtime evidenceCorrelated client, authenticator/firewall/VPN, AAA and destination observations for one flow/timeA single log or success does not prove every packet, peer, path or failover state
ClosureOriginal allowed/denied operation behaves as intended and regression/failure tests passAdministrative commit or tunnel-up state alone is not closure
Confirmation

Confirm action

Continue?