
People work from everywhere now — home Wi-Fi, cafés, airport lounges — but the internal file shares, databases, and tools they need still sit behind an office firewall. You obviously don’t want to expose those services directly to the open internet, so you need a safe way to bridge the gap. That’s what a VPN does: it builds an encrypted tunnel from a remote device (or another office) straight into your private network across the public internet.
At a high level, a corporate VPN handles two jobs: it encrypts your traffic in transit so nobody sniffing the local coffee shop Wi-Fi can read it, and it gives your device a trusted route into internal subnets (while optionally masking your public IP behind the company gateway).
Three Types of VPN#
Depending on what you’re trying to connect, companies generally rely on one of three setups:
- Client VPN: Software on a user’s laptop or phone tunnels directly into a corporate gateway (like a firewall or dedicated VPN concentrator). One person, one connection.
- Site-to-Site VPN: Two network edges—firewalls, routers, or cloud gateways—keep a permanent tunnel open so two entire networks can talk to each other. End users don’t install or launch anything.
- Clientless VPN: A browser-based portal that reverse-proxies access to specific internal web apps. No VPN client software required.
Client VPN#
The goal of a client VPN is simple: make a laptop sitting in a living room behave as if it’s plugged into an Ethernet port at the office.
Here is what happens behind the scenes when a user clicks Connect:
- Initiate connection: The user opens the VPN client (or it connects automatically via an Always-On profile).
- Authentication: The gateway checks who’s knocking. Usually it hands this off to RADIUS, Active Directory/LDAP, or a SAML/SSO identity provider like Entra ID or Okta, with MFA enforced before the tunnel comes up.
- Tunnel established: Client and gateway agree on encryption keys and bring up the encrypted tunnel.
- IP, DNS, and routes assigned: The gateway hands the device a virtual internal IP from a VPN pool (for example,
10.11.24.5), along with internal DNS server addresses and routing rules so the machine knows which traffic belongs in the tunnel. - Access: The device can now hit internal servers, RDP hosts, or SMB shares as if it were on-site.
Split tunnel vs. full tunnel is one of the first policy calls an IT team has to make:
- Full tunnel sends everything—internal traffic and regular internet browsing—through the corporate firewall. Security teams like it because traffic stays under corporate web filtering and DLP inspection. The downside shows up fast when half the company goes remote: every Zoom call, YouTube stream, and Windows Update gets hairpinned through your office ISP uplink, adding latency and chewing through bandwidth.
- Split tunnel only sends traffic destined for company subnets into the tunnel; everything else goes straight out the user’s local internet connection. Performance is much better, though anything going out locally bypasses your corporate firewall, so you’re relying more heavily on endpoint protection (EDR) and browser security.
Site-to-Site VPN#
Site-to-site VPNs connect whole networks rather than individual laptops—think a branch office linking back to HQ, or an on-prem data center tying into an AWS VPC. Once it’s set up, the tunnel runs 24/7 between two gateways.
Most site-to-site tunnels use IPsec, which traditionally negotiates in two stages (often called Phase 1 and Phase 2 even when using newer IKEv2):
- Phase 1 (IKE SA): Both gateways prove who they are (using a pre-shared key or certificates) and set up a secure channel just to handle the negotiation.
- Phase 2 (IPsec SA): Inside that protected channel, they agree on the encryption for the actual data traffic and define which subnets are allowed to talk across the link.
Once both phases come up, the tunnel stays active and quietly rotates encryption keys in the background.
Site-to-site links almost always run in tunnel mode, meaning the entire original IP packet is encrypted and wrapped inside a new outer packet with the gateways’ public IPs. That’s how non-routable private networks (like 192.168.10.0/24 at a branch and 10.0.0.0/16 at HQ) can exchange traffic across the public internet. (One classic catch: if both offices happen to use the exact same private range, like 192.168.1.0/24, tunnel mode alone won’t fix it—you’ll have to configure NAT on the tunnel, which nobody enjoys maintaining.)
Routing over the tunnel:
- Static routing (or policy-based traffic selectors) hardcodes which subnets go across which tunnel. It’s straightforward for a single stable link.
- Dynamic routing (BGP over VPN) lets both ends advertise routes automatically over virtual tunnel interfaces (VTIs). Once you run redundant tunnels—such as dual tunnels into an AWS Virtual Private Gateway or Azure VPN Gateway—BGP is the standard way to get automatic failover without manually editing route tables.
For production links, you’ll typically pair dual tunnels with Dead Peer Detection (DPD) (lightweight keepalives so a firewall notices quickly if the far end drops) running either active/passive or active/active failover.
Clientless VPN#
With a clientless VPN, there’s no agent installed and no full network-layer access. The user signs into an HTTPS portal in their browser, which acts as a reverse proxy. They see a dashboard of approved internal web apps and can interact with them through the portal without their personal device ever touching the corporate LAN.
Best fit: Contractors, outside vendors, or BYOD laptops that only need access to one or two internal web portals (say, an intranet or ticketing system). If a contractor’s laptop is compromised, the blast radius is limited to those published apps rather than the entire internal subnet.
The catch: Because it’s essentially a web proxy, non-HTTP protocols like RDP, SSH, or SMB file shares don’t work natively. Vendors work around this with HTML5 browser gateways or helper plugins, which can feel clunky compared to a native client. Also, traditional firewall SSL portals have had a rough security track record over the years, so many organizations now favor cloud-delivered identity-aware proxies instead.
Side-by-Side Comparison#
| Client VPN | Site-to-Site VPN | Clientless VPN | |
|---|---|---|---|
| Connects | One device to a network | One network to another | One browser session to specific apps |
| End-user software | VPN client agent | None | Browser only |
| Setup complexity | Moderate | Higher (routing, failover, NAT) | Low |
| Security scope | Allowed internal resources, per device | Allowed subnets, always-on | Published web apps only, per session |
| Typical protocols | SSL/TLS (DTLS), IKEv2, OpenVPN, WireGuard | Pure IPsec (IKEv1/IKEv2) | HTTPS / TLS |
Protocols You’ll Run Into#
- SSL/TLS & DTLS (e.g., AnyConnect, GlobalProtect): Disguised over standard HTTPS (
TCP 443), so it punches right through strict hotel or guest Wi-Fi firewalls that block everything else. Good implementations prefer DTLS (UDP) for speed and only fall back to TCP when UDP is blocked, avoiding TCP-over-TCP sluggishness. - IPsec (Site-to-Site) and L2TP/IPsec (Legacy Client): Pure IPsec—often paired with a virtual tunnel interface or GRE—is the backbone of nearly all site-to-site deployments. You’ll also see L2TP/IPsec on older client setups where L2TP handles the tunnel and IPsec encrypts it, though that combo is mostly phased out in favor of IKEv2 or SSL VPNs.
- IKEv2: Pairs with IPsec and shines on laptops and phones. Thanks to MOBIKE support, it survives Wi-Fi-to-cellular handoffs without forcing users to re-authenticate every time they walk out the door.
- OpenVPN: Battle-tested, flexible, and widely supported across operating systems and third-party routers. Runs best over UDP; running it over TCP is a common fallback for restrictive networks, though performance can suffer under packet loss.
- WireGuard: Newer, lean codebase, modern cryptography, and noticeably faster handshakes and throughput. It’s phenomenal for point-to-point links and Linux/cloud workloads. Out of the box, though, it doesn’t include user-level SSO, dynamic IP assignment, or posture checks, so enterprise teams usually adopt it through control-plane wrappers like Tailscale or NetBird.
Two related terms that often get lumped in here: GRE creates a point-to-point tunnel that can carry multicast and dynamic routing traffic, but it has zero encryption on its own—so in practice it’s usually wrapped inside IPsec. MPLS is a private carrier-managed WAN service rather than an encrypted internet tunnel; companies often use site-to-site VPNs either as a cheaper alternative to MPLS or as a backup over commodity broadband.
Build vs. Buy#
Vendor / Third-Party Solutions (Cisco Secure Client, which everyone still calls AnyConnect, Palo Alto GlobalProtect, Fortinet FortiClient, Microsoft Always On VPN): You get tight integration with your existing firewall, native SSO/MFA, endpoint posture checks (verifying disk encryption or AV before letting a device on), and vendor support when something breaks at 2 a.m. The trade-off is licensing cost and ecosystem lock-in.
Self-Hosted / Open Source (self-managed WireGuard or OpenVPN, or cloud-native gateways like AWS/Azure VPN): Full control and low licensing overhead. For small teams or engineering labs, it’s clean and fast. Just remember that key rotation, onboarding/offboarding, logging, and high availability become entirely your problem.
What Actually Breaks (A Technician’s Quick Checklist)#
Knowing how VPNs work on paper is half the battle; the other half is diagnosing why a user says “it shows connected, but nothing works”:
- DNS isn’t resolving internal names: The tunnel is up and you can ping an internal server by IP, but hostnames fail. Usually the gateway didn’t push the internal DNS server or search suffix—or the client’s local DNS cache/IPv6 DNS is leaking ahead of the tunnel.
- Overlapping home subnets: A user’s home ISP router hands out
192.168.1.0/24or10.0.0.0/24, which happens to match an office subnet. Their laptop routes traffic locally to their living room instead of down the tunnel. - Web works, but RDP or file transfers hang: Classic MTU/fragmentation issue. Adding encryption headers shrinks the effective packet size, and if Path MTU Discovery is broken, large packets get silently dropped. Lowering the tunnel MTU or enabling MSS clamping fixes it.
- Site-to-site tunnel won’t come up: Nine times out of ten, one side has a Phase 1 or Phase 2 mismatch (encryption algorithm, hashing, DH group, key lifetime, or proxy ID/subnet list), or UDP
500/4500is blocked upstream.
Where This Is Heading#
Traditional VPNs aren’t disappearing overnight, especially where legacy on-prem servers and thick clients still live, but the industry is steadily moving away from them.
For multi-branch connectivity, SD-WAN has largely replaced hand-managed site-to-site VPN meshes—automating tunnel creation across multiple ISPs and steering traffic dynamically based on packet loss and latency. On the remote-access side, Zero Trust Network Access (ZTNA) (usually delivered as part of a SASE platform) is replacing the broad “put the laptop on the corporate subnet” client VPN model. Instead of trusting a device just because it passed one login screen, ZTNA brokers access app-by-app and continuously checks user identity and device health.
Conclusion#
A VPN isn’t one single piece of tech; it’s three distinct patterns solving three different problems: a laptop tunneling safely from a café, two firewalls stitching offices and cloud VPCs together, or a contractor reaching a single web app through a browser. Understanding how traffic gets encapsulated, routed, and authenticated in each makes it much easier to pick the right tool, and fix it fast when a tunnel refuses to cooperate.

