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

VPN & Connectivity

← Back to full guide index

~3 min read
Prerequisites: Access & Identity β€” GlobalProtect (remote-access VPN) is covered there; this module covers site-to-site.

Site-to-Site VPNs (IKE/IPSec) 31

PAN-OS course Β· Site-to-Site VPNsBlueprint 1.6.1 β€” IPSec TunnelsNGFW ENG EXAM

Learning objectives

  • Explain the two-phase IKE/IPSec model (Phase 1 vs. Phase 2)
  • Map each phase to its firewall configuration object
  • Distinguish site-to-site VPN from GlobalProtect remote access

Where GlobalProtect secures individual remote users, site-to-site VPN connects two networks β€” branch to HQ, or on-prem to cloud β€” over an encrypted tunnel built with the industry-standard IKE/IPSec protocol pair.

Why

Sites need to exchange traffic over the public internet without exposing it in the clear, and without the cost/lead-time of dedicated private circuits for every location. IPSec is the standard, vendor-interoperable way to do that.

How

IPSec deliberately splits into two phases because they're solving two genuinely different problems: first, "can I trust that I'm actually talking to the real peer, not an impersonator on the public internet," and only after that's settled, "let's actually build the tunnel that carries real data." Trying to do both at once would mean negotiating data-plane crypto with a peer you haven't verified yet.

  • Phase 1 β€” IKE Gateway object β€” "establish and authenticate the relationship." This negotiates who the peer is (peer IP/identity) and proves it's really them, via either a pre-shared key or certificate authentication, plus the IKE crypto profile (which encryption/hashing/DH-group proposals are acceptable). Nothing about actual user traffic is carried yet β€” this phase produces a secure, authenticated channel that Phase 2 then runs inside.
  • Phase 2 β€” IPSec Tunnel object (Network > IPSec Tunnels) β€” "now actually build the data tunnel." This can only happen once Phase 1's relationship exists, because it's negotiated through that already-authenticated channel. It defines the tunnel interface binding, the IPSec crypto profile for the actual data encryption, and β€” for policy-based peers specifically β€” Proxy IDs, which are traffic selectors that both ends must define identically to agree on which traffic the tunnel is actually supposed to carry. A mismatch here is one of the most common reasons Phase 2 fails even after Phase 1 succeeds.

Once the tunnel is actually up, it behaves like an ordinary tunnel interface from routing's perspective β€” normal Security Policy and zone assignment apply to traffic crossing it exactly as they would for any physical interface, which is why nothing about how you write security rules needs to change just because the traffic happens to be tunneled. Tunnel status, restart, and refresh are all managed from that same IPSec Tunnel configuration point.

Diagrams: Palo Alto Networks Learning Center, PAN-OS course: Site to site vpns. Click an image to enlarge.

Pros

  • Standard IKE/IPSec interoperates with non-Palo-Alto VPN peers (routers, other vendors' firewalls, cloud VPN gateways)
  • Tunnel traffic lands on a normal tunnel interface β€” existing zone/policy model applies unchanged
  • Cheaper and faster to stand up than dedicated private circuits between sites

Cons

  • Phase 1/Phase 2 mismatches (proposals, lifetimes, Proxy IDs) are the single most common cause of tunnels that won't come up
  • Manually configuring many site-to-site tunnels doesn't scale β€” this is exactly the gap GlobalProtect LSVPN was built to close for branch-heavy deployments
  • No inherent QoS/path-selection intelligence β€” a single IPSec tunnel is one static path, unlike SD-WAN's dynamic path selection
Numbers from the course. IKE Gateway Dead Peer Detection: you can set an interval of 2 to 100 seconds to wait after a failed attempt to reach the peer before retrying. The remote firewall must support DPD.

Exam trap

A tunnel that stays down almost always traces back to a Phase 1 or Phase 2 mismatch, not a routing problem: mismatched IKE/IPSec crypto proposals, mismatched lifetimes, or β€” for policy-based peers β€” Proxy IDs that don't mirror each other exactly on both ends. Check show vpn ike-sa / show vpn ipsec-sa before assuming it's a zone or security-policy issue.
Self-check

Q1. A site-to-site tunnel to a third-party router negotiates Phase 1 successfully but Phase 2 never comes up. What's the most likely cause, and which two firewall objects would you compare against the peer's config?

A1. Most likely a Phase 2 (IPSec) mismatch β€” proposal/lifetime or Proxy ID disagreement. Compare the local IPSec Tunnel object's crypto profile and Proxy IDs against the peer's configuration; Phase 1 succeeding rules out the IKE Gateway object as the cause.

Q2. Why can a single site-to-site IPSec tunnel be a worse fit than GlobalProtect LSVPN for a company opening 200 new branch offices?

A2. Site-to-site IPSec tunnels are configured and maintained one peer relationship at a time, so 200 branches means 200 manually managed tunnels. LSVPN exists specifically to let branch/satellite devices auto-onboard against a portal instead of requiring hand-built IKE/IPSec objects per site.

Build, route & troubleshoot an IPSec tunnel β€” exam drill

The three objects, in order:

  1. Tunnel interface (Network > Interfaces > Tunnel) β€” assign to a security zone and a virtual/logical router. IP address is optional but required for tunnel monitoring or running OSPF/BGP over the tunnel.
  2. IKE Gateway β€” Phase 1: peer IP/identity, IKEv2 (preferred), authentication (pre-shared key or certificate), and the IKE Crypto profile (encryption, hash, DH group, lifetime).
  3. IPSec Tunnel object β€” binds the IKE Gateway + the IPSec Crypto profile (Phase 2: ESP/AH, encryption, hash, PFS/DH group, lifetime) + the Tunnel Interface. Add Proxy IDs (one pair per local/remote subnet combination) for policy-based peers (Cisco ASA, most non-PAN devices).

Then: add a route to the remote network via the tunnel interface, and write Security policy.

Security policy β€” two rules are involved: (1) a rule allowing ike and ipsec (or ipsec-esp/ ipsec-esp-udp, UDP 500/4500) between the Untrust zone and the firewall itself (intrazone/local) so the tunnel can establish; (2) a rule permitting the actual user traffic between the internal zone and the tunnel interface's zone.

SymptomCause the exam wants
Tunnel never comes up; log says "NO-PROPOSAL-CHOSEN" in Phase 1IKE Phase 1 mismatch β€” encryption, hash/auth, or DH group differ between peers (also check PSK, peer identity)
Phase 1 up, Phase 2 won't establishIPSec Phase 2 mismatch β€” crypto proposal, PFS group, lifetime, or Proxy IDs not mirrored
Tunnel intermittently drops / re-negotiatesIPSec SA lifetime values mismatched between the two devices
Phase 1 and Phase 2 both "up" but no traffic passesMissing route into the tunnel interface, missing/incorrect Proxy ID, or missing Security policy for the data traffic β€” not a crypto problem
First subnet pair works; a newly added remote subnet fails (peer is policy-based / Cisco ASA)Missing Proxy ID pair for the new subnet combination
Large packets / some apps fail across the tunnelFragmentation β€” lower the tunnel interface MTU (and/or set TCP MSS adjustment) to allow for encapsulation overhead

Tunnel health monitoring: enable Dead Peer Detection (DPD) in the IKE Gateway, and/or a Tunnel Monitor profile (pings an IP across the tunnel and can fail over / disable the route). Pinging from the MGT interface does not test the data-plane tunnel.

πŸ“‹ Master Cheat Sheet: Tunnels & VPN Troubleshooting Domain 1.6 Blueprint
Tunnel TypeUse CaseKey CharacteristicsExam Troubleshooting Rules
IPSec Secure site-to-site & remote access Full payload encryption, IKEv1/IKEv2, supports Post-Quantum PSK (PPK, RFC 8784) Phase 1 establishes secure management channel; Phase 2 establishes data-carrying SAs. Both proposals must match identically.
GRE Multiprotocol / routing encapsulation Encapsulates packets, no native encryption, supports multicast / routing protocols (OSPF, BGP) Usually paired as GRE-over-IPSec when routing protocol transit must be encrypted.

CLI Verification & Troubleshooting Commands

admin@PA-NGFW> show vpn flow Inspects active IPsec and GRE tunnel flows, encapsulated/decapsulated packet counters, and drop statistics.
admin@PA-NGFW> show vpn ike-sa Checks IKE Phase 1 SA status (active, negotiating, failed). Verifies peer identity, DH group, and lifetime.
admin@PA-NGFW> show vpn ipsec-sa Checks IKE Phase 2 IPsec SA status, ESP SPIs, negotiated algorithms, and Proxy ID selectors.
admin@PA-NGFW> test vpn ike-sa gateway <gateway-name> Forces an active IKE Phase 1 re-negotiation to trigger live handshake logs for troubleshooting.

Exam traps

  • Tunnel down = crypto/proposal/PSK mismatch. Tunnel up but no data = routing / Proxy ID / Security policy. Don't conflate them.
  • The tunnel interface IP is normally a private address (or none), never a public IP β€” the public IP lives on the physical interface / IKE Gateway.
  • "Best way to monitor an IPSec tunnel's health" β†’ DPD (or Tunnel Monitoring), not Application Override, not session logging, not MGT-interface ping.
  • Aggressive Mode and disabling PFS are not security improvements β€” reject those answers.

Source: ngfw/help/11-1/network/network-ipsec-tunnels; Palo Alto Next-Gen Firewall (NGFW) Master Cheat Sheet Domain 1.6

Quantum-Resistant & Quantum-Ready VPN 32

PAN-OS course Β· Quantum Ready Virtual Private NetworksBlueprint 1.6.2 β€” Quantum-Resistant CryptographyNGFW ENG EXAM

Learning objectives

  • Explain the "harvest now, decrypt later" threat that motivates quantum-safe VPN
  • Configure post-quantum cryptography on an IPSec tunnel: hybrid key exchange, PQ pre-shared key (RFC 8784), and additional PQC key-exchange rounds (RFC 9370)
  • Describe how Quantum Key Distribution (QKD) plugs into an existing IPSec tunnel
Two different mechanisms, don't mix them up. Post-Quantum Cryptography (PQC) = software algorithms (Kyber/ML-KEM etc.) added to IKEv2 β€” no extra hardware, this is what the dumps overwhelmingly test. Quantum Key Distribution (QKD) = keys sourced from a physical quantum appliance (KME), PAN-OS 12.1+. Both harden the same IPSec tunnel and neither replaces IKE/IPSec.

Post-Quantum Cryptography (PQC) on IKEv2 β€” the exam's focus

Classical key exchange (RSA, Diffie-Hellman, ECDH) is broken by Shor's algorithm on a large quantum computer. Symmetric ciphers like AES-256 are only weakened (Grover's algorithm) β€” so the fix targets the key exchange, not the data cipher, and it requires IKEv2. PAN-OS offers three combinable options, configured in the IKE Crypto profile and the IKE Gateway > Advanced Options:

  • Hybrid / composite key exchange β€” combine a classical DH group with a post-quantum KEM (e.g. Kyber / ML-KEM) so the session key is safe if either one holds. This is the NIST-recommended transitional approach and the usual "correct answer".
  • Post-Quantum Pre-Shared Key (PPK) β€” RFC 8784 β€” mixes an out-of-band PQ pre-shared key into IKEv2 key derivation. Enabled in the IKE Gateway with a PPK ID and value.
  • Additional key-exchange rounds β€” RFC 9370 β€” IKEv2 "multiple key exchanges": add one or more extra PQC key-exchange Rounds in the IKE Gateway Advanced Options / IKE Crypto profile.
Numbers from the course. Post-quantum pre-shared key (PPK): the PPK Key ID can be up to 31 ASCII characters and the secret must be 32 to 128 characters. PAN-OS can auto-generate the secret so you can share it securely with the peer gateway administrator.

Watch: short GUI walkthroughs

PAN-OS course: Quantum ready virtual private networks (3:14)

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

Exam traps (PQC)

  • Right answers: "hybrid key exchange (classical + PQC)", "use NIST-approved PQC algorithms", "IKEv2 with a PQ KEM such as Kyber", "post-quantum pre-shared key", "add PQC rounds in the IKE Gateway".
  • Wrong answers: "ECDH is quantum-safe", "RSA-2048/3072/4096 resists quantum", "AES-128/256-GCM is inherently quantum-resistant", "disable PFS", "use IKEv1", "switch to SSL/TLS VPN because it's quantum-resistant". Disabling PFS is always wrong β€” it matters more post-quantum.
  • QKD requires physical KME hardware; PQC does not. A question that says "no additional hardware" points to PQC.

Quantum Key Distribution (QKD) β€” hardware key sourcing

Traffic encrypted today with classical algorithms could be harvested and stored by an adversary now, then decrypted later once sufficiently powerful quantum computers exist β€” Quantum Key Distribution defends long-lived VPN traffic against that future risk today, not retroactively.

Why

"Harvest now, decrypt later" means data that needs to stay confidential for years (government, defense, long-term IP) is already at risk from classical-crypto interception, even though the decryption capability doesn't exist yet. Waiting until quantum computers are practical is too late for data captured today.

How

Why classical Diffie-Hellman is the actual weak point. Standard IPSec key exchange (classical Diffie-Hellman) is secure today only because factoring/discrete-log problems are computationally infeasible for classical computers β€” but a sufficiently powerful quantum computer is specifically expected to break exactly that class of math. An adversary doesn't need a working quantum computer right now to be a threat: they can capture and store today's encrypted traffic, then decrypt it retroactively once quantum computing catches up. For data that needs to stay secret for years, that future capability is a present-day risk.

How QKD actually replaces the weak link, without replacing the whole system. Quantum Key Distribution support lets the firewall source its IPSec encryption keys from a dedicated quantum-safe hardware appliance β€” a Key Management Entity (KME) β€” instead of, or alongside, classical Diffie-Hellman. The reason this doesn't require a whole new VPN architecture: QKD only replaces how the key material is generated and delivered, not the IPSec tunnel model itself, so everything downstream (the tunnel interface, security policy, zone assignment) works completely unchanged.

Setting this up means defining a QKD profile (Device > Setup > Quantum) that points at a specific KME: its URL, the firewall's own Security Application Entity (SAE) ID (identifying this firewall to the KME), and a full certificate trust chain between firewall and KME (local certificate, KME CA certificate, KME server certificate) β€” because the key delivery channel itself has to be authenticated, or you'd just be trading one trust problem for another. Once configured, the quantum-safe keys the KME hands over feed directly into the site-to-site IPSec tunnel's key material, hardening that tunnel against future quantum cryptanalysis today, years before the actual quantum threat materializes.

Diagrams: Palo Alto Networks Learning Center, PAN-OS course: Quantum ready virtual private networks. Click an image to enlarge.

Pros

  • Defends against "harvest now, decrypt later" for traffic being captured today
  • Layers onto the existing IPSec tunnel model rather than requiring a new VPN architecture
  • Certificate-based trust to the KME keeps key delivery itself authenticated

Cons

  • Requires physical QKD hardware (a KME appliance) β€” this isn't a pure software/licensing feature
  • PAN-OS 12.1+ only, so it isn't available on older deployed code without an upgrade
  • Realistically relevant only for organizations with genuinely long-horizon confidentiality needs, not general-purpose VPN traffic

Exam trap

QKD in PAN-OS is a key-sourcing mechanism layered onto the existing IPSec tunnel model β€” it does not replace IKE/IPSec, add a new tunnel type, or work without physical KME hardware. Don't confuse it with a purely software/licensing feature.
Self-check

Q1. What specific future risk does "harvest now, decrypt later" describe, and why does it matter for data being encrypted today?

A1. An adversary captures and stores classically-encrypted traffic today, intending to decrypt it once a sufficiently powerful quantum computer exists. It matters now β€” not just in the future β€” because any data with a long confidentiality lifetime (years) is already exposed the moment it's captured, regardless of when it's eventually decrypted.

Q2. Which two categories of things does a QKD profile need to define to connect a firewall to a KME?

A2. (1) Connection details β€” the KME's URL and the firewall's local SAE ID; (2) certificate trust β€” the firewall's local certificate plus the KME's CA and server certificates.

Source: ngfw/help/12-1/device/device-setup-quantum

GlobalProtect Portals, Gateways & Split Tunneling 33

Palo Alto Professional Video SeriesBlueprint 1.5 β€” GlobalProtectNGFW ENG EXAM

Learning objectives

  • Configure GlobalProtect Portal & Gateway roles, SSL/TLS profiles, and client authentication
  • Implement Single Sign-On via Authentication Override Cookies between Portal and Gateway
  • Master Split Tunneling configuration for Subnets, Domains, Applications, and High-Bandwidth Video
  • Avoid common deployment pitfalls (IP Pool mutual exclusivity, dual-location data collection)

GlobalProtect provides enterprise remote-access VPN by separating configuration delivery (Portal) from network tunnel termination (Gateway). Understanding how these components interact and how split tunneling conserves bandwidth is critical for the NGFW Engineer exam.

Why

Remote users need secure access to internal resources while avoiding latency and bandwidth bottlenecks caused by backhauling non-sensitive public web or streaming video traffic.

How

Portal vs. Gateway Roles:

  • Portal (Control Plane): Exposes port 443 on its assigned interface. Provides the web application for downloading the agent client software and pushes client app configurations (gateway lists, authentication profiles, HIP collection rules, disconnect timeouts).
  • Gateway (Data Plane / Tunnel Termination): Exposes port 443 and IPSec (UDP 500/4500). Terminates IPSec/SSL tunnels, assigns IP addresses from client IP pools, and routes traffic through logical tunnel interfaces (e.g. tunnel.2) bound to security zones (e.g., GP-Users).

Single Sign-On with Authentication Override Cookies:

To avoid requiring users to enter credentials twice (once for the portal and once for the gateway), configure the Portal to Generate cookie and the Gateway to Accept cookie. Both must use the exact same certificate to encrypt/decrypt the cookie payload. If portals and gateways reside on separate appliances, this certificate must be imported onto both devices.

Split Tunneling Architecture:

  • Include Subnets / Domains / Apps: Explicitly specifies traffic that must enter the VPN tunnel for firewall security policy inspection.
  • Exclude Subnets / Domains / Apps: Directs traffic (such as *.office365.com or Microsoft Teams) to bypass the tunnel and egress directly via the client's local internet gateway.
  • Video Traffic Exclusion: Uses App-ID signatures (e.g., YouTube, Dailymotion) to strip video streaming out of the tunnel, preventing bandwidth exhaustion on enterprise WAN links.

Pros

  • App-ID video and SaaS exclusions prevent corporate tunnel bandwidth exhaustion
  • Authentication override cookies eliminate redundant credential prompts for end users
  • Tunnel mode allows applying stateful Security Policies to remote user zones

Cons

  • Configuring IP pools in both global gateway settings and client settings causes commit errors
  • Registry key data collection requires configuration in two separate portal menus
  • Embedded browser may fail with complex SAML IdP redirects unless default browser is enabled

Exam trap & Configuration Gotchas

  • IP Pool Mutual Exclusivity: Client IP pools can be defined globally on the Gateway tab or inside individual Agent Client Settings profiles, but not both. Configuring pools in both locations causes a commit validation failure.
  • Dual-Location Host Data Collection: When collecting custom registry keys or processes for HIP, the registry paths must be added in two places: Portal > Data Collection and Portal > Agent > App Config > Data Collection.
  • App-ID Security Rule Dependencies: When permitting GlobalProtect through a firewall rule, allow panos-globalprotect (which automatically pulls ssl dependency) AND ipsec-esp-udp for tunnel mode.
Self-check

Q1. What happens if an engineer configures client IP pools both globally on the Gateway tab and inside an Agent Client Settings profile?

A1. The firewall commit fails with a validation error stating that global and client setting IP pools are mutually exclusive.

Q2. Which split tunneling option allows YouTube traffic to bypass the VPN tunnel without unencrypting client web traffic?

A2. Video Traffic Exclusion under Gateway split tunneling, which uses App-ID signatures to identify and bypass video streams.

Source: Palo Alto Professional Video Series (VID5, VID6, VID7); ngfw/help/11-1/globalprotect

Module Quiz

1. An engineer builds a new site-to-site VPN to a partner organization's Cisco router as a policy-based peer. Phase 1 negotiates successfully, and the engineer has already confirmed the IPSec crypto proposal and lifetime match on both ends. Phase 2 still never establishes. What is the most likely remaining mismatch to check?

Phase 1 succeeding rules out the IKE Gateway/PSK; with crypto proposal and lifetime already confirmed to match, a Proxy ID mismatch is the classic remaining Phase 2 blocker for policy-based peers.

2. A retailer is opening 200 new branch stores over the next year and wants each new store's firewall to automatically establish a tunnel back to headquarters, without an engineer hand-building an IKE Gateway and IPSec Tunnel object for every site. Which approach fits, and why is manual site-to-site IPSec a poor match here?

LSVPN lets satellite firewalls auto-onboard against a portal instead of an engineer hand-building tunnel objects per site; manual IPSec tunnels don't scale to that headcount since each is its own object pair.

3. Once a site-to-site IPSec tunnel is up between HQ and a cloud VPC and traffic starts flowing across it, how does that traffic get evaluated for security policy?

The tunnel interface behaves like any other interface for zone assignment and Security Policy purposes β€” there is no separate VPN-only policy engine.

4. A newly built site-to-site tunnel refuses to come up. Before assuming it's a routing or zone problem, the on-call engineer runs show vpn ike-sa and show vpn ipsec-sa. Which two are genuinely common root causes worth checking first? (Choose two.)

A tunnel that stays down almost always traces back to a Phase 1/Phase 2 mismatch β€” crypto proposals, lifetimes, or Proxy IDs β€” not a management-interface or content-update issue.

5. A defense contractor transmits data today that must remain confidential for at least 20 years. Security argues the current classical-crypto VPN tunnels are already at risk, even though no quantum computer capable of breaking them exists yet. What threat model are they describing, and why does it matter now rather than only once quantum computers mature?

"Harvest now, decrypt later" means data with a long confidentiality lifetime is exposed the moment it's captured with classical crypto, regardless of when decryption capability eventually arrives.

6. An engineer is configuring Quantum-Ready VPN for the first time and needs to connect the firewall to a Key Management Entity (KME). What two categories of settings does the QKD profile need, and where does trust between firewall and KME come from?

A QKD profile defines connection details (KME URL, local SAE ID) and certificate trust (local cert plus KME CA and server certs) β€” the same certificate-based model used to authenticate other trusted infrastructure, applied here to key delivery.

7. A security architect is evaluating whether to enable Quantum-Ready VPN on a pair of firewalls running PAN-OS 11.1 that currently terminate a standard IPSec tunnel to a partner. What has to be true before this is even possible?

QKD has real prerequisites: PAN-OS 12.1+ and physical KME hardware. It is not a software-only toggle and it doesn't replace the existing IKE/IPSec tunnel model.

8. A company has exactly one always-on connection between its data center and a single cloud VPC, and separately a government contract requiring 25-year confidentiality for data crossing that link. Which two statements correctly describe how to design this? (Choose two.)

A single stable link is exactly what hand-configured IPSec is good at β€” LSVPN solves the many-sites onboarding problem, not confidentiality horizon. QKD layers quantum-safe key sourcing onto the existing tunnel model rather than replacing it.

9. Which two statements correctly describe the Security policy requirements for an IPSec tunnel to a third-party gateway? (Choose two.)

Nothing about IPSec traffic is exempt from the normal default-deny/direction-aware rulebase β€” you need explicit rules for both directions, and explicit rules permitting IKE/ESP to the external interface before the tunnel can even negotiate.

10. A site-to-site IPSec tunnel to a third-party gateway (e.g. a Cisco ASA) is failing to establish, and routing to the peer is confirmed correct. What's the most likely cause?

Proxy IDs (traffic selectors) define which subnet pairs are "interesting traffic" for the SA β€” if the two sides don't agree on them, phase 2 negotiation fails even with correct routing and reachability.

11. For which two purposes does a tunnel interface need an IP address assigned? (Choose two.)

An IP on the tunnel interface is what lets OSPF/BGP form adjacencies over the tunnel and what tunnel-monitoring pings target to detect a dead path β€” routing and health-checking, not peer addressing or User-ID.

12. Which IKE Gateway configuration enables post-quantum key exchange for a VPN between two PAN-OS firewalls?

Post-quantum key exchange on PAN-OS is the PQ KEM (Key Encapsulation Mechanism) option under IKEv2 Preferred, with "Rounds" configured β€” a long PSK or a strong cipher alone doesn't make key exchange quantum-resistant.