Show crypto IPsec sa: How to Check Cisco IPsec VPN Security Associations

Learn how to use show crypto ipsec sa to verify tunnel traffic, inspect counters, and troubleshoot Cisco IPsec VPNs.


The Cisco IOS command show crypto ipsec sa displays the IPsec security associations (SAs) on a router or other supported Cisco device. Use it to check which peers and traffic selectors are involved in a VPN, inspect inbound and outbound SAs, and see whether encrypted packets are being sent and decrypted. If you are verifying a tunnel or troubleshooting missing traffic, this is one of the most useful operational commands.
Run it in privileged EXEC mode:
| 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.
Router# show crypto ipsec sa
The output can be extensive on a device with multiple VPN peers. You can narrow it to a peer address on platforms that support the option:
Router# show crypto ipsec sa peer 203.0.113.10
Exact syntax and displayed fields vary by Cisco platform and software release. Use show crypto ipsec sa? to check the options available on your device.
Editor's pick: NordVPN — fast, secure VPN — Strong encryption, a no-logs policy and apps for every device. 30-day money-back guarantee. Get NordVPN →
IPsec security association fields and what they tell you
| Field or indicator | What it describes | Healthy sign | If unexpected |
|---|---|---|---|
| Peer | Remote VPN endpoint | Expected peer address | Check peer configuration and routing |
| Local identity | Local endpoint identity | Matches configured identity | Compare identity settings on both peers |
| Inbound SPI | Identifier for inbound SA | Present when SA is established | Check whether the inbound SA was created |
| Outbound SPI | Identifier for outbound SA | Present when SA is established | Check whether the outbound SA was created |
| Encryption algorithm | Cipher used for traffic | Matches the agreed policy | Compare transform and proposal settings |
| Integrity algorithm | Authentication or integrity method | Matches the agreed policy | Check integrity settings at both ends |
| Encapsulation mode | Tunnel or transport mode | Matches the intended VPN design | Verify the configured mode |
| Packet counters | Traffic processed by the SA | Increase when matching traffic flows | Check traffic, selectors, and SA status |
| SA lifetime | Time or data limit before rekey | Consistent with the configured policy | Review lifetime and rekey behavior |
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 peers. An SA includes details such as the peer, the traffic being protected, the security protocol, and the keys and algorithms used. SAs are directional, so a working connection normally has an inbound and an outbound SA for each protected traffic flow.
Depending on the device and configuration, the command may show:
- The local and remote IPsec endpoints
- The local and remote identities or traffic selectors
- The transform set or negotiated encryption and authentication details
- Inbound and outbound SPI values
- SA lifetime information
- Packet and byte counters
- Encapsulation, encryption, decryption, and authentication statistics
- Errors such as replay drops or failed decryptions
An SA in the output means IPsec state exists for the displayed traffic. It does not, by itself, prove that an application is reachable or that all routing and firewall policies are correct.
How to read the important fields
Start by matching the peer address and selectors to the VPN you are checking. The selectors identify the traffic covered by the SA, such as a local subnet communicating with a remote subnet. If they do not match the intended networks, the tunnel may be protecting different traffic than expected. Clash Meta for iOS: What It Is and How to Use It Safely
Next, examine the inbound and outbound SA details. Each direction has its own SPI, or Security Parameter Index. The SPI helps the receiving device identify the SA used for an incoming IPsec packet. You generally do not need to interpret the SPI manually, but its presence is useful when confirming that SAs were negotiated.
The packet counters are often the fastest way to assess activity:
- encapsulated or encrypted packets indicate that the device has protected outbound traffic.
- Decapsulated or decrypted packets indicate that the device has received and processed inbound IPsec traffic.
- Bytes provide a volume measure alongside packet counts.
- Error or drop counters may point to authentication, replay, policy, or packet-processing problems.
Compare counters before and after generating traffic that should cross the VPN. A single snapshot cannot show whether counters are increasing.
| Observation | Likely meaning | Useful next check |
|---|---|---|
| Both directions’ counters increase | Traffic is likely crossing the IPsec connection | Confirm the application and return path |
| Outbound counters increase, inbound counters do not | Local traffic is being encrypted, but replies are not arriving or being accepted | Check the remote peer, routing, selectors, and ACLs |
| Inbound counters increase, outbound counters do not | The device receives VPN traffic, but may not have matching return traffic | Check local routing, host response, and security policy |
| No counters increase | No matching traffic has been sent, or traffic is not reaching the IPsec policy | Check routes, traffic selectors, and test traffic |
| Error counters rise | Packets are arriving but failing some processing check | Inspect the specific error and device logs |
These are diagnostic clues, not definitive diagnoses. Platform behavior and counter names differ, and a counter can remain unchanged simply because no matching traffic has been generated. Urban VPN Chrome: How to Install, Use, and Choose Safely
A practical verification workflow
Use a short, repeatable sequence so you can distinguish an inactive tunnel from a traffic-flow problem.
- Check the configuration and peer. Confirm that the expected peer and protected networks are configured.
- Review the IPsec SAs. Run
show crypto ipsec saand locate the relevant peer and selectors. - Record the counters. Note the inbound and outbound packet counts.
- Generate matching traffic. For example, send traffic from a host in the protected local subnet to a valid host in the remote subnet. A ping from the router itself may not use the same source address or match the same selectors.
- Run the command again. Check whether the relevant counters changed.
- Test the application and return path. IPsec counters can show that packets were processed without confirming that the destination host or service responded.
When testing, make sure the source and destination addresses fall within the configured traffic selectors. Traffic outside those selectors may travel without encryption or may be dropped, depending on the design.
Verification approaches for a Cisco IPsec VPN
| Approach | Best for | What it can confirm | Main limitation | Next step |
|---|---|---|---|---|
| `show crypto ipsec sa` | Checking data-plane SAs | SPI, algorithms, counters, and SA details | Does not by itself explain every negotiation failure | Inspect IKE status and logs |
| Check packet counters | Confirming traffic matches an SA | Whether encapsulation or decapsulation is increasing | Counters alone do not prove end-to-end delivery | Generate matching traffic and recheck |
| Review peer and selectors | Validating intended traffic | Whether peer and traffic identities look correct | Output may not show the full configuration context | Compare with the configured crypto ACL |
| Check IKE security associations | Diagnosing negotiation state | Whether the control-plane exchange is established | An IKE SA does not guarantee IPsec traffic is passing | Check IPsec SAs and counters |
| Review logs | Investigating errors and rekeys | Negotiation or policy messages | Messages may be incomplete or platform-specific | Correlate timestamps with SA output |
| Compare both peers | Finding mismatched settings | Differences in policy, identity, or traffic selectors | Requires access to both endpoints | Align settings and retest |
| Use a controlled traffic test | Verifying a real traffic path | Whether test traffic increments relevant counters | Test traffic must match the configured selectors | Check counters on both peers |
Compiled November 2026; check the provider's site for current details. Urban VPN for Edge Extension: Installation, Features, and Safety
Troubleshooting common results
No SA appears
If the expected SA is missing, the peers may not have established IPsec state for that traffic. Check IKE status, peer reachability, and whether interesting traffic has been generated. Also confirm that both sides agree on the protected networks and IPsec parameters.
Useful companion commands can include:
show crypto isakmp sa
show crypto ikev2 sa
show crypto session
The right command depends on whether the device uses IKEv1, IKEv2, and which platform it runs. These commands help examine IKE negotiation or overall session state, while show crypto ipsec sa focuses on IPsec SAs and data-plane counters.
Outbound counters rise, but inbound counters stay flat
The local device may be encrypting traffic successfully, while replies fail to return. Check the remote device’s SA counters, its route back to the local network, and any firewall or access-control rules along the path. Confirm that the remote selectors match the local configuration. Urban VPN Extension for Microsoft Edge: How to Install and Use It
Inbound counters rise, but the application still fails
IPsec may be delivering traffic to the device, but a later step can still prevent communication. Check routing from the VPN device to the destination, security policies, host firewalls, and whether the destination service is listening. Also verify that return traffic follows a path that matches the VPN policy.
Counters remain at zero
First make sure you are inspecting the correct peer and traffic selectors. Then confirm that test traffic reaches the VPN device and matches the configured policy. Check routing and access lists, and avoid relying only on router-originated tests if the VPN is intended to carry traffic between subnets.
Limits and safe use
show crypto ipsec sa is primarily a status and troubleshooting command. It does not replace configuration review, packet captures, routing checks, or application testing. A populated SA can coexist with a broken user experience, and an inactive SA may be normal when a VPN is configured to establish on demand.
Avoid sharing full command output publicly without reviewing it. Although it does not ordinarily display the private key itself, the output can reveal peer addresses, network ranges, algorithms, and other details that may be sensitive. Forti VPN Client: Setup, Features, and Troubleshooting
Common `show crypto ipsec sa` results and response
| Result | What it may mean | Check first | Safe response |
|---|---|---|---|
| No IPsec SA shown | No matching SA is established or displayed | Peer, IKE state, and traffic selectors | Check configuration and logs before changing state |
| SA present; counters stay still | No matching traffic is reaching the SA | Traffic source, destination, and selectors | Send controlled test traffic |
| Encapsulation rises; decapsulation does not | Local traffic is sent but replies are not observed | Remote peer, return path, and remote counters | Verify routing and peer status |
| Decapsulation rises; encapsulation does not | Inbound traffic arrives without matching outbound traffic | Local traffic generation and selectors | Check the intended traffic flow |
| SPI differs between peers | SAs may be viewed in opposite directions or may not align | Inbound versus outbound SPI on each peer | Compare corresponding directions, not labels alone |
| Algorithms look unexpected | SA may use a different negotiated policy | Configured proposals and peer policy | Confirm the active policy before making changes |
| SA repeatedly rekeys | Rekey negotiation or lifetime behavior may be involved | Lifetimes, logs, and peer configuration | Investigate both endpoints before clearing SAs |
| Output is truncated or platform-specific | Command format or display differs by software release | Device model, software version, and full output | Use the platform’s supported show commands |
| Clearing an SA is being considered | Reset may interrupt traffic temporarily | Whether the cause is understood and change is approved | Prefer diagnosis first; clear only under an approved plan |
Compiled November 2026; check the provider's site for current details.
Recommendation
Use show crypto ipsec sa to verify the peer, traffic selectors, SA details, and, most importantly, whether packet counters increase when you generate matching traffic. If the counters do not explain the problem, pair the result with IKE status, routing, policy, and endpoint checks rather than treating the SA output as proof that the entire VPN path works.
