Use it when configuring, checking or troubleshooting Tunnel Mode in VPN.
Tunnel Mode
IPsec Tunnel Mode encapsulates the entire original IP packet inside a new outer packet protected by ESP or AH, enabling gateway-to-gateway and remote-access designs with separate inner and outer address realms.
original packet → encrypted in ESP → new outer IP header
Context & applicabilityCommon mistakes · platform/version boundaries
Tunnel-mode SA shows encapsulation capability, but it does not show the intended inner packet matched, routed or passed remote policy.
Suspicious evidence: inner/outer tuple confusion, selector gap, missing inner return route, NAT exemption absent, PMTU black hole, duplicate encapsulation or remote policy deny.
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 Verification path Verify boundary
inner packet/route → tunnel selector → encapsulation/protection → outer peer path → decapsulation → inner route/policy → destination
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.
- Tunnel mode ≠ all traffic automatically enters the tunnel.
- Outer peer reachability ≠ inner network reachability.
- Tunnel or SA up ≠ protected application traffic succeeds.
- Cryptographic negotiation ≠ correct identity, selector, route or application outcome.
ip xfrm state | grep 'mode tunnel'— tunnel modeshow crypto ipsec sa— tunnel SAsip -d link show type vti / xfrm— route-based interfaces
ReferenceWhat it is1 section · depth on demand
When to use tunnel mode
Tunnel mode wraps the entire packet in a new IP header between the gateways, hiding internal addresses. It is the default for site-to-site and remote-access VPNs and VTIs. Overhead is larger than transport mode (extra 20-byte IP header), so lower the tunnel MTU and adjust TCP MSS.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Tunnel-mode SA shows encapsulation capability, but it does not show the intended inner packet matched, routed or passed remote policy.
In depth
Tunnel mode encapsulates the entire original IP packet — header and payload — inside a new IP packet between the two gateways. It is the standard mode for site-to-site and most remote-access VPNs, because gateways protect traffic on behalf of whole networks and the internal addresses stay hidden.
Overhead: a new 20-byte IPv4 header plus ESP header, IV, padding and integrity check — typically 50–80 bytes. Adjust MTU and TCP MSS on tunnel interfaces (for example ip mtu 1400, ip tcp adjust-mss 1360) to avoid fragmentation and stalled large transfers.
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 VPN → Tunnel Mode. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc4301 · confidence 94%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.
Quick lookup tables
VPN → Tunnel Mode proof map
Fast scope, effective-policy, runtime-evidence and closure boundaries for VPN → Tunnel Mode.
| Boundary | Establish | Does not establish |
|---|---|---|
| Scope and intent | Exact subjects, destinations, application, direction, trust zone and expected decision | Does not prove effective path, identity, cryptography or enforcement |
| Effective control state | Resolved rule/policy, session/SA, identity/posture, translation and selected path | Object/config presence does not prove a match or packet outcome |
| Runtime evidence | Correlated client, authenticator/firewall/VPN, AAA and destination observations for one flow/time | A single log or success does not prove every packet, peer, path or failover state |
| Closure | Original allowed/denied operation behaves as intended and regression/failure tests pass | Administrative commit or tunnel-up state alone is not closure |