Skip to content

Lesson 5 of 8 · 9 min read

How Tunnels and VPNs Work

A tunnel carries one packet inside another; a VPN adds authentication and encryption so the inner packet crosses untrusted networks safely. IPsec negotiates keys with IKE and protects packets with ESP; WireGuard binds static public keys to allowed address ranges with a one-round-trip handshake; TLS VPNs ride over port 443. All of them authenticate who connected and then deliver packets onto a network, so what a client can reach is decided by policy behind the gateway. Leaks (DNS, IPv6, local routes), gateway vulnerabilities and broad post-connect access are where real failures happen.

Reviewed By the AISecurityInterviews editorial team
free sign-in, no card required

Practise it as an interviewer asks it

Related lessons