SSL/TLS VPN vs IPsec VPN: Differences and Which One to Use
An SSL/TLS VPN uses the same TLS encryption as HTTPS, usually over TCP or UDP port 443, and is the common choice for remote users connecting to applications from laptops and phones through a client or a browser portal. An IPsec VPN encrypts traffic at the network layer using IKE for key exchange and ESP for data, and is the standard for permanent site-to-site tunnels between offices, data centres and cloud networks.
Topic: Network Security in Cybersecurity & Ethical Hacking · Comparison
Also covers: Cybersecurity Foundations
Quick answer: An SSL/TLS VPN uses the same TLS encryption as HTTPS, usually over TCP or UDP port 443, and is the common choice for remote users connecting to applications from laptops and phones through a client or a browser portal. An IPsec VPN encrypts traffic at the network layer using IKE for key exchange and ESP for data, and is the standard for permanent site-to-site tunnels between offices, data centres and cloud networks. Use IPsec (IKEv2) for site-to-site links and TLS-based or IKEv2 clients for remote access, and whichever you choose, patch the VPN gateway quickly, because internet-facing VPN appliances are a frequent target.
Key takeaways
- TLS VPNs work at the session layer and pass easily through firewalls on port 443.
- IPsec works at the network layer and is the norm for site-to-site tunnels.
- Both are secure when configured with modern algorithms and MFA.
- VPN appliances appear often in CISA's Known Exploited Vulnerabilities catalog.
- For many applications, zero trust access is replacing full network VPN access.
Table of Contents
- What Is an SSL/TLS VPN?
- What Is an IPsec VPN?
- How Do They Compare?
- Which Should You Use?
- What Does an IPsec Configuration Look Like?
- How Do You Harden a VPN?
- How Do You Troubleshoot Common Problems?
- Are VPNs Being Replaced?
- References
What Is an SSL/TLS VPN?
SSL is the old name; current products use TLS 1.2 or 1.3 (RFC 8446). The client and gateway perform a TLS handshake, authenticate, then carry traffic inside the encrypted session. There are two modes, described in NIST SP 800-113:
- Portal mode: the user logs into a web page and reaches specific web applications through the browser.
- Tunnel mode: a client creates a virtual network adapter and sends IP traffic through the TLS tunnel, often using DTLS over UDP for better performance.
OpenVPN and most vendor remote access clients work this way.
What Is an IPsec VPN?
IPsec protects IP packets themselves. Two protocols do the work:
- IKEv2 (RFC 7296) authenticates the peers and negotiates keys over UDP 500, switching to UDP 4500 when NAT is present.
- ESP (RFC 4303) encrypts and authenticates the data packets.
Tunnel mode wraps the whole original packet, which is how site-to-site VPNs connect entire networks. NIST SP 800-77 Rev. 1 is the detailed guide.
How Do They Compare?
| SSL/TLS VPN | IPsec VPN | |
|---|---|---|
| OSI layer | Session and transport (above IP) | Network (IP) |
| Ports | TCP or UDP 443 | UDP 500 and 4500, IP protocol 50 for ESP |
| Firewall and NAT traversal | Easy, looks like HTTPS | Usually works with NAT-T; some networks block it |
| Typical use | Remote users | Site-to-site, also remote access with IKEv2 |
| Client | Browser or lightweight client | Built into most operating systems for IKEv2 |
| Access granularity | Easy to limit to specific apps | Usually network-level, limited by policy |
| Authentication | Certificates, passwords, SAML single sign-on, MFA | Certificates, pre-shared keys, EAP with MFA |
| Interoperability | Mostly vendor-specific clients | Standard between vendors |
Which Should You Use?
- Connecting two offices or an office to a cloud VPC: IPsec with IKEv2. Cloud providers' VPN gateways use it.
- Remote staff on laptops and phones: a TLS-based client or IKEv2, with single sign-on and MFA.
- Contractors who need one web app: portal access or a zero trust access proxy, not full network access.
- Hotel or airport Wi-Fi that blocks VPN ports: TLS over 443 is more likely to work.
What Does an IPsec Configuration Look Like?
A site-to-site tunnel using strongSwan's swanctl.conf, with certificate authentication and modern algorithms:
connections {
office-to-dc {
version = 2
local_addrs = 203.0.113.10
remote_addrs = 198.51.100.20
proposals = aes256gcm16-prfsha384-ecp384
local { auth = pubkey; certs = office.crt; id = office.example.com }
remote { auth = pubkey; id = dc.example.com }
children {
lan {
local_ts = 10.10.0.0/16
remote_ts = 10.20.0.0/16
esp_proposals = aes256gcm16-ecp384
start_action = start
}
}
}
}
swanctl --load-all
swanctl --list-sas # confirm the IKE and child SAs are established
How Do You Harden a VPN?
Internet-facing VPN gateways from several major vendors have had critical flaws exploited in the wild, and many appear in the CISA KEV catalog. The NSA and CISA guidance recommends:
- Choose standards-based products with a record of fast security fixes.
- Patch VPN gateways as soon as fixes are released.
- Require MFA and prefer certificate authentication over pre-shared keys.
- Disable weak algorithms and unused features, such as old portal functions.
- Limit the management interface to internal networks.
- Send VPN logs to your SIEM and watch for unusual logins.
How Do You Troubleshoot Common Problems?
| Symptom | Likely cause |
|---|---|
| IKE never completes | UDP 500 or 4500 blocked, or proposal mismatch |
| Tunnel up, no traffic | Traffic selectors or routes do not match on both sides |
| Large transfers stall | MTU problems; lower the MSS on the tunnel |
| TLS VPN slow | Running over TCP; enable the DTLS or UDP option |
Are VPNs Being Replaced?
For user access to applications, many organisations are moving to zero trust network access, which checks identity and device health per application instead of placing users on the network. Site-to-site IPsec remains standard. See our guides to VPN types and IPsec, or talk to a WebAsha training advisor about networking courses.
References
Frequently Asked Questions
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Wow
0
Sad
0
Angry
0