← Network reference library

Wolex engineer reference · Security

IPsec VPN: up, but traffic fails

Separate IKE negotiation, IPsec selectors and real encrypted application traffic.

Download branded PDF

Revision 2.0 · Documentation reviewed 2026-10-10 · Original Wolex reference

IKE negotiationIPsec child SATunnel routingApplication flow
A healthy IKE SA proves negotiation at one layer. Verify the child SA, selectors and traffic through the intended tunnel.

Quick reference

LayerInspectTypical lead
Peer transportReachability / UDP 500 and 4500NAT traversal / filtering
IKEIdentity, proposal, authenticationMismatch or failed authentication
IPsec child SATransforms and traffic selectorsProxy IDs / subnet mismatch
RoutingDestination through tunnelWrong VR or missing route
Policy / NATIntended flow permittedUnexpected translation / deny
TrafficCounters in both directionsReturn routing / MTU / peer issue

What to understand first

01

IKE establishes authenticated keying state. IPsec SAs protect selected traffic; an established IKE SA alone does not prove a useful child SA exists.

02

IKEv1 proxy IDs and IKEv2 traffic selectors describe protected traffic, with negotiation differences between versions and peers. Compare local and remote definitions from both viewpoints.

03

NAT traversal commonly carries IPsec over UDP 4500. Without NAT traversal, ESP uses IP protocol 50, not TCP/UDP port 50. Confirm the negotiated mode before checking filters.

04

Tunnel-interface state, route selection, security policy and reverse path are independent. Overlapping networks or extra encapsulation can create failures despite healthy negotiation.

Commands and interpretation

Inspection commands are read-only unless explicitly labeled otherwise. Capture commands start collection; configuration-mode commits change device state.

PAN-OS

Read-only operational

show vpn ike-sa
show vpn ipsec-sa
show vpn flow

Inspect: Compare gateway/tunnel identity, SA state and counter changes during one controlled attempt.

PAN-OS session inspection

Read-only operational

show session all filter source 198.51.100.10 destination 192.0.2.10
show session id <SESSION_ID>

Inspect: Check actual zones, rule, tunnel egress and translations. Use the correct vsys and routing engine context.

Worked example · Illustrative, not a device capture

Illustrative one-direction VPN traffic

IKE SA: established
IPsec SA: installed
During client attempt:
  Local encrypted packets: increasing
  Local decrypted packets: unchanged

This narrows the investigation toward the remote path or missing return traffic; it does not prove the peer is at fault.

Correlate peer counters, selectors, remote policy and application replies with the same timestamp and tuple.

Troubleshooting sequence

  1. Identify the exact client/server subnets, application tuple and peer/tunnel names.
  2. Check peer transport and IKE state without restarting negotiations.
  3. Compare child-SA selectors and proposals at both ends.
  4. Verify tunnel route, policy/NAT and return route for that flow.
  5. Compare timed encrypted/decrypted counters; if transfers stall, investigate MTU and permitted ICMP feedback.

Common mistakes

  • Treating a green tunnel indicator as end-to-end success.
  • Bouncing every tunnel before collecting failure evidence.
  • Opening ESP by port number or assuming all traffic uses NAT traversal.

Acceptance checks

  • Required subnets and applications pass in both directions.
  • Counters and session evidence identify the intended tunnel.
  • Rekey, recovery and MTU behavior satisfy the approved acceptance plan.

Primary references

Vendor documentation and protocol specifications support this guide. The diagrams, scenarios and troubleshooting sequences are Wolex-authored.