NewIP VPN Notes
VPN

Show crypto IPsec sa: How to Check and Troubleshoot IPsec VPN SAs

By Ethan Marlowe · · 10 min
Show crypto IPsec sa: How to Check and Troubleshoot IPsec VPN SAs

Learn how to use show crypto ipsec sa to verify Cisco IPsec tunnels, interpret counters, and troubleshoot common issues.

The Cisco IOS command show crypto ipsec sa displays the IPsec security associations established for a VPN. Use it to check tunnel endpoints, negotiated transforms, selectors, and inbound and outbound packet counters. It is a key diagnostic command when a site-to-site VPN appears established but traffic is not reaching its destination.

Run the command in privileged EXEC mode on the router or security device, typically with show crypto ipsec sa. To focus on one peer, use the supported peer-specific syntax for your platform, such as show crypto ipsec sa peer <peer-address>. Syntax and available fields can vary by Cisco product and software version, so check the device’s command reference if an option is rejected.

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 `show crypto ipsec sa` reveals and how to interpret it

Field or indicatorWhat it showsHealthy signPossible concernNext check
Local crypto endpointLocal IPsec addressExpected interface and addressWrong or missing addressCheck interface and peer configuration
Remote crypto endpointConfigured peer addressMatches the intended peerUnexpected or unreachable peerVerify peer address and reachability
Security association stateIPsec SA statusSA is establishedSA is missing or inactiveCheck IKE status and negotiation logs
Encapsulation countersOutbound packets protectedCounter increases during trafficStays at zeroCheck routing and crypto policy match
Decapsulation countersInbound packets decryptedCounter increases during trafficStays at zeroCheck peer traffic, SA, and routing
Encapsulation errorsOutbound processing problemsNo unexpected increaseCounter increasesInspect transforms, policy, and logs
Decapsulation errorsInbound processing problemsNo unexpected increaseCounter increasesCheck peer settings and packet integrity
Traffic selectorsTraffic covered by the SAMatch intended local and remote networksMissing or unexpected networksCompare selectors on both peers

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

What the command shows

IPsec uses SAs to define how traffic is protected between endpoints. An SA records details such as the peer, security protocol, encryption and integrity algorithms, and traffic that matches the VPN policy. IPsec generally maintains separate SAs for inbound and outbound traffic.

A typical output includes fields like these:

Output field What it tells you
local crypto endpt. and remote crypto endpt. The local and remote IPsec endpoints
current_peer The peer associated with the displayed SA
transform or esp details The negotiated encryption and integrity protection
inbound esp sas and outbound esp sas Whether SAs exist for receiving and sending protected traffic
#pkts encaps and #pkts decaps Packets protected for transmission and successfully processed on receipt
#pkts encrypt and #pkts decrypt Packets encrypted outbound and decrypted inbound
#pkts dropped Packets discarded by the IPsec process, where reported

Some platforms show additional fields, including tunnel mode, proxy identities, replay information, or packet errors. Interpret each field in the context of the device and software release.

Show crypto IPsec sa: How to Check and Troubleshoot IPsec VPN SAs: Checklist

How to read the packet counters

Counters provide a useful snapshot, but they are not a complete health check. First, generate traffic that should match the VPN’s crypto ACL or traffic selectors. Then run the command again and compare the counters. Clash Meta for iOS: What It Is and How to Use It

  • Encapsulation or encryption counters increase: The device is matching and protecting outbound traffic.
  • Decapsulation or decryption counters increase: The device is receiving and processing protected traffic.
  • Outbound counters rise, but inbound counters do not: Check the remote peer, routing, return traffic, and any upstream filtering.
  • Neither direction increases: Confirm that the test traffic matches the VPN selectors and follows the expected route.
  • Counters increase in both directions, but the application fails: Investigate routing beyond the tunnel, host firewalls, NAT, and application-level behavior.

Counter labels differ across releases, and not every field means exactly the same thing on every platform. Focus on the direction of change after sending a controlled test rather than relying on a single absolute value. Counters may also remain unchanged when no matching traffic is being sent.

Verification workflow for checking an IPsec VPN

StepCheckUseful command or actionExpected resultIf it does not match
1Peer reachabilityTest connectivity to the peerPeer is reachableCheck routing and upstream filtering
2IKE negotiationInspect IKE SA statusIKE SA is establishedReview IKE settings and logs
3IPsec negotiationRun `show crypto ipsec sa`IPsec SA is presentCompare proposals and selectors
4Traffic selectorsReview local and remote networksIntended traffic is includedCorrect crypto ACL or policy
5Outbound trafficGenerate traffic across the VPNEncapsulation counter increasesCheck source, route, and policy match
6Inbound trafficCheck return traffic and countersDecapsulation counter increasesVerify peer traffic and return routing
7ErrorsRecheck error countersNo unexplained growthInspect logs and peer configuration
8PersistenceRepeat checks after a short intervalSAs remain establishedInvestigate flaps, timers, or connectivity

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

A practical verification workflow

Use this sequence to check an IPsec tunnel efficiently: Urban VPN Chrome: How It Works, What to Know, and Whether to Use It

  1. Confirm the peer and endpoints. Check that the remote peer address is the one you expect and that the local and remote crypto endpoints are correct.
  2. Inspect the SAs. Look for inbound and outbound SAs and verify that the transform settings are consistent with the intended VPN configuration.
  3. Generate matching traffic. Send traffic between addresses that should be covered by the VPN policy. A random ping may not match the configured selectors.
  4. Run the command again. Compare encapsulation, encryption, decapsulation, and decryption counters.
  5. Check adjacent layers. If the counters behave unexpectedly, verify routing, access lists, NAT exemptions, and the peer’s configuration.
  6. Review IKE status separately. Use the appropriate IKE status command for your platform. show crypto ipsec sa reports IPsec SAs. It does not provide the full picture of IKE negotiation.

This method distinguishes a missing SA from an established SA that is not carrying the traffic you intended to test.

Common issues and what to check

No SA appears

If no relevant SA is displayed, traffic may not have triggered negotiation, may not match the configured selectors, or the IPsec negotiation may have failed. Confirm that the VPN policy applies to the test traffic and check IKE status and logs for negotiation errors.

An SA exists, but counters stay at zero

The SA may be idle, or the test traffic may be routed elsewhere or excluded by the crypto ACL. Check the source and destination addresses, routing table, and policy matches. Make sure the test originates from a device and interface whose traffic is expected to enter the tunnel.

Outbound traffic increases, but return traffic does not

The local device is sending protected packets, but the expected replies are not being processed. Check the remote peer’s tunnel and selectors, its route back to the source network, and any firewall or upstream device that could block the traffic. Confirm that both sides agree on the protected address ranges. Urban VPN for Edge Extension: Setup, Features, and Safety Tips

Counters rise, but users still cannot connect

Successful IPsec encapsulation and decapsulation do not prove that the end-to-end application path works. Verify that decrypted packets can be routed to their destination and that host firewalls, access rules, NAT, and application services permit them. Also confirm that the return path is symmetric where the design requires it.

The output contains errors or drops

Investigate the reported error counters and recent logs, then check for issues such as mismatched selectors, replay or sequence problems, MTU limitations, or packet filtering. Avoid clearing counters or SAs before capturing the current output, because doing so can remove useful diagnostic evidence or interrupt active traffic.

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

Common IPsec symptoms and safe next checks

SymptomLikely areaFirst checkSafe next actionAvoid
No IPsec SANegotiation or policyCheck IKE status and logsCompare peer and proposal settingsClearing SAs before collecting evidence
SA exists, no outbound packetsTraffic selection or routingCheck encapsulation counterConfirm traffic source, route, and policy matchChanging transforms without evidence
Outbound packets rise, inbound stays stillPeer or return pathCheck peer status and decapsulation counterVerify peer selectors and return routingAssuming encryption alone proves connectivity
Inbound packets rise, application failsRouting or host policyCheck destination route and firewall rulesTrace traffic beyond the tunnelRepeatedly renegotiating the tunnel
Error counters increasePacket handling or mismatchIdentify which error counter changesCompare both peers’ settings and logsIgnoring counters or changing several settings at once
SA repeatedly dropsConnectivity or timersReview logs and SA stabilityCheck link stability and configured lifetimesMaking disruptive changes during active use
Counters stay unchangedNo matching test trafficGenerate traffic for selected networksRecheck counters and selectorsTreating idle counters as proof of failure
Output is unclearCommand or platform differencesConfirm device and command contextUse related status and logging commandsApplying platform-specific syntax blindly

Compiled November 2026; check the provider's site for current details. Urban VPN Extension for Microsoft Edge: Setup, Features, and Privacy

show crypto ipsec sa focuses on the IPsec data plane. Pair it with other read-only checks to understand the complete tunnel:

  • Use an IKE status command to confirm whether the control-plane negotiation is active.
  • Use routing and interface commands to verify the path to the peer and the protected networks.
  • Review the crypto ACL or tunnel policy to confirm which traffic should be protected.
  • Check logs for negotiation failures, policy mismatches, or interface errors.

Avoid repeatedly clearing SAs as a first troubleshooting step. Clearing an SA can force renegotiation and briefly disrupt traffic, while also erasing evidence that could help identify the cause. If a reset is necessary, capture the relevant output first and follow your organization’s change procedure.

Recommendation

Use show crypto ipsec sa before and after sending traffic that should cross the VPN. Confirm the peer, both traffic directions, and whether packet counters change as expected. If the output does not explain the failure, check IKE status, selectors, routing, NAT, and endpoint filtering rather than treating the presence of an SA as proof that the entire VPN path is working.

© 2026 Northlight Network Notes · Northlight Network Notes LLC