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 indicator | What it shows | Healthy sign | If it looks wrong | Next check |
|---|---|---|---|---|
| IKE security association | IKE control-plane state | Established | Missing or down | Check peer reachability and IKE settings |
| IPsec security association | Data-plane security state | Active SA present | No active SA | Check negotiation and traffic selectors |
| Inbound packets | Packets received through the tunnel | Counter increases with inbound traffic | Stays unchanged | Check remote traffic and inbound policy |
| Outbound packets | Packets sent through the tunnel | Counter increases with outbound traffic | Stays unchanged | Check local traffic and routing |
| Encapsulated packets | Packets protected for transmission | Increases when matching traffic is sent | No increase | Check selectors and outbound policy |
| Decapsulated packets | Protected packets successfully processed | Increases when peer sends traffic | No increase | Check peer transmission and inbound processing |
| Encryption or integrity errors | Packet protection or validation problems | No recurring errors | Errors increase | Compare transforms and inspect logs |
| Peer address | Remote VPN endpoint | Expected peer is shown | Unexpected or absent peer | Verify configuration and peer reachability |
Compiled November 2026; check the provider's site for current details.
| 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 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.
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`
| Option | What to run | Scope | Best for | Limitation |
|---|---|---|---|---|
| All IPsec SAs | `show crypto ipsec sa` | All configured peers | General status check | Output may be lengthy |
| One peer | `show crypto ipsec sa peer <peer-address>` | A specified peer | Isolating a tunnel | Requires the correct peer address |
| From privileged EXEC | Run the command at the device prompt | Current device | Direct troubleshooting | Requires appropriate access |
| In configuration mode | Exit to privileged EXEC, then run it | Current device | Avoiding mode-related errors | Command may not work in the wrong mode |
| Repeat after traffic | Run it before and after test traffic | Counter changes | Confirming packets use the tunnel | A quiet tunnel may show no change |
| Compare both directions | Check inbound and outbound counters | Tunnel traffic flow | Finding one-way traffic | Counters 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
Troubleshooting clues and safe next checks
| Observation | Likely area to investigate | Safe next check | Avoid assuming |
|---|---|---|---|
| No active IPsec SA | Negotiation or configuration | Check IKE status and logs | That the peer is unreachable |
| Outbound counter does not increase | Local traffic, routing, or selectors | Generate matching traffic and recheck | That encryption is failing |
| Inbound counter does not increase | Remote traffic or inbound processing | Ask the peer to send matching traffic | That the local tunnel is down |
| Outbound increases; inbound stays flat | Return path or peer-side handling | Compare peer counters and routes | That local outbound traffic arrived |
| Inbound increases; outbound stays flat | Local traffic or return routing | Check routes and traffic selectors | That the remote side is at fault |
| Packet errors increase | Transform mismatch or packet validation | Compare settings and inspect logs | That every error has the same cause |
| Counters stay unchanged | No matching traffic or wrong path | Verify test traffic and routing | That the SA is necessarily broken |
| State changes after a config edit | Recent configuration change | Review the change and relevant logs | That a reset is the safest first step |
Compiled November 2026; check the provider's site for current details.
Related commands and safe operational checks
A useful diagnostic sequence is:
- Confirm peer and IKE status.
- Run
show crypto ipsec saand identify the relevant local and remote traffic selectors. - Record the encapsulation and decapsulation counters.
- Generate traffic between the intended endpoints.
- Run the command again and compare the counters.
- 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.