Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

IPsec · VPN

Direct answer

IPsec is an IP-layer security architecture using policies, security associations and protocols such as ESP or AH to protect selected IPv4/IPv6 traffic in transport or tunnel mode, commonly with IKEv2 key management.

When to use this

Use it when configuring, checking or troubleshooting IPsec in VPN.

First 30 seconds

1. IPsec provides IP-layer encryption with IKE for keys.

2. ESP for confidentiality/integrity.

3. Tunnel mode for VPNs.

4. Strong proposals.

5. NAT-T for NAT.

Operational verification

IKE → SAs → ESP packets

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

An IPsec SA shows negotiated protection parameters, but it does not show the intended traffic matches the policy or reaches its destination.

Suspicious evidence: IKE only, selector mismatch, wrong mode, obsolete algorithms, replay drops, sequence exhaustion, NAT-T blocked, IPv6 parity gap or cleartext bypass policy.

Platform / version applicability
Network security
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformNetwork security
Scope / prerequisiteUse it when configuring, checking or troubleshooting IPsec in VPN.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

security policy/selectors → IKE peer/auth → child SA algorithms/keys → ESP/AH processing → outer IP path → decapsulation/policy → inner flow

Evidence references

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.

observation · 1
Key points
  • IPsec ≠ encryption always; AH does not encrypt.
  • IKE SA established ≠ IPsec data SA established.
  • Tunnel or SA up ≠ protected application traffic succeeds.
  • Cryptographic negotiation ≠ correct identity, selector, route or application outcome.
Key checks
  • show crypto session — IPsec sessions
  • ip xfrm state — Linux SAs
  • ip xfrm policy — Linux policies
ReferenceWhat it is1 section · depth on demand

Components

ComponentRole
IKE (v1/v2)Authenticates peers, negotiates algorithms, creates keys
SAOne-way set of keys and algorithms, identified by SPI
ESPEncrypts and authenticates packets (protocol 50)
AHAuthentication only (protocol 51), rarely used
ModesTunnel (whole packet) / transport (payload)
NAT-TESP in UDP 4500 through NAT
ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

An IPsec SA shows negotiated protection parameters, but it does not show the intended traffic matches the policy or reaches its destination.

In depth

IPsec is a suite of protocols that secures IP traffic at the network layer. IKE negotiates keys and security associations, ESP encrypts and authenticates packets, and AH (rarely used) authenticates without encryption. It works transparently for all applications, which makes it the standard for site-to-site VPNs.

Components at a glance:

ComponentFunction
IKEv2 (UDP 500/4500)Authenticate peers, negotiate algorithms, derive keys
ESP (IP 50 or UDP 4500 with NAT-T)Protect data
SAsAgreed parameters per direction
SPD (policy)Which traffic is protected
ModesTunnel (gateways) or transport (hosts)

Prefer route-based VPNs (VTI) with IKEv2, AES-GCM, strong DH groups, PFS and certificate authentication.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docNetwork security current

Authoritative/upstream documentation reviewed for bounded claims in VPN → IPsec. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc4301 · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
Internet Protocol SecurityIP securityIPsec architecture
Embedded reference data

Quick lookup tables

VPN → IPsec proof map

Fast scope, effective-policy, runtime-evidence and closure boundaries for VPN → IPsec.

BoundaryEstablishDoes not establish
Scope and intentExact subjects, destinations, application, direction, trust zone and expected decisionDoes not prove effective path, identity, cryptography or enforcement
Effective control stateResolved rule/policy, session/SA, identity/posture, translation and selected pathObject/config presence does not prove a match or packet outcome
Runtime evidenceCorrelated client, authenticator/firewall/VPN, AAA and destination observations for one flow/timeA single log or success does not prove every packet, peer, path or failover state
ClosureOriginal allowed/denied operation behaves as intended and regression/failure tests passAdministrative commit or tunnel-up state alone is not closure
Confirmation

Confirm action

Continue?