Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Firewall (CCNA)

Direct answer

A firewall enforces which traffic may pass between networks or zones according to rules, usually tracking connection state. This Topic covers firewall principles; NGFW stateful inspection details are in Stateful Inspection.

When to use this

Use it when traffic that should pass a firewall is dropped, when traffic that should be blocked gets through, or to reason about where a firewall belongs in a path.

First 30 seconds

1. Identify the rule that matched: hit counts or packet tracer (packet-tracer input … on ASA/FTD).

2. Check NAT and state for the exact 5-tuple.

3. Confirm the return path goes through the same firewall.

Operational verification

exact flow (source, destination, protocol, port) → routing sends it through the firewall → NAT → rules read top-down, first match → permit: connection entry created · deny: dropped and logged → return traffic crosses the same firewall

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
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.

PlatformCisco IOS / IOS XE
Scope / prerequisiteUse it when traffic that should pass a firewall is dropped, when traffic that should be blocked gets through, or to rea…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

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

2 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 & troubleshooting Narrow the fault

1. Identify asset, trust boundary and expected flow.

2. Trace segmentation/access/state policy.

3. Verify application/URL/IPS/malware verdicts.

4. Correlate endpoint and centralized events.

5. Contain safely, preserve evidence and test recovery.

Step 2 Common mistakes Narrow the fault
  • Any-any rules for convenience.
  • Unused rules never cleaned up.
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
Command lookup Jump straight to Cisco syntax
Key points

An installed firewall is not evidence that the intended path traverses it or that its effective policy matches intent.

Key checks

Pin down the exact flow: source, destination, protocol, port. Confirm with the routing table or traceroute that it really crosses the firewall. Find the rule that matched — hit counters, or packet-tracer on ASA/FTD — then check NAT and the connection entry (show conn).

ReferenceWhat it is2 sections · depth on demand

Direct Answer

Firewall principles describe the trust boundary and traffic that policy should permit or deny. Stateful Inspection owns stateful inspection mechanics within an NGFW.

Close with Use counters or packet trace for the exact test tuple, confirm the intended rule/action and translated/session state, then verify forwarding and the reverse/application transaction. and state what the evidence does not prove.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Scope and canonical references

Keep this Topic for placement, policy intent and limits; follow Next-Generation Firewall for integrated NGFW enforcement.

ReferenceWhy it matters1 section · depth on demand

When to use it

Use it to map a threat path across network and endpoint controls and show prevention, detection, containment and investigation telemetry.

ReferenceHow it works1 section · depth on demand

Technical Mechanics

Stateful inspection is one implementation mechanism, not the complete security objective. Specify the traffic direction, service and trust boundary before reviewing enforcement.

ReferenceImportant terms & boundaries4 sections · depth on demand

Proof Boundaries

An installed firewall is not evidence that the intended path traverses it or that its effective policy matches intent.

In depth

Firewalls in threat defense

A firewall enforces which traffic may pass between networks. NIST SP 800-41 Rev. 1 describes the technologies, from stateless packet filters that check addresses, protocol, ports and interface against a ruleset, through stateful inspection that tracks each connection, to application firewalls and proxy gateways that analyse application behaviour. Its core policy advice: block all traffic not expressly permitted.

Firewall technologies (SP 800-41 Rev. 1)

TechnologyDecides on
Packet filterAddresses, protocol, ports, interface and direction; no connection tracking
Stateful inspectionThe above plus connection state
Application firewallProtocol behaviour (commands, attachment types)
Application proxyTerminates and re-originates connections; can require per-user authentication
UTM / NGFWSeveral functions in one system
Web application firewallHTTP attacks against web servers
Virtual firewallTraffic between VMs on the same host, invisible to external firewalls

Policy guidance (SP 800-41 Rev. 1)

AreaRecommendation
DefaultDeny everything not explicitly permitted, inbound and outbound
AddressesBlock invalid, private-at-the-perimeter and spoofed source addresses (egress filtering)
ICMPDeny what isn't needed, but don't filter IPv4 type 3 (needed for diagnostics and PMTUD)
NATNot a security control
fw# show access-list OUTSIDE-IN
access-list OUTSIDE-IN line 1 extended permit tcp any host 198.51.100.10 eq https (hitcnt=48211)
access-list OUTSIDE-IN line 2 extended permit icmp any any unreachable (hitcnt=912)
access-list OUTSIDE-IN line 3 extended deny ip any any log (hitcnt=118204)
fw# show conn count
1843 in use, 4211 most used

Placement (SP 800-41 Rev. 1)

Firewalls belong at the edges of logical network boundaries. Public-facing servers go in a DMZ, and traffic between the DMZ and the internal network still passes the firewall. Several layers give defence in depth at the cost of more complex troubleshooting.

Operating firewalls

Review rules regularly, remove unused ones (hit counts help), log denies at the edge, and test policy changes before applying them.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Quick reference

A firewall enforces which traffic may pass between security zones. A stateful firewall tracks every connection, so return traffic is allowed automatically while unsolicited inbound traffic is blocked; next-generation firewalls add application and user awareness, intrusion prevention and file inspection on top.

Where firewalls belong in a network:

BoundaryPurpose
Internet edgeProtect inside from internet, publish services in a DMZ
Data-centre edgeControl users-to-servers traffic
Between internal zonesSegment IoT/OT, management, guests
Cloud/VPC edgesEquivalent controls in cloud networks

Rule-base hygiene keeps a firewall useful: least-privilege rules with owners and expiry, regular reviews of unused rules by hit count, logging of denies at zone boundaries, and change control. A firewall with thousands of unreviewed "any" rules gives little real protection.

Asymmetric routing is the classic firewall fault: if return traffic takes a different path, the firewall has no state for it and drops it.

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 docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Security → Threat Defense → Firewall. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Confirmation

Confirm action

Continue?