Advanced Topic 41 of 50 Computer Networks
VPN
Encrypted tunnels extending private networks over public ones.
How it works
A virtual private network creates an encrypted tunnel between a device and a remote network or server, so traffic travels securely across the public internet and appears to come from the far end. Site-to-site VPNs link whole networks, and remote-access VPNs connect individual users. Protocols include IPsec, OpenVPN and WireGuard, and they authenticate peers with keys or certificates.
Step-by-step walkthrough
- The laptop connects to the gateway and authenticates.
- An encrypted tunnel is created over the public Internet.
- Packets are encrypted and wrapped inside other packets.
- The gateway unwraps them.
- The laptop acts as if it is inside the private network.
Where it is used
Employees access company resources remotely, offices connect branches, cloud networks connect to data centers, and individuals protect traffic on untrusted Wi-Fi or access region-restricted services.
Common pitfall
A VPN moves trust to the VPN provider or endpoint, which can still see traffic metadata. It slows connections and does not make users anonymous or protect against malware or phishing. Split tunneling and DNS leaks can expose traffic outside the tunnel. Poor key management and overly broad access once connected are common risks. Prefer zero-trust access controls for sensitive apps.
Where it fits in the course
VPN is topic 41 of 50 in Computer Networks, rated Advanced. It follows Firewalls. The next topic is QUIC and HTTP/3.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Computer Networks quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Computer Networks quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is VPN?
Where do people use VPN?
What is the most common mistake with VPN?
What should I learn before this topic?
How can I practice it?
Is VPN hard to learn?
How long does it take to learn VPN?
Which topics are related to VPN?
What should I study after VPN?
Related topics
- Firewalls (Computer Networks)
- QUIC and HTTP/3 (Computer Networks)
- Proxies (Computer Networks)
- WebSockets (Computer Networks)