Policy & Segmentation
Security Policy & Zone-Based Architecture 08
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
Every packet is matched to a session, every session to a rule. Authentication Policy is evaluated before Security Policy. Default rules (bottom of the rulebase) allow intrazone and deny interzone traffic unless overridden. Rules are evaluated left-to-right/top-to-bottom — the first match applies and stops evaluation, so specific rules must precede general ones. Policy Optimizer highlights unused apps/ports so port-based rules can be migrated to App-ID-based ones.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
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
Source: pan-os/11-1/pan-os-admin/policy/security-policy
NAT (Network Address Translation) 09
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
NAT policy rules define which packets get translated and how. Source NAT comes in three flavors: static IP (one-to-one, bidirectional, no port translation — common for servers that must keep a consistent public identity), dynamic IP (pool of public IPs, one-to-one per session but no port sharing, so the pool can exhaust), and dynamic IP and port (DIPP) (many internal hosts share one or a few public IPs by also translating the source port — the default choice for general outbound internet access). Destination NAT inbound-forwards to internal servers, either static (one external IP/port to one internal host) or with a dynamic destination NAT / translated port range for one-to-many load-style mappings. Supported on Layer 3 and virtual-wire interfaces; DIPP oversubscription lets one public IP serve many internal hosts by multiplying available source ports per translated IP.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
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
Source: pan-os/11-1/pan-os-networking-admin/nat
Zone Protection & DoS Protection 10
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
Zone Protection profiles apply per-zone defenses against flood, reconnaissance, packet-based, and non-IP-protocol attacks (one profile can cover multiple similar zones). DoS Protection profiles/rules target specific high-value systems (internet-facing web/DB servers) against flood and session-exhaustion attacks.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
Exam Trap
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.
Self-check: Zone Protection & DoS Protection
Source: ngfw/administration/zone-protection-and-dos-protection
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?
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?
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?
4. Fifty internal hosts need simultaneous outbound internet access, but the organization owns only two public IP addresses. Which NAT type should be configured?
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?
6. An engineer configures DIPP with an aggressive oversubscription ratio to conserve public IPs. Under heavy concurrent load, what risk does this introduce?
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.)
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?
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?