Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Security Policy

Direct answer

A firewall's security policy is its ordered rule list. The first packet of each connection is matched from the top; if allowed, a session is created and the rest of the connection — both directions — passes on that session.

When to use this

Use it to answer "is the firewall blocking it?", and when adding, reviewing or cleaning up rules.

First 30 seconds

1. Security policy rules: source, destination, application/service, user, action, logging.

2. Each rule has owner and reason.

3. Review periodically.

4. Remove any-any rules.

5. Use groups/objects.

Operational verification

traffic attributes → first matching rule → action

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common interpretation traps
  • "The rule exists, so the traffic is allowed." A rule above it may match first; the log shows the rule actually used.
  • "I removed the rule, so the traffic stopped." Existing sessions can continue until they end.
  • "Return traffic needs its own rule." The session entry covers it.
  • "Nothing in the deny log, so the firewall is not involved." The default deny may not be logged — or the traffic never arrived.
  • "Allowed by policy means it works." Routing, NAT, and the server's own firewall still have to be right.
  • "The connection works, so the rule is right." It may work through a broader rule that should not exist.
  • "Approved means implemented." Compare the approved request with the rule as configured.
Common traps

Approval shows governance intent, but it does not show correct implementation, continued need or effective enforcement.

Suspicious evidence: orphan rule, no expiry, generic service, unused access retained, emergency rule normalized as permanent, owner departed or policy/config drift.

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
Scope / prerequisiteUse it to answer "is the firewall blocking it?", and when adding, reviewing or cleaning up rules.
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.

3 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

business requirement/risk → approved policy → implemented rules/objects → active enforcement → usage evidence → review/retirement

Step 2 Operational verification Verify boundary

Stateful policy, zones/rules, session state, logging and verification of effective filtering.

Fast verification

  • Trace source/destination zones, policy match, session state, NAT and logging for one flow.

- Use rule/session counters to show which policy handled the traffic.

- Separate routing, NAT and security-policy decisions; they may fail at different stages.

Step 3 Verification & troubleshooting Narrow the fault

Path: Security → Firewalls → Security Policy. Local intent: Firewall Security Policy translates business access intent into governed, least-privilege rules with owners, justification, review, expiry, change control and verifiable default behavior.

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

First match wins, so a broad rule above a specific one shadows it. Replies need no rule. Existing sessions can survive a rule change. The log shows which rule a connection actually matched — and no log entry at all usually means the traffic never arrived.

Key checks
  • show security policies (Junos) — policy
  • show running security-policy (PAN-OS) — rulebase
  • Rule review with owners and justification — documentation
ReferenceWhat it is2 sections · depth on demand

What it is

Rules and policy that decide which identities or traffic are allowed, denied or constrained.

Close with Use packet/session counters for the exact 5-tuple, verify the matched rule/action and translation, then confirm server response and reverse-path/session handling. and state what the evidence does not show.

Mental model

A firewall's security policy is its ordered list of rules stating which traffic may pass between which networks. Each new connection is compared with the rules from the top; the first match decides whether it is allowed, and what is not allowed by any rule is denied.

ReferenceWhy it matters2 sections · depth on demand

When to use it

Use this Topic when the problem is in Firewall Policy. Use Access Control when the problem concerns identity, authentication, certificates, access control, hardening, secure transport or security evidence.

Why it matters operationally

"Is the firewall blocking it?" is asked about nearly every connectivity problem. The answer is in the firewall's logs and session table, not in the rule list alone — which rule the connection actually matched is often not the one its author intended. Rule bases also decay: rules shadowed by others, temporary rules never removed, and rules far broader than the need.

ReferenceHow it works2 sections · depth on demand

How it works

Stateful. A firewall evaluates the first packet of a connection against the policy. If it is allowed, an entry is created in the session table, and all further packets of that connection — in both directions — are passed by that entry without consulting the rules again. Two consequences:

  • Rules describe who may initiate; replies need no rule of their own.
  • A changed or removed rule does not necessarily affect connections already established; they live until they end or time out, or until the sessions are cleared.

What a rule matches. Source and destination zone or interface, source and destination address, service (protocol and port) — and on newer firewalls also the application identified in the traffic and the user. The action is allow, deny (silently drop) or reject (drop and notify the sender), usually with a logging option.

Order. First match wins, top down. A general rule above a specific one makes the specific one unreachable — a shadowed rule. Most firewalls end with a default deny; logging it is what makes blocked traffic visible.

Zones. Interfaces are grouped into zones (inside, outside, DMZ), and rules are written between zones. Traffic within one zone may be allowed by default, depending on the product.

NAT. When the firewall also translates addresses, it matters whether a rule must name the original or the translated address; products differ, and this is a classic cause of rules that never match.

Finding the answer.

QuestionWhere
Was the connection allowed or denied, and by which rule?The traffic log, filtered on source, destination and port
Is there a session, and are packets flowing both ways?The session table
Which rule would match this traffic?The policy lookup or packet-tracer function
Which rules are never used?Hit counters per rule

No log entry at all usually means the traffic never reached the firewall — a routing question, not a policy one.

Keeping a rule base healthy. Specific sources, destinations and services in place of "any"; an owner, a reason and an expiry date on every rule; regular removal of rules with no hits; and review of changes before they are applied.

Decision and enforcement journey

Security Policy is verified as a decision/enforcement journey: packet/user/app/resource context → ordered policy match → action/profile → session/enforcement → downstream resource.

ReferenceImportant terms & boundaries1 section · depth on demand

What this shows and what it does not

Approval shows governance intent, but it does not show correct implementation, continued need or effective enforcement.

Operational checks for Security Policy — Boundary and ownership: Anchor the same principal/session/packet and policy version through validation, decision, enforcement and protected-resource outcome. Close with Use packet/session counters for the exact 5-tuple, verify the matched rule/action and translation, then confirm server response and reverse-path/session handling. and state what the evidence does not show.

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 → Security Policy. 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
firewall policy governancesecurity rule policyaccess policy lifecycle
Embedded reference data

Quick lookup tables

Firewalls → Security Policy proof map

Fast scope, effective-policy, runtime-evidence and closure boundaries for Firewalls → Security Policy.

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?