Tunnels and VPN trust
A tunnel is a logical path
A tunnel carries a packet inside another protocol unit. The original packet is the inner packet; the delivery header belongs to the outer packet. The underlay is the actual network that reaches tunnel endpoints; the overlay is the logical connectivity built on it. A VPN (virtual private network) provides logical private connectivity across shared infrastructure. Some VPNs use cryptographic protection; the word VPN alone does not establish confidentiality.
Follow a packet between offices
In this fictional site-to-site connection, each gateway connects its local network to the other office. A sends an IP packet toward B. Gateway A encapsulates it; intermediate routers forward using the outer destination. Gateway B removes the tunnel encapsulation and forwards the inner packet. A return route and policy permission are still required. All addresses below are documentation-only illustrations, not reachable lab targets.
Host A: 192.0.2.10 --> Gateway A: 203.0.113.1 | underlay |Host B: 198.51.100.20 <-- Gateway B: 203.0.113.2Inner IP: 192.0.2.10 -> 198.51.100.20Outer IP: 203.0.113.1 -> 203.0.113.2GRE and encrypted tunnels
GRE (Generic Routing Encapsulation) adds a header to carry another network protocol. Basic GRE does not encrypt or authenticate the payload. IPsec ESP with authenticated encryption can protect the contents of an inner packet in tunnel mode. The outer addresses, timing and packet sizes remain observable; protection ends at the cryptographic endpoints. The diagrams are schematic, not a byte-accurate layout: optional fields, padding and synchronization data are omitted.
GRE: [outer IP][GRE][inner IP packet]ESP tunnel:[outer IP][ESP header][protected inner IP + trailer][tag]ESP transport: [original IP][ESP header][protected transport + trailer][tag]Choose the correct trust boundary
Site-to-site VPNs usually connect networks via gateways; remote-access VPNs typically connect an individual device to an organizational endpoint. Neither automatically grants access to every service. Enforce least privilege, verify endpoints and protect applications beyond the tunnel. A common mistake is assuming a successful tunnel means the application is authorized. Check routes, return paths and policy separately.
Practice on paper
In the diagram, identify the destination read by an underlay router and by Gateway B after decapsulation. Then explain why GRE alone does not satisfy a confidentiality requirement. Continue to IPsec and IKE for the protection and negotiation model.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Tunnels and VPN trust — knowledge check
Apply VPN concepts to fictional offline scenarios.
Which destination does a normal underlay router use in the lesson diagram?
What does basic GRE provide by itself?
What remains visible on the underlay with the illustrated ESP tunnel?
Which design connects two office networks through gateways?
A tunnel is established but the server denies access. What follows?