SSL VPN secures remote access through TLS sessions in a web browser or client, while IPsec protects traffic at the IP layer and is commonly used for site-to-site and remote-access VPNs.
What is SSL VPN?
An SSL VPN is a remote access product category that relies on the SSL/TLS cryptographic protocol to protect traffic between a user device and a VPN gateway. In other words, it is remote access through one or more VPN devices, where 1) users connect with a web browser and 2) the traffic between the browser and the VPN device is encrypted with TLS.
The name "SSL VPN" is a legacy label. Instead of SSL, modern deployments use TLS 1.2 or TLS 1.3, since SSL 3.0 is deprecated.
How an SSL VPN works
When a remote user opens a connection, the client and the SSL VPN gateway perform a TLS handshake. It negotiates cryptographic parameters and authenticates the server.
After the tunnel is up, application data flows through the encrypted session. Some enterprise products also create a datagram transport layer security (DTLS) data channel over user datagram protocol (UDP) for performance, with fallback to TLS if UDP is blocked.
National Institute of Standards and Technology (NIST) splits SSL VPNs into two primary types:
- SSL portal VPN. The user logs in through a secure website and reaches resources from a single page. The model lives close to the application layer of the OSI model and works well for web apps.
- SSL tunnel VPN. The client tunnels broader network traffic through the gateway and can reach non-web applications. Tunnel mode often needs a dedicated client, browser plug-in, or active content.
There's a practical limit to keep in mind: TLS protection typically covers the leg between the client and the VPN device. Once traffic is decrypted at the gateway and forwarded into the internal network, that internal hop is not protected by the VPN unless other encryption is layered on top.
Benefits of SSL VPN
- Easy remote access for remote users. A web browser is often enough for portal mode, which lowers the friction of onboarding contractors and third parties.
- Granular access control. Policies can target specific users, groups, applications, or endpoint conditions before granting access.
- Firewall friendly. Because traffic typically rides on TCP 443, it tends to traverse restrictive networks, hotel Wi-Fi, and corporate firewalls without special rules.
- Endpoint posture checks. Many SSL VPN products run host integrity checks before access is granted, which adds a layer of access control beyond the password.
What is IPsec?
IPsec is a suite of open IETF standards that secures IP communications at the IP layer through services such as access control, integrity, data origin authentication, anti-replay protection, and, when configured, encryption. It is one of the most widely deployed network layer security controls and is commonly used to build VPNs of every shape, from a single host tunnel to large site-to-site connections between data centers.
IPsec is a security architecture for IPv4 and IPv6 that can deliver access control, connectionless integrity, data origin authentication, anti-replay protection, confidentiality, and limited traffic flow confidentiality. The IPsec VPN protocol family includes Encapsulating Security Payload (ESP) for packet protection, Authentication Header (AH) for integrity, and IKE (typically IKEv2) for key exchange and security association management.
How IPsec works
An IPsec VPN tunnel is built in two phases. First, the two endpoints use IKE to mutually authenticate and negotiate a shared security policy, which produces a set of security associations. Then ESP (or, less commonly, AH) protects the actual network traffic according to that policy.
IPsec supports two modes:
- Transport mode. Only the payload of the IP packet is protected, which suits host-to-host scenarios.
- Tunnel mode. The entire original IP packet is encapsulated inside a new packet. It is the standard choice for gateway-to-gateway and remote access designs.
IPsec uses IP protocol numbers, not TCP or UDP ports, for its core protocols — that's why IPsec sometimes struggles on networks that block non-standard protocols.
Benefits of IPsec VPN
- Strong protection for network traffic. In tunnel mode, IPsec can protect the original IP packet inside a new packet, which makes it a natural fit for broad network-level coverage.
- Mature standards. ESP, AH, and IKEv2 are defined in published RFCs, validated by independent implementations, and recommended by NSA and CISA for hardened remote access.
- Excellent for site to site connections. A persistent IPsec VPN between two firewalls is the default way to link branch offices, cloud VPCs, and partner networks.
- Performance at scale. With modern algorithms such as AES-GCM and hardware acceleration, an IPsec VPN can sustain very high throughput for backbone tunnels.
Comparison between SSL VPN and IPsec
The headline framing for SSL VPN vs. IPsec is as follows: an SSL VPN is a remote access product built on TLS, while an IPsec VPN is a standards-based protocol suite that secures IP packets at the network layer of the OSI model.
Area | SSL VPN | IPsec VPN |
|---|---|---|
OSI model layer | Transport/application layer (portal); broader for tunnel mode | Network layer |
Primary use case | Remote access for users, contractors, BYOD | Site-to site connections, branch and cloud links, full network access |
Client requirement | Web browser for portal; client app for tunnel mode | Usually a client or OS-level configuration for remote access |
Transport | TCP 443, often DTLS over UDP for data | ESP (protocol 50), AH (protocol 51), IKE on UDP 500, NAT-T on UDP 4500 |
Access control | Per user, per group, per app | Commonly per network, subnet, or host. IPsec policies can also use protocol and port selectors |
Standards | TLS standardized; tunneling features can be vendor-specific | Fully standardized IETF suite |
Best fit | Granular secure access to selected resources | Broad, persistent secure connection between networks |
OSI model and protocol layer
This is the most important technical distinction. An IPsec VPN operates at the network layer of the OSI model, so it can protect any IP packet regardless of the application that produced it.
An SSL VPN operates higher up. Portal SSL VPNs sit close to the application layer and broker access through a web browser access through a web browser, while tunnel-mode SSL VPNs can extend reach toward the network layer but still depend on TLS as the underlying transport.
Access control model
An SSL VPN works best at fine-grained access control. Administrators can publish a single application to a single user group, run posture checks on the device, and avoid exposing the rest of the network.
An IPsec VPN typically grants access to a subnet or full network, so additional firewall rules and segmentation are needed to achieve comparable per-resource access control.
Client experience and remote users
For remote users, an SSL VPN often wins on convenience. Browser-based portals can work across a wide range of managed and unmanaged devices, which makes SSL VPNs common in contractor and BYOD access scenarios.
An IPsec VPN client usually needs installation and configuration, although it then provides a transparent, always-on secure connection that behaves like being on the office LAN.
Network traffic and firewall traversal
SSL VPN traffic is hard to block because it looks like ordinary HTTPS network traffic on TCP 443.
An IPsec VPN can run into trouble on locked-down networks that drop ESP or UDP 500/4500. NAT traversal helps, but it does not solve every case.
Site to site connections
For site-to-site connections, IPsec is the default choice. Two firewalls or routers form a permanent encrypted bridge, transparent to end users and applications.
SSL VPNs are not built for this pattern, even though some products technically support it.
Security posture
Both can be strong when configured well. An IPsec VPN benefits from a long history of standards review and validated implementations. An SSL VPN gateway is an internet-facing appliance that handles authentication and decryption, which makes it a high-value target.
NSA and CISA have warned that VPN appliances are repeatedly exploited by hackers, and they recommend standards-based IKE or IPsec where strong assurance is required, along with prompt patching, restricted management interfaces, and identity-aware access control.
Performance
Throughput depends on hardware, ciphers, and traffic mix. An IPsec VPN with AES-GCM and hardware offload can saturate multi-gigabit links. An SSL VPN over plain TLS-on-TCP can suffer from TCP-over-TCP effects when tunneling, which is why vendors offer DTLS or fall back to IKEv2/IPsec under the hood for the data plane.
Choosing the right VPN for your organization
There is rarely a single right answer. Most organizations end up running both, because each solves a different problem.
When an SSL VPN fits best
- Remote access for employees on varied devices. A web browser plus a lightweight client covers laptops, tablets, and home machines without deep OS configuration.
- Third-party and contractor access. Granular access control lets you publish only the apps a vendor needs, with posture checks and short-lived sessions.
- Application-specific access. Internal web apps, ticketing systems, and admin consoles can be reached through a portal without exposing the broader network.
- Restrictive networks. TCP 443 tends to pass through hotel, airport, and customer Wi-Fi where IPsec ports are blocked.
When an IPsec VPN fits best
- Site-to-site connections. Branch offices, data centers, and cloud VPCs link cleanly with persistent IPsec tunnels.
- Full-network remote access. When a remote user really does need the experience of being on the LAN, an IPsec VPN delivers it at the network layer.
- Infrastructure and machine-to-machine traffic. Server replication, backup, and management traffic between sites benefits from transparent network traffic protection.
- High-assurance environments. Regulated industries that need standards-based, validated cryptography lean toward IPsec.
A practical recommendation
Use an IPsec VPN as the backbone for site-to-site connections and any scenario where broad, persistent secure access to a network is required.
SSL VPN is best for remote users who need flexible, browser-friendly secure access to specific applications, with tight access control by user, group, and device posture.