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 | Obfuscation | From / month | Plan | Free plan | Refund | Alipay | UnionPay | Crypto | Website opens in China | Trustpilot | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Turn on manually Shadow | $2.49/mo | 27 months: $59.99 | Yes | 7 days | ✓ | ✓ | ✓ | ✓ | Official site blocked; our special link opens (4.4 s) | 4.2/5 (195 reviews) | |
| Turn on manually Obfuscated Servers / NordWhisper | $3.49/mo | 27 months: $94.23 | No | 30 days | ? | ✗ | ✓ | ✓ | ✗ Blocked | 4.2/5 (51,628 reviews) | |
| ✓ On by default all servers | $3.00/mo | 28 months: $84 | No | 30 days | ✗ | ✗ | ✓ | ✗ | ✗ Blocked | 4.4/5 (29,706 reviews) | |
| ✓ On by default Camouflage, with OpenVPN | See site | See site | No | 30 days | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 4.3/5 (31,823 reviews) | |
| Turn on manually Stealth, free plan too | $2.99/mo | 12 months: $35.88 | Yes | 30 days | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 2.1/5 (1,040 reviews) | |
| Turn on manually StealthVPN / OpenWeb | $12.50/mo | 24 months: $300 | No | See site | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 1.3/5 (110 reviews) | |
| Turn on manually Shadowsocks, OpenVPN only | $2.03/mo | 40 months: $81.2 | No | 30 days | ✗ | ✗ | ✗ | ✗ | ✗ Blocked | 4.2/5 (11,033 reviews) | |
| Turn on manually selected servers | $2.19/mo | 28 months: $61.32 | No | 45 days | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 4.0/5 (24,178 reviews) | |
| Turn on manually switch to OpenVPN | $1.69/mo | 60 months: $101.55 | No | 31 days | ? | ? | ✗ | ✓ | ✗ Blocked | 4.4/5 (17,994 reviews) | |
| ✓ On by default TrustTunnel | $2.99/mo | 24 months: $71.76 | Yes | 30 days | ✓ | ✗ | ✓ | ✓ | Official site blocked; our special link opens (3.7 s) | 4.3/5 (290 reviews) | |
| Turn on manually QUIC / Shadowsocks / LWO | $5.61/mo | €5/mo | No | 14 days | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 3.2/5 (192 reviews) | |
| Turn on manually Stealth / WStunnel | $5.75/mo | 12 months: $69 | Yes | See site | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 4.7/5 (13,355 reviews) | |
| Turn on manually Scramble, OpenVPN TCP | See site | See site | No | 30 days | ✓ | ✗ | ✗ | ✗ | ✗ Blocked | 4.4/5 (2,695 reviews) | |
| Not listed | $7.08/mo | 12 months: $84.99 | Yes | 30 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 indicator | What it shows | Healthy sign | Possible concern | Next check |
|---|---|---|---|---|
| Local crypto endpoint | Local IPsec address | Expected interface and address | Wrong or missing address | Check interface and peer configuration |
| Remote crypto endpoint | Configured peer address | Matches the intended peer | Unexpected or unreachable peer | Verify peer address and reachability |
| Security association state | IPsec SA status | SA is established | SA is missing or inactive | Check IKE status and negotiation logs |
| Encapsulation counters | Outbound packets protected | Counter increases during traffic | Stays at zero | Check routing and crypto policy match |
| Decapsulation counters | Inbound packets decrypted | Counter increases during traffic | Stays at zero | Check peer traffic, SA, and routing |
| Encapsulation errors | Outbound processing problems | No unexpected increase | Counter increases | Inspect transforms, policy, and logs |
| Decapsulation errors | Inbound processing problems | No unexpected increase | Counter increases | Check peer settings and packet integrity |
| Traffic selectors | Traffic covered by the SA | Match intended local and remote networks | Missing or unexpected networks | Compare 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.
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
| Step | Check | Useful command or action | Expected result | If it does not match |
|---|---|---|---|---|
| 1 | Peer reachability | Test connectivity to the peer | Peer is reachable | Check routing and upstream filtering |
| 2 | IKE negotiation | Inspect IKE SA status | IKE SA is established | Review IKE settings and logs |
| 3 | IPsec negotiation | Run `show crypto ipsec sa` | IPsec SA is present | Compare proposals and selectors |
| 4 | Traffic selectors | Review local and remote networks | Intended traffic is included | Correct crypto ACL or policy |
| 5 | Outbound traffic | Generate traffic across the VPN | Encapsulation counter increases | Check source, route, and policy match |
| 6 | Inbound traffic | Check return traffic and counters | Decapsulation counter increases | Verify peer traffic and return routing |
| 7 | Errors | Recheck error counters | No unexplained growth | Inspect logs and peer configuration |
| 8 | Persistence | Repeat checks after a short interval | SAs remain established | Investigate 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
- 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.
- Inspect the SAs. Look for inbound and outbound SAs and verify that the transform settings are consistent with the intended VPN configuration.
- Generate matching traffic. Send traffic between addresses that should be covered by the VPN policy. A random ping may not match the configured selectors.
- Run the command again. Compare encapsulation, encryption, decapsulation, and decryption counters.
- Check adjacent layers. If the counters behave unexpectedly, verify routing, access lists, NAT exemptions, and the peer’s configuration.
- Review IKE status separately. Use the appropriate IKE status command for your platform.
show crypto ipsec sareports 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.
Common IPsec symptoms and safe next checks
| Symptom | Likely area | First check | Safe next action | Avoid |
|---|---|---|---|---|
| No IPsec SA | Negotiation or policy | Check IKE status and logs | Compare peer and proposal settings | Clearing SAs before collecting evidence |
| SA exists, no outbound packets | Traffic selection or routing | Check encapsulation counter | Confirm traffic source, route, and policy match | Changing transforms without evidence |
| Outbound packets rise, inbound stays still | Peer or return path | Check peer status and decapsulation counter | Verify peer selectors and return routing | Assuming encryption alone proves connectivity |
| Inbound packets rise, application fails | Routing or host policy | Check destination route and firewall rules | Trace traffic beyond the tunnel | Repeatedly renegotiating the tunnel |
| Error counters increase | Packet handling or mismatch | Identify which error counter changes | Compare both peers’ settings and logs | Ignoring counters or changing several settings at once |
| SA repeatedly drops | Connectivity or timers | Review logs and SA stability | Check link stability and configured lifetimes | Making disruptive changes during active use |
| Counters stay unchanged | No matching test traffic | Generate traffic for selected networks | Recheck counters and selectors | Treating idle counters as proof of failure |
| Output is unclear | Command or platform differences | Confirm device and command context | Use related status and logging commands | Applying 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
Related commands and safe troubleshooting
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.