Use it to connect branches over the internet, give remote users access, or encrypt traffic across a provider network.
VPN Security
VPN security protects traffic across untrusted networks with encryption, integrity and authentication. Site-to-site VPNs connect networks; remote-access VPNs connect individual users. IPsec and TLS/SSL are the common technologies.
1. show crypto session — tunnel UP-ACTIVE?
2. Down → IKE: show crypto ikev2 sa / show crypto isakmp sa; compare proposals and keys on both peers.
3. Up but no traffic → show crypto ipsec sa — encaps increasing, decaps not → the peer or return path.
4. Neither → routing or NAT sends traffic elsewhere.
5. debug crypto ikev2 briefly if negotiation fails.
peers reachable (UDP 500/4500, ESP) → IKE proposals match → peers authenticate → IKE SA up → IPsec SAs for the traffic → routing sends traffic into the tunnel → encrypt and decrypt counters increase
Context & applicabilityCommon mistakes · platform/version boundaries
- VPN concentrators not patched — they are among the most exploited devices.
- Password-only logins without MFA.
- Split tunnelling allowing unmanaged devices to bridge networks.
- Full network access for all VPN users instead of role-based access.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
| VPN | Command |
|---|---|
| IKEv2 site-to-site | show crypto ikev2 sa detail |
| IPsec SAs | show crypto ipsec sa |
| DMVPN | show dmvpn |
| FlexVPN | show crypto session detail |
| Remote access (ASA/FTD) | show vpn-sessiondb anyconnect |
Verify algorithms in use match policy (no DES/3DES/SHA-1/DH group 2).
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
IPsec protects IP traffic between two peers with ESP (encryption plus integrity) using security associations negotiated by IKE.
Subtopic Remote AccessA remote access VPN connects individual clients to the enterprise network, typically with TLS (Cisco Secure Client) or IKEv2/IPsec, per-user authentication, an assigned address pool and a split- or full-tunnel policy.
Subtopic Site-to-SiteA site-to-site VPN connects whole networks through an IPsec tunnel between two gateways: IKE authenticates the peers and negotiates the SAs, and a crypto ACL or routing over a tunnel interface decides which subnets use the tunnel.
show crypto ikev2 sa— IKEv2 security associations and their state.show crypto isakmp sa— IKEv1 phase 1 state (QM_IDLE is up).show crypto ipsec sa— IPsec SAs, encrypt and decrypt counters.show crypto session— summary of tunnels and peers.show interfaces tunnel <n>— tunnel interface state for VTI/DMVPN.
ReferenceWhy it matters1 section · depth on demand
VPN types
| Type | Use | Technology |
|---|---|---|
| Site-to-site | Connect networks over the internet | IPsec (crypto maps, VTI, DMVPN, SD-WAN) |
| Remote access | Connect a user to the company network | TLS/DTLS (AnyConnect/Secure Client) or IPsec IKEv2 |
Key security choices: IKEv2 instead of IKEv1, AES-GCM with SHA-2 and DH group 19/20 or higher, certificates or strong pre-shared keys, MFA for remote users, and split tunnelling only where the risk is understood.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
VPN security
VPNs extend private connectivity over untrusted networks, so their security matters twice: they protect traffic, and they're exposed gateways. NIST SP 800-77 Rev. 1 describes the IPsec VPN models (gateway-to-gateway, host-to-gateway for remote access, host-to-host and mesh) and recommends IKEv2, ESP, AES (GCM preferred) with SHA-2, strong certificates or high-entropy pre-shared keys, and perfect forward secrecy.
VPN models (SP 800-77 Rev. 1)
| Model | Protects |
|---|---|
| Gateway-to-gateway (site-to-site) | Traffic between two networks, only between the gateways |
| Host-to-gateway (remote access) | A user's device to the organisation |
| Host-to-host | Traffic between two specific systems; network inspection can't see inside |
Security priorities
| Area | Recommendation |
|---|---|
| Protocols | IKEv2, ESP; no IKEv1 Aggressive Mode, no AH |
| Cryptography | AES-GCM or AES with HMAC-SHA-2; DH groups 14–21 |
| Authentication | Certificates; PSKs with at least 112 bits of strength if used |
| Lifetimes | 24 h IKE SA, 8 h IPsec SA |
| Remote users | MFA, full or split tunnel by policy |
| Gateways | Patch quickly, minimal exposed services, monitoring |
VPN topics in this reference
| Topic | Focus |
|---|---|
| IPsec | Architecture, SAs, modes |
| Remote access | Users, split tunnelling, authentication |
| Site-to-site | Topologies, route-based tunnels |
R1# show crypto ikev2 sa detailed | include Encr|Auth|DH Grp|Life
Encr: AES-GCM, keysize: 256, PRF: SHA384, Hash: None, DH Grp:20, Auth sign: RSA, Auth verify: RSA
Life/Active Time: 86400/3611 sec
R1# show crypto ipsec sa | include transform|PFS
Operational checks
Review crypto settings against current recommendations, inventory VPN gateways and their software versions, monitor login failures and unusual sessions, and remove unused tunnels and accounts.
Documented example, not captured output.
Quick reference
VPNs extend the trusted network across untrusted ones, which makes them high-value targets. Their security depends on strong protocols and algorithms, solid authentication, tight access policies and — just as important — keeping the VPN devices themselves patched. The table summarises recommendations for each of these areas.
VPN security considerations:
| Area | Recommendation |
|---|---|
| Protocol | IKEv2 with AES-GCM, SHA-2, DH group 19/20/21 (avoid group 2/5) |
| Authentication | Certificates or EAP with MFA for remote access; strong PSKs for site-to-site |
| Exposure | Patch VPN gateways urgently — they are prime targets |
| Split tunnelling | Decide deliberately; full tunnel or protected DNS/web for split |
| Logging | Log connections, failed auth, unusual geolocations |
Remote access VPN appliances (from all major vendors) have had repeatedly exploited vulnerabilities — subscribe to advisories and restrict management interfaces.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Security → VPN Security. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%