手机VPN评测台
VPN

Show crypto IPsec sa: How to Check and Troubleshoot IPsec VPNs

许嘉言··10 min
Show crypto IPsec sa: How to Check and Troubleshoot IPsec VPNs

Learn how to run show crypto ipsec sa, read its output, and troubleshoot Cisco IPsec VPN traffic.

The Cisco command show crypto ipsec sa displays IPsec security associations (SAs), including tunnel endpoints, negotiated settings, and packet counters. Run it to confirm whether a VPN has established IPsec protection and whether traffic is being encrypted and decrypted. If the output is empty, the counters do not change, or packets are dropped, compare the results with IKE status, routing, and the VPN configuration.

IPsec VPN status fields and what they tell you

Field or indicatorWhat it showsHealthy signIf it looks wrongNext check
IKE security associationIKE control-plane stateEstablishedMissing or downCheck peer reachability and IKE settings
IPsec security associationData-plane security stateActive SA presentNo active SACheck negotiation and traffic selectors
Inbound packetsPackets received through the tunnelCounter increases with inbound trafficStays unchangedCheck remote traffic and inbound policy
Outbound packetsPackets sent through the tunnelCounter increases with outbound trafficStays unchangedCheck local traffic and routing
Encapsulated packetsPackets protected for transmissionIncreases when matching traffic is sentNo increaseCheck selectors and outbound policy
Decapsulated packetsProtected packets successfully processedIncreases when peer sends trafficNo increaseCheck peer transmission and inbound processing
Encryption or integrity errorsPacket protection or validation problemsNo recurring errorsErrors increaseCompare transforms and inspect logs
Peer addressRemote VPN endpointExpected peer is shownUnexpected or absent peerVerify configuration and peer reachability

Compiled November 2026; check the provider's site for current details.

VPN prices compared
VPNObfuscationFrom / monthPlanFree planRefundAlipayWeChatUnionPayCryptoWebsite opens in ChinaTrustpilot
ZoogVPNTurn on manually
Shadow
$2.49/mo27 months: $59.99Yes7 days✓✓✓✓Official site blocked; our special link opens (4.4 s)4.2/5 (195 reviews)
NordVPNTurn on manually
Obfuscated Servers / NordWhisper
$3.49/mo27 months: $94.23No30 days?✗✓✓✗ Blocked4.2/5 (51,628 reviews)
ExpressVPN✓ On by default
all servers
$3.00/mo28 months: $84No30 days✗✗✓✗✗ Blocked4.4/5 (29,706 reviews)
Surfshark✓ On by default
Camouflage, with OpenVPN
See siteSee siteNo30 days✗✗✗✓✗ Blocked4.3/5 (31,823 reviews)
Proton VPNTurn on manually
Stealth, free plan too
$2.99/mo12 months: $35.88Yes30 days✗✗✗✓✗ Blocked2.1/5 (1,040 reviews)
Astrill VPNTurn on manually
StealthVPN / OpenWeb
$12.50/mo24 months: $300NoSee site✗✗✗✓✗ Blocked1.3/5 (110 reviews)
Private Internet AccessTurn on manually
Shadowsocks, OpenVPN only
$2.03/mo40 months: $81.2No30 days✗✗✗✗✗ Blocked4.2/5 (11,033 reviews)
CyberGhostTurn on manually
selected servers
$2.19/mo28 months: $61.32No45 days✗✗✗✓✗ Blocked4.0/5 (24,178 reviews)
PureVPNTurn on manually
switch to OpenVPN
$1.69/mo60 months: $101.55No31 days??✗✓✗ Blocked4.4/5 (17,994 reviews)
AdGuard VPN✓ On by default
TrustTunnel
$2.99/mo24 months: $71.76Yes30 days✓✗✓✓Official site blocked; our special link opens (3.7 s)4.3/5 (290 reviews)
MullvadTurn on manually
QUIC / Shadowsocks / LWO
$5.61/mo€5/moNo14 days✗✗✗✓✗ Blocked3.2/5 (192 reviews)
WindscribeTurn on manually
Stealth / WStunnel
$5.75/mo12 months: $69YesSee site✗✗✗✓✗ Blocked4.7/5 (13,355 reviews)
StrongVPNTurn on manually
Scramble, OpenVPN TCP
See siteSee siteNo30 days✓✗✗✗✗ Blocked4.4/5 (2,695 reviews)
LightXtreme 闪连Not listed$7.08/mo12 months: $84.99Yes30 days✓✓✓✓✓ Yes (3.5 s)No page

Prices checked 2026-11-10 on each vendor's pricing page (cheapest long plan, USD). Check the vendor's checkout for the final price.

Obfuscation checked 2026-11-14 on each vendor's site and help center: "on by default" = nothing to set; "turn on manually" = switch protocol or mode in settings; "not listed" = the vendor describes no obfuscation.

Payment methods checked 2026-11-10 on each vendor's payment pages: all 14 take cards and PayPal; ✗ = not listed, ? = the vendor's own pages disagree.

China access: whether the official website opens from mainland China networks (tests the website only, not the VPN connection). Last checked 2026-11-18 01:02 Beijing time.

Trustpilot score and review count checked 2026-11-10.

What the command shows

An IPsec SA is the set of negotiated parameters used to protect traffic between VPN peers. The command reports details for the SAs on the device, often grouped by interface and traffic selector. Output varies by Cisco platform, software release, and whether the VPN uses policy-based or route-based configuration.

Common fields include:

  • Peer address: The remote VPN endpoint.
  • Local and remote identifications: Addresses or subnets covered by the SA.
  • Inbound and outbound SAs: Separate security associations for traffic in each direction.
  • Transform or encryption details: Algorithms and other negotiated protection settings.
  • Encapsulated and encrypted packets: Outbound traffic protected by IPsec.
  • Decapsulated and decrypted packets: Inbound traffic received and processed.
  • Replay or integrity errors: Indicators of packets rejected during security checks.
  • Lifetime and SPI: SA timing information and the Security Parameter Index used to identify an SA.

The displayed values are operational evidence, not a complete explanation of the VPN configuration. A healthy-looking SA does not guarantee that the intended applications can communicate.

Show crypto IPsec sa: How to Check and Troubleshoot IPsec VPNs: Checklist

How to run it

Enter privileged EXEC mode on the Cisco device and issue: FortiGate VPN: How It Works, How to Connect, and What to Know

show crypto ipsec sa

On devices with many tunnels, narrow the output using a supported filter. For example, some Cisco IOS and IOS XE versions allow filtering by peer:

show crypto ipsec sa peer 203.0.113.10

You can also filter by interface or address on platforms that support those options. Check the command reference for the device and software version before relying on a particular filter syntax.

For a quick status check, pair the command with the IKE status command appropriate to the platform. On many IOS and IOS XE devices, this is:

show crypto isakmp sa

For IKEv2, use: Cisco AnyConnect VPN: How to Install, Connect, and Choose the Right App

show crypto ikev2 sa

These commands show the IKE control-plane session; show crypto ipsec sa shows the data-plane SAs that protect traffic.

Ways to run `show crypto ipsec sa`

OptionWhat to runScopeBest forLimitation
All IPsec SAs`show crypto ipsec sa`All configured peersGeneral status checkOutput may be lengthy
One peer`show crypto ipsec sa peer <peer-address>`A specified peerIsolating a tunnelRequires the correct peer address
From privileged EXECRun the command at the device promptCurrent deviceDirect troubleshootingRequires appropriate access
In configuration modeExit to privileged EXEC, then run itCurrent deviceAvoiding mode-related errorsCommand may not work in the wrong mode
Repeat after trafficRun it before and after test trafficCounter changesConfirming packets use the tunnelA quiet tunnel may show no change
Compare both directionsCheck inbound and outbound countersTunnel traffic flowFinding one-way trafficCounters alone do not identify the root cause

Compiled November 2026; check the provider's site for current details.

How to read the packet counters

The most useful initial check is whether traffic counters increase when you generate traffic between addresses covered by the VPN. Clash Meta for iOS: What It Is and How to Use It

What you observe What it may indicate What to check next
Encapsulated and encrypted counters increase The device is sending protected traffic Confirm the remote peer receives and decrypts it
Decapsulated and decrypted counters increase The device is receiving protected traffic Check return routing and the destination host
Outbound counters rise, inbound counters stay flat Local traffic is sent, but replies are not arriving Check the peer, remote routing, and remote-side policy
Inbound counters rise, outbound counters stay flat Protected traffic arrives, but local replies may not match the VPN Check local routing, selectors, and firewall rules
Both directions remain at zero No matching traffic has triggered the SA, or traffic is not reaching the VPN policy Verify test addresses, routes, and crypto selectors
Error or drop counters rise Packets may fail validation or processing Review peer settings, MTU, replay, and integrity details

Counters are cumulative for the current SA. They may reset when the SA is cleared, expires, or is renegotiated. Take two readings a short time apart while running a known test, such as a ping between the intended local and remote hosts. A single snapshot cannot show whether traffic is actively flowing.

Keep in mind that a ping can fail even when IPsec is working. Firewalls, host settings, access-control lists, or an unsupported ICMP policy can block the test. Use an application-level test as well when possible.

Troubleshooting common problems

No IPsec SA appears

An SA may not be created until traffic matches the VPN policy. Generate traffic from a source address in the configured local subnet to a destination in the remote subnet. Then check that the route sends the traffic toward the VPN interface or crypto policy.

If no SA appears after a valid test, verify: Tuxler VPN Extension: Features, Setup, and What to Know

  • The local and remote subnets or traffic selectors match on both peers.
  • The VPN configuration is applied to the correct interface or tunnel.
  • The device has a route to the remote network.
  • An access-control list or firewall rule is not blocking the triggering traffic.
  • The peer address is reachable.

The IKE session is missing or failing

If the IPsec SA is absent, check IKE status first. IKE negotiates the peer relationship and parameters needed to establish IPsec SAs. A failed IKE session can point to reachability problems, authentication mismatches, incompatible proposals, or incorrect pre-shared keys or certificates.

Use the relevant IKE show command and review device logs for negotiation errors. Compare the peer configuration on both ends, including authentication, encryption, integrity, and Diffie-Hellman settings.

Outbound packets increase but replies do not arrive

This often means the local device is protecting traffic, but a return path is missing or the remote side is not accepting or returning it. Check the remote device’s inbound counters, selectors, firewall rules, and routes. Confirm that the remote host’s replies travel back through the VPN rather than through another gateway.

Counters increase, but the application still fails

IPsec counters confirm that packets are being processed by the VPN. They do not prove that every network layer is configured correctly. Check for overlapping subnets, NAT behavior, asymmetric routing, host firewalls, and access-control policies. Also review MTU and fragmentation if small requests work but larger transfers fail. IPsec VPN: How It Works, Benefits, and When to Use It

Show crypto IPsec sa: How to Check and Troubleshoot IPsec VPNs: Key points

Troubleshooting clues and safe next checks

ObservationLikely area to investigateSafe next checkAvoid assuming
No active IPsec SANegotiation or configurationCheck IKE status and logsThat the peer is unreachable
Outbound counter does not increaseLocal traffic, routing, or selectorsGenerate matching traffic and recheckThat encryption is failing
Inbound counter does not increaseRemote traffic or inbound processingAsk the peer to send matching trafficThat the local tunnel is down
Outbound increases; inbound stays flatReturn path or peer-side handlingCompare peer counters and routesThat local outbound traffic arrived
Inbound increases; outbound stays flatLocal traffic or return routingCheck routes and traffic selectorsThat the remote side is at fault
Packet errors increaseTransform mismatch or packet validationCompare settings and inspect logsThat every error has the same cause
Counters stay unchangedNo matching traffic or wrong pathVerify test traffic and routingThat the SA is necessarily broken
State changes after a config editRecent configuration changeReview the change and relevant logsThat a reset is the safest first step

Compiled November 2026; check the provider's site for current details.

A useful diagnostic sequence is:

  1. Confirm peer and IKE status.
  2. Run show crypto ipsec sa and identify the relevant local and remote traffic selectors.
  3. Record the encapsulation and decapsulation counters.
  4. Generate traffic between the intended endpoints.
  5. Run the command again and compare the counters.
  6. Check routes, firewall rules, and the peer’s corresponding output.

Avoid clearing SAs as a first troubleshooting step. Clearing them interrupts or renegotiates active VPN sessions and can briefly disrupt traffic. If a reset is necessary, follow your organization’s change process and use the platform-appropriate command only after collecting the current status and logs. Urban VPN Chrome Extension: Features, Setup, and Privacy Checks

Recommendation

Use show crypto ipsec sa to verify the IPsec data path, not as a standalone health check. Compare its packet counters before and after a controlled traffic test, then confirm IKE status, routes, selectors, and peer-side counters. This approach helps distinguish a tunnel negotiation issue from a traffic, routing, or firewall problem.

© 2026 影川数码评测 · Yingchuan Digital Review Ltd.