What Is a VPN? How VPNs Work, IPsec vs SSL/TLS, and When You Actually Need One
You have probably heard the advice: "use a VPN on public Wi-Fi." But what does a VPN actually do, and what does it not do? A virtual private network (VPN) creates an encrypted tunnel between your device and another network, so the traffic inside that tunnel cannot be read by anyone watching the connection in between. It is one of the most useful tools in networking and security — and one of the most misunderstood. A VPN is not magic privacy, it is not antivirus, and it does not make you anonymous. This article explains what happens inside the tunnel, the two main kinds of VPN you will meet on exams and at work, and when a VPN genuinely helps.
What a VPN actually does
Imagine you are working from a coffee shop and need to reach your company's internal file server. Without a VPN, your traffic crosses the coffee shop's Wi-Fi, the internet provider's network, and the public internet in a form that anyone in the path could potentially observe or tamper with — especially on an untrusted Wi-Fi network. With a VPN, your device first builds an encrypted tunnel to a VPN gateway (a server run by your company, or by a VPN provider). Everything you send travels inside that tunnel, encrypted, until it reaches the gateway. From the gateway onward, the traffic continues to its destination in the normal way.
Two things happen here, and exams test both. First, confidentiality: the encryption means an eavesdropper on the coffee-shop Wi-Fi sees scrambled data, not your passwords or files. Second, a change of apparent origin: servers beyond the gateway see the gateway's address, not your coffee shop's address — so your traffic appears to come from the gateway's location.
What a VPN does not do is equally important. It does not encrypt traffic after it leaves the gateway, so a plain HTTP website is still plain HTTP beyond that point — use HTTPS as well. It does not stop malware or phishing, because that traffic was requested by you and travels inside the tunnel quite happily. And a VPN provider itself can see your traffic, so choosing a provider is a trust decision: you are moving your trust from your internet provider to the VPN provider, not removing trust entirely.
The two kinds of VPN: site-to-site and remote access
A site-to-site VPN connects two whole networks together, permanently. A company's head office and branch office, for example, each have a VPN gateway, and the gateways hold an encrypted tunnel open between them. A computer in the branch can reach a server at head office as if both were on one private network, even though the traffic crosses the public internet. Nobody has to "log in" to the VPN on each computer — the gateways handle it.
A remote-access VPN (also called client-to-site) connects one device to a network. This is the kind you use on a laptop or phone: you open a VPN client, authenticate, and your device joins the company network (or the provider's network) through the tunnel. Remote-access VPNs are the ones behind "work from home" setups, and behind most consumer VPN apps.
A related choice is full tunnel versus split tunnel. In a full tunnel, all of your device's traffic goes through the VPN — including your personal browsing. In a split tunnel, only traffic bound for the company network goes through the tunnel, and everything else goes straight to the internet. Full tunnels give the company more control and inspection, but they are slower for personal traffic and can be annoying; split tunnels are faster and lighter, but a compromised personal connection could become a route into the company network. Security+ questions love this trade-off: full tunnel means more security and more load, split tunnel means less load and a wider attack surface.
IPsec vs SSL/TLS VPNs: the two technologies exams test
Remote-access and site-to-site VPNs are jobs to be done; IPsec and SSL/TLS are the technologies that do them. Know both, and know how they differ.
IPsec (Internet Protocol Security) works at the network layer, so once the tunnel is up, it can carry any kind of IP traffic — not just web browsing. It has two main protocols: AH (Authentication Header), which authenticates packets but does not encrypt them, and ESP (Encapsulating Security Payload), which encrypts and authenticates — ESP is the one used in practice for a VPN. IPsec tunnels are set up with IKE (Internet Key Exchange), which negotiates the encryption and keys; IKE normally uses UDP port 500, and UDP port 4500 is used for NAT traversal (NAT-T) when a gateway sits behind NAT. IPsec is the classic choice for site-to-site tunnels and for always-on corporate remote access, and it is the technology behind most router-to-router VPNs.
An SSL/TLS VPN (often just called an SSL VPN) works above the network layer, over the same TLS encryption that protects HTTPS websites — in exam terms it is usually described as an application-layer VPN, because access is typically per-application through a browser or portal. The user typically opens a browser or a lightweight client, authenticates through a web portal, and gets access — often just to specific applications, such as a webmail page or an internal web app, rather than to the whole network. Because it runs over TCP port 443, the standard HTTPS port, an SSL/TLS VPN usually passes through firewalls and hotel or airport networks that would block IPsec's ports. That convenience is its big advantage; its trade-off is that it is typically application-specific rather than full-network access, although some SSL VPN clients do offer full network tunnelling.
Other names you will meet: OpenVPN is an open-source VPN protocol that uses TLS and normally runs on UDP port 1194 (it can also run on TCP port 443). WireGuard is a newer, simpler protocol that runs over UDP — its default port is 51820 — and is praised for its small code base and speed. PPTP is an older protocol that should be treated as broken: its authentication and encryption are weak, and it should not be chosen for anything sensitive. L2TP on its own provides no encryption at all, so it is always paired with IPsec (L2TP/IPsec) in practice.
When a VPN actually helps — and when it does not
A VPN genuinely helps when the network between you and the gateway is untrusted. Public Wi-Fi in a cafe, hotel, or airport is the classic case: the tunnel protects your traffic from other people on that network. It helps when you need to reach a private network from outside it, such as company servers from home, or to appear from another location.
A VPN does not help much when the network is already trusted and the site already uses HTTPS. It does not hide you from the VPN provider, from a website you log into (which knows exactly who you are), or from browser fingerprinting. It does not protect a device that is already infected. If a marketing claim says a VPN makes you "100% anonymous," that claim itself is a warning sign.
One practical feature worth knowing is the kill switch. If the VPN tunnel drops, a device would normally fall back to sending traffic directly over the unprotected network — silently, with no warning. A kill switch blocks all traffic until the tunnel is restored, so a dropped connection fails closed instead of leaking. For anyone handling sensitive work on public Wi-Fi, a kill switch is not a luxury feature; it is the difference between a VPN that protects you and one that only usually protects you.
VPN troubleshooting: when the tunnel will not come up
"VPN connects but nothing loads" and "VPN will not connect at all" are common help-desk tickets, and the checklist is short. First, confirm the basics: internet connectivity without the VPN, and correct credentials — expired passwords and changed multi-factor authentication are common culprits. Second, check the port and protocol: IPsec needs UDP 500 and 4500 open through the local firewall, while an SSL/TLS VPN needs TCP 443; a hotel or corporate firewall that blocks those ports will block that kind of VPN while leaving web browsing untouched. Third, check for a conflicting VPN client or an old profile, and for NAT or firewall rules on the gateway side. Finally, read the client logs: they usually name the failed step — authentication, key exchange, or tunnel establishment — and that step points at the fix.
Exam connection
VPNs appear across the certifications this site covers. Security+ (SY0-701) tests VPN types (site-to-site vs remote access), IPsec vs SSL/TLS, split vs full tunnel, and when to choose each — plus the fact that PPTP is insecure and L2TP needs IPsec for encryption. Network+ (N10-009) tests the same concepts from the networking side: tunnelling, ports (UDP 500/4500 for IPsec, TCP 443 for SSL/TLS, UDP 1194 for OpenVPN), and remote-access setup. CCNA (200-301) touches VPNs mainly through IPsec concepts and site-to-site architecture, including how tunnels traverse NAT. A+ Core 2 (220-1202) covers the user-facing side: configuring a VPN client on a workstation or mobile device and troubleshooting a failed connection. Whenever a question mentions a "tunnel," "split tunnel," or a worker connecting to the office from home, it is testing VPN fundamentals — and the answer usually comes back to encryption plus authentication, not anonymity.
Practical takeaway
Think of a VPN as a sealed, armoured pipe between your device and a trusted gateway: everything inside is encrypted, and it emerges at the gateway's location. Use a remote-access VPN on untrusted networks and whenever you need to reach a private network from outside. Prefer IPsec for site-to-site and always-on corporate tunnels, and SSL/TLS when you need something that works through restrictive firewalls or gives browser-based access to specific apps. Turn on the kill switch, keep HTTPS on as well, and remember the limit: a VPN moves your trust to the gateway — it does not remove the need for strong passwords, multi-factor authentication, and care about what you click.
FAQ
Do I need a VPN at home on my own Wi-Fi?
Usually not for security alone. Your home network is trusted in a way a coffee shop's is not, and HTTPS already encrypts most web traffic end to end. A VPN at home is still useful if you need to reach a private network (such as your office) or want your traffic to emerge from another location.
Does a VPN make me anonymous online?
No. It hides your traffic from your local network and your internet provider, and it changes your apparent address to the gateway's. But the VPN provider can see your traffic, websites you log into know who you are, and fingerprinting can still identify your browser. Anonymity needs far more than a VPN.
Why does my VPN work at home but not at a hotel?
Hotels and corporate networks often block the ports a VPN needs. IPsec needs UDP 500 and 4500, while an SSL/TLS VPN uses TCP 443, which is almost always open because it is the HTTPS port. Switching to an SSL/TLS-based VPN is often the fix in a restrictive network.
Ready to prove it?
Reading about IT is a start. CertCrack practice exams for Security+, Network+, CCNA, and A+ Core 2 test you the way the real exam does — with explanations for every answer.
Try a Free Sample Quiz