Revision Guide Β· Certified Next-Generation Firewall (NGFW) Engineer

Policy & Segmentation

← Back to full guide index

~3 min read
Prerequisites: Foundations, Traffic Classification β€” zone/policy rules match on App-ID/User-ID output.

Security Policy & Zone-Based Architecture 08

NGFW ENG EXAM

Learning objectives

  • Explain how zones express trust boundaries and why that scales better than per-interface ACLs
  • Describe the rulebase evaluation order, including the role of Authentication Policy and the implicit intrazone-allow/interzone-deny defaults
  • Use Policy Optimizer to identify port-based rules that can be safely migrated to App-ID-based rules

Security rules decide whether to allow or block a session using attributes like source/ destination zone, IP, application, user, and service β€” evaluated top-to-bottom, first match wins.

Why

Zones let you express "trust boundaries" (e.g. Trust, DMZ, Untrust) instead of writing rules per interface/subnet, and they keep the rulebase readable as the network grows.

How

The evaluation order, and why each stage happens where it does. Every packet first gets matched to a session (so the firewall is always reasoning about a session, not individual packets in isolation), and every session then gets matched against the rulebase. Authentication Policy, if configured, runs before Security Policy β€” the firewall has to know who's making the request before it can apply a rule that might depend on user identity. Once identity (if any) is settled, rules are checked top-to-bottom, and the very first rule that matches wins and stops evaluation entirely β€” nothing below it is even considered for that session. This single fact is what makes rule order just as important as rule content: a broad, permissive rule sitting above a narrow, restrictive one will silently swallow the traffic the narrow rule was written to catch, because evaluation never reaches the narrow rule at all.

The default rules at the very bottom β€” what they mean in practice. If nothing above matches, two implicit defaults apply: intrazone traffic (same zone to same zone) is allowed, interzone traffic (different zones) is denied. This reflects an assumption baked into the zone model itself β€” that everything inside one zone shares a similar trust level, so traffic between two hosts in the same zone is assumed benign by default, while traffic crossing a trust boundary is assumed risky until a rule says otherwise. The practical trap: if you lump hosts of genuinely different trust levels into one zone (say, servers and workstations both in "Trust"), that default intrazone-allow quietly permits traffic between them that you probably didn't intend to allow β€” the fix is finer-grained zone design, not just remembering the default exists.

Policy Optimizer β€” closing the loop on rule hygiene. Over time, rulebases built on ports/IPs accumulate rules nobody's sure are still needed, and broad "allow any app" rules hide what traffic is actually flowing. Policy Optimizer analyzes real traffic against existing rules and highlights which specific apps and ports are actually being used by a given rule, which lets you tighten a broad port-based rule into a precise App-ID-based one (or retire it entirely if nothing's actually using it) β€” without guessing.

Diagrams: Palo Alto Networks Learning Center, PAN-OS course: Security policy rules. Click an image to enlarge.

Pros

  • Zone model scales far better than per-IP/interface ACLs
  • Single rule can combine zone + app + user + content-inspection profile
  • Policy Optimizer actively helps shrink an overgrown, insecure rulebase

Cons

  • Rule order matters β€” a broad rule placed too high silently shadows more specific ones below it
  • Default intrazone-allow can be a blind spot if a zone spans multiple trust levels
  • Rulebases that grow organically without audit comments/tags become hard to safely change later

Watch: short GUI walkthroughs

PAN-OS course: Security policy rules (1:47)
PAN-OS course: Security policy rules (2:04)
PAN-OS course: Security policy rules (2:47)

Clips from the Palo Alto Networks Learning Center. They load only when you press play.

Exam Trap

A broad rule placed too high in the rulebase silently "shadows" more specific rules below it β€” traffic matches the first rule top-to-bottom and stops evaluating, so the more specific rule underneath never fires even though it looks correct in isolation. Always check rule order, not just rule content.

Self-check: Security Policy & Zone-Based Architecture
Q1. An admin adds a new, more specific "deny FTP from Contractors" rule below an existing broad "allow any Trust-to-Untrust" rule. Contractor FTP traffic still gets through β€” why?
A: Rules are evaluated top-to-bottom, first match wins. The broad "allow any" rule above it already matches and allows the traffic, so the deny rule below is never reached β€” it must be moved above the broad allow rule.
Q2. Two hosts in the same zone need to be blocked from talking to each other by default β€” will PAN-OS do this out of the box?
A: No. The default rulebase allows intrazone traffic and denies interzone traffic unless overridden β€” same-zone traffic needs an explicit deny rule (or finer-grained zone/subzone design) to be blocked.

Zones, PBF, custom App-ID & EDLs β€” exam drill

  • Zone rules: a zone groups interfaces of the same type (all Layer 3, all Layer 2, or all virtual wire); an interface belongs to exactly one zone; an interface with no zone passes no traffic. Zone types: Layer 3, Layer 2, Virtual Wire, Tap, External (inter-VSYS, stays on the box), and Tunnel. "Which two zone types are valid" answers come from that list.
  • Best-practice zone design: dedicated Trust / Untrust / DMZ (and a dedicated Management zone), internet-facing interfaces in Untrust, then policy between zones. Overlapping subnets across zones and "all interfaces in one zone" are wrong answers.
  • Policy-Based Forwarding (PBF): overrides the routing table for matched traffic. A valid PBF rule needs match criteria (source zone, source address, optionally user/application/service/destination) and an action defining the egress/forwarding path β€” an egress interface and next hop (or "discard" / "no PBF"). Egress interface is the field the exam highlights as required.
  • Custom application on a proprietary protocol / non-standard port (e.g. an in-house app on TCP 8443 not in App-ID): create a custom application (Objects > Applications) with the port and, ideally, a signature, then allow it in policy. Application Override is the alternative β€” it forces the traffic to a named app and skips L7/App-ID inspection (use for performance or truly opaque internal traffic), so it's the weaker answer when identification/inspection is wanted.
  • Block a dynamically-changing set of malicious domains/URLs (IPs change often): an External Dynamic List (EDL) of type URL/domain, refreshed on a schedule and referenced in Security policy or a URL Filtering profile. EDLs also come in IP and domain types. A Dynamic Address Group is tag-driven and IP-based, so it's the wrong pick when the identifier is a URL/domain.

Source: pan-os/11-1/pan-os-admin/policy/security-policy; pan-os-admin/policy/policy-based-forwarding; pan-os-admin/app-id/create-a-custom-application; pan-os-admin/policy/use-an-external-dynamic-list-in-policy; practice-set synthesis

πŸ“‹ Cheat Sheet β€” Zones Domain 1.2

Every data interface must belong to a zone. Zone types: L3, L2, Virtual Wire, Tunnel. Traffic between zones requires explicit policy. Best practice: least privilege zones, avoiding "any".

⌨️ CLI Verification

CommandPurpose
set zone Trust network layer3 ethernet1/2Assign interface to zone
⚠️ Exam Trap: Misconfigured zones are the #1 common cause of traffic failure on the exam. Intrazone traffic is allowed by default, interzone traffic is denied by default.

NAT (Network Address Translation) 09

NGFW ENG EXAM

Learning objectives

  • Distinguish static, dynamic-IP, and dynamic-IP-and-port (DIPP) source NAT
  • Explain how destination NAT rules map to internal servers, one-to-one or one-to-many
  • Describe NAT rule evaluation order and how it relates to Security Policy evaluation

NAT translates private, non-routable addresses to routable ones β€” and, on PAN-OS, also handles IPv4/IPv6 interop (NAT64) and IPv6 prefix translation (NPTv6). Like Security Policy, NAT rules are evaluated top-to-bottom with first-match-wins, but against a separate rulebase evaluated before the security rule lookup β€” the firewall determines the translation first, then matches Security Policy against the resulting (post-NAT for destination, pre-NAT for source) addresses.

Why

Conserves public IPv4 space, hides internal addressing from the outside world, resolves overlapping-subnet conflicts, and provides a migration path to IPv6.

How

Source NAT β€” three flavors, each solving a different constraint:

  • Static IP β€” a fixed one-to-one, bidirectional mapping with no port translation. Used when a host needs a consistent, predictable public identity β€” a server that partners connect to by a known address, where the public IP itself is effectively part of the service's identity.
  • Dynamic IP β€” draws from a pool of public IPs, still one internal host per public IP per session (no port sharing). This solves "I have more internal hosts than one public IP can represent," but only up to the size of the pool β€” run more concurrent sessions than you have pool addresses, and new sessions fail until one frees up.
  • Dynamic IP and Port (DIPP) β€” the same pool idea, but now also translates the source port, which is what actually solves the scaling problem: because a single public IP has roughly 64,000 possible source ports, many, many internal hosts can share just one or a few public IPs simultaneously, each session distinguished by its unique port rather than needing its own IP. This is why DIPP is the default choice for ordinary outbound internet access β€” it's the only one of the three designed to scale hosts-to-IPs at a large ratio.

Destination NAT β€” the inbound direction, for traffic reaching your own servers. A static mapping forwards one external IP/port to one specific internal host β€” a public-facing web server, say. A dynamic destination NAT mapping (with a translated port range) instead spreads incoming connections across several internal hosts, a one-to-many pattern useful for simple load distribution without a dedicated load balancer.

NAT is supported on Layer 3 and virtual-wire interfaces, and DIPP oversubscription pushes the port-sharing idea further still β€” multiplying how many source ports are available per translated IP so an even larger ratio of internal hosts can share the same small public IP pool, at the cost of exhausting that larger port pool faster under genuinely heavy concurrent load.

Diagrams: Palo Alto Networks Learning Center, zone-security-security-and-nat-policies: Nat policy rules. Click an image to enlarge.

Pros

  • Conserves public IPs and obscures internal topology
  • Solves duplicate-subnet conflicts during mergers/acquisitions
  • NAT64/NPTv6 support smooths IPv6 migration

Cons

  • NAT and Security Policy are evaluated separately β€” rules must be written against the correct (pre- or post-NAT) address, a common source of misconfiguration
  • DIPP oversubscription, if pushed too aggressively, can exhaust port pools under heavy load
  • Adds a layer of indirection that complicates troubleshooting and logging correlation

Watch: short GUI walkthroughs

Zone security and NAT course: Nat policy rules (1:38)
Zone security and NAT course: Nat policy rules (3:03)

Clips from the Palo Alto Networks Learning Center. They load only when you press play.

Exam Trap

NAT and Security Policy are separate rulebases β€” a classic exam (and real-world) mistake is writing the security rule against the wrong address. Destination NAT rules are matched and applied first, so the Security Policy rule must reference the original (pre-NAT) destination, not the translated internal address, while the source side of a security rule is also always evaluated pre-NAT.

Self-check: NAT
Q1. You configure destination NAT to forward 203.0.113.10:443 to an internal web server at 10.1.1.50:443. What destination address should the matching Security Policy rule use?
A: 203.0.113.10 (the original, pre-NAT destination) β€” the firewall evaluates the security rule against the original packet header, not the translated one, even though NAT translation happens first in packet processing order.
Q2. Fifty branch office users need outbound internet access but you only have two public IPs. Which source NAT type fits, and why?
A: Dynamic IP and Port (DIPP) β€” it lets many internal hosts share a small pool of public IPs by also translating the source port, unlike dynamic IP (which is still one-to-one per session and can exhaust a small pool).

Source: pan-os/11-1/pan-os-networking-admin/nat

πŸ“‹ Cheat Sheet β€” NAT Domain 1

NAT order of operations on PAN-OS: destination NAT is applied BEFORE security policy lookup, source NAT is applied AFTER.

⚠️ Exam Trap: When troubleshooting NAT rules, remember the security policy sees the ORIGINAL source IP but the TRANSLATED destination IP.

Zone Protection & DoS Protection 10

No license requiredNGFW ENG EXAM

Learning objectives

  • Differentiate Zone Protection profiles (whole-zone) from DoS Protection profiles/rules (specific critical systems)
  • List the attack categories a Zone Protection profile can defend against
  • Explain why default thresholds usually need tuning per environment

Where Security Policy controls which traffic is allowed, Zone/DoS Protection guards against volumetric and reconnaissance attacks that try to overwhelm the network or specific hosts before policy even matters.

Why

Segmenting a network into zones reduces attack surface, but the zone boundaries themselves (and critical servers behind them) still need defense against floods, port scans, and non-IP protocol abuse.

How

These two features are easy to conflate because they sound similar and both defend against similar attack types, but they operate at genuinely different scopes β€” that difference is the whole point of having both rather than just one:

  • Zone Protection profiles β€” "defend the boundary itself, broadly." Attached to an entire zone, these defend against flood attacks (SYN floods, UDP/ICMP floods), reconnaissance (port scans, host sweeps β€” attackers mapping out what's alive before attacking it), packet-based attacks (malformed packets designed to exploit parsing bugs), and non-IP-protocol abuse. One profile can be reused across multiple zones with similar exposure (e.g. every internet-facing zone), which is efficient when you have several zones that face the same class of threat.
  • DoS Protection profiles/rules β€” "defend one specific, high-value system, precisely." Attached via a DoS Protection Policy rule to a specific address β€” an internet-facing database server, for instance β€” rather than to a whole zone. This exists because a zone-wide profile can't express "this one server matters more than everything else in the zone and needs tighter, dedicated flood/session-exhaustion thresholds" β€” DoS Protection is the mechanism for exactly that finer granularity.

Both operate before Security Policy is ever consulted β€” they're a first line of defense against volumetric/reconnaissance abuse that doesn't need App-ID or user context to recognize, so there's no reason to wait for the rest of the classification pipeline to run first.

Diagrams: Palo Alto Networks Learning Center, protection-profiles-for-zones-and-dos-attacks: Zone protection profiles; protection-profiles-for-zones-and-dos-attacks: Dos protection profiles. Click an image to enlarge.

Pros

  • Included at no extra license cost
  • Granular: whole-zone profiles plus per-critical-device DoS rules
  • Stops reconnaissance and floods before they reach application-layer inspection

Cons

  • Consumes dataplane CPU alongside decryption and other services β€” undersized hardware needs active monitoring
  • Thresholds need tuning per environment; defaults can be too loose or too aggressive

Watch: short GUI walkthroughs

Zone and DoS protection course: Zone protection profiles (3:19)
Zone and DoS protection course: Zone protection profiles (3:04)
Zone and DoS protection course: Zone protection profiles (0:46)

Clips from the Palo Alto Networks Learning Center. They load only when you press play.

Exam Traps

  • Zone Protection and DoS Protection are commonly confused: Zone Protection profiles attach to a zone and defend the network broadly (floods, recon, packet-based, non-IP attacks); DoS Protection profiles/rules attach to specific addresses (e.g. one internet-facing server) via a DoS Protection Policy rule. Enabling one does not enable the other, and both operate before Security Policy is ever consulted.
  • Zone Protection profile has five sections: Flood Protection, Reconnaissance Protection, Packet-Based Attack Protection, Protocol Protection (non-IP), and Ethernet SGT Protection. Options for spoofed IP addresses and split-handshake session attempts live in the Packet-Based Attack Protection section (IP Drop / TCP Drop).
Self-check: Zone Protection & DoS Protection
Q1. You want to protect one specific internet-facing database server from a SYN flood without changing behavior for the rest of the DMZ zone. What do you configure?
A: A DoS Protection profile and rule targeting that server's specific address, not a Zone Protection profile β€” Zone Protection would apply to the entire zone, not just that host.
Q2. Does Zone Protection require a subscription license?
A: No β€” Zone Protection and DoS Protection are included at no extra license cost, unlike Threat Prevention or WildFire.

Source: ngfw/administration/zone-protection-and-dos-protection

πŸ“‹ Cheat Sheet β€” Zone Protection Domain 1

Zone Protection profiles protect the zone itself from floods (SYN, UDP, ICMP), reconnaissance (port scans), and packet-based attacks.

Note: Zone Protection is applied to the ingress zone.

Module Quiz

1. Two Security policy rules could both match a session: a broad "allow any" rule near the top of the rulebase, and a specific deny rule several positions below it. Which rule actually applies to matching traffic?

PAN-OS evaluates the rulebase top-to-bottom and stops at the first match β€” a broad rule placed too high silently shadows more specific rules below it, a very common misconfiguration.

2. A newly stood-up zone has no explicit intrazone or interzone Security policy rules configured yet. By default, how does PAN-OS handle traffic between hosts in the same zone versus traffic crossing zones?

The implicit default rules at the bottom of the rulebase allow intrazone-default and deny interzone-default traffic unless explicitly overridden β€” a blind spot when a single zone spans multiple trust levels.

3. An engineer inherits a rulebase full of legacy port-based rules and wants to identify which ones can be safely converted to App-ID-based rules without breaking production traffic. Which built-in tool should they use?

Policy Optimizer analyzes real traffic hit counts against each rule and highlights port-based rules whose observed applications could be safely migrated to App-ID-based matching.

4. Fifty internal hosts need simultaneous outbound internet access, but the organization owns only two public IP addresses. Which NAT type should be configured?

DIPP lets many internal hosts share a small pool of public IPs by multiplexing the source port as well as the address, which plain Dynamic IP (without port translation) cannot do at this ratio.

5. A Security policy rule needs to match inbound traffic destined for an internal server that sits behind a destination NAT rule translating a public IP to the server's private IP. Which destination address should the Security policy rule reference?

Security policy is evaluated against the original (pre-NAT) destination address even though NAT translation is applied as part of the same packet-processing flow β€” a classic misconfiguration source when engineers write policy against the post-NAT address instead.

6. An engineer configures DIPP with an aggressive oversubscription ratio to conserve public IPs. Under heavy concurrent load, what risk does this introduce?

Pushing DIPP oversubscription too aggressively can exhaust the shared port pool for a translated IP under heavy concurrent session load, causing new outbound connections to be dropped.

7. While investigating a SYN flood attack, an administrator discovers legitimate client traffic is also being dropped by an existing DoS/Zone Protection configuration set to Random Early Drop. Which two actions would specifically limit drops to only the attacking sessions? (Choose two.)

SYN Cookies validates the TCP handshake before committing session resources, so only connections that fail the handshake are dropped, unlike Random Early Drop, which drops traffic probabilistically and can catch legitimate sessions.

8. A customer asks whether enabling Zone Protection and DoS Protection profiles requires a separate paid subscription like Threat Prevention. What is the accurate answer?

Zone Protection and DoS Protection profiles are both core NGFW capabilities included with the platform, unlike Threat Prevention, WildFire, and other content-based subscriptions.

9. An organization is migrating a legacy IPv4-only application environment and needs traffic between IPv6-only clients and IPv4-only servers to interoperate. Which PAN-OS feature addresses this?

NAT64 (with NPTv6 for prefix translation) provides the IPv4/IPv6 interoperability and migration path; the other options address entirely different problems.

10. In a Zone Protection profile, under which protection type would you configure defenses against spoofed IP addresses (IP Drop) and split-handshake TCP session establishment (TCP Drop)?

Spoofed-IP checks and Split Handshake protection both live under Packet-Based Attack Protection (its IP Drop and TCP Drop tabs specifically) β€” don't confuse this with Protocol Protection, which is actually about allow/deny-listing non-IP Layer 2 protocols (AppleTalk, Banyan VINES, SCADA/GOOSE) on a VLAN or virtual wire, a completely different attack surface.