Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Tunnel Mode

Direct answer

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.

When to use this

Use it when configuring, checking or troubleshooting Tunnel Mode in VPN.

First 30 seconds

1. Tunnel mode encapsulates the whole packet in a new IP header.

2. Standard for site-to-site VPNs.

3. More overhead (MTU/MSS).

4. Route-based VTIs simplify routing.

5. Adjust MSS.

Operational verification

original packet → encrypted in ESP → new outer IP header

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

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.

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 Tunnel Mode 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

inner packet/route → tunnel selector → encapsulation/protection → outer peer path → decapsulation → inner route/policy → destination

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
  • 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.
Key checks
  • ip xfrm state | grep 'mode tunnel' — tunnel mode
  • show crypto ipsec sa — tunnel SAs
  • ip -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.

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 → Tunnel Mode. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc4301 · confidence 94%
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
IPsec tunnel modegateway tunnelencapsulated VPN
Embedded reference data

Quick lookup tables

VPN → Tunnel Mode proof map

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

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?