Use it to answer "is the firewall blocking it?", and when adding, reviewing or cleaning up rules.
Security Policy
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.
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.
traffic attributes → first matching rule → action
Context & applicabilityCommon mistakes · platform/version boundaries
- "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.
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.
Operational reference
Fast context before you go deeper.
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
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 · 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.
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.
show security policies (Junos)— policyshow 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.
| Question | Where |
|---|---|
| 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
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 → 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%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 → Security Policy proof map
Fast scope, effective-policy, runtime-evidence and closure boundaries for Firewalls → Security Policy.
| 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 |