Transport Layer Security Tunneling
Summary
A TLS VPN uses the same protocol that protects websites to build a tunnel. The server proves its identity with a certificate, the client authenticates with credentials or a certificate, and traffic is carried in an encrypted TLS session. It works through most firewalls because it uses common web ports.
In plain words
A TLS VPN uses a server certificate to prove the gateway's identity (and optionally a client certificate for mutual authentication), then creates an encrypted tunnel. Credentials are sent inside that tunnel, often checked by RADIUS. It can run over TCP (which gets through firewalls easily) or UDP as DTLS (better for voice and video). Use TLS 1.2 or 1.3 only.
Detailed explanation
- TLS VPN: A VPN that tunnels traffic inside a Transport Layer Security session, typically on TCP port 443.
- Server certificate: Lets the client verify it is connecting to the genuine VPN gateway.
- Mutual authentication: The client also presents a certificate, so both ends are verified.
- Datagram TLS (DTLS): A version of TLS for UDP, which avoids the slowdown of tunneling TCP inside TCP.
TLS versions
- TLS 1.3: The current version; faster handshake, forward secrecy always and only strong cipher suites.
- TLS 1.2: Still acceptable when configured with strong, forward-secret cipher suites.
- Deprecated: SSL 2.0, SSL 3.0, TLS 1.0 and TLS 1.1 must be disabled.
Important terms
taken from the text above- TLS VPN
- A VPN that tunnels traffic inside a Transport Layer Security session, typically on TCP port 443.
- Server certificate
- Lets the client verify it is connecting to the genuine VPN gateway.
- Mutual authentication
- The client also presents a certificate, so both ends are verified.
- Datagram TLS (DTLS)
- A version of TLS for UDP, which avoids the slowdown of tunneling TCP inside TCP.
- TLS 1.3
- The current version; faster handshake, forward secrecy always and only strong cipher suites.
- TLS 1.2
- Still acceptable when configured with strong, forward-secret cipher suites.
- Deprecated
- SSL 2.0, SSL 3.0, TLS 1.0 and TLS 1.1 must be disabled.
Examples & real-world scenarios
- A browser-launched SSL/TLS VPN client.
- DTLS carrying a video call through the VPN.
- Requiring client certificates for mutual authentication.
Scenario
Remote staff complain that video calls over the VPN are choppy. Switching the TLS VPN to UDP (DTLS) usually helps latency-sensitive traffic.
Common mistakes
- Allowing TLS 1.0 or 1.1. Only 1.2 and 1.3 are considered secure.
- Thinking TLS VPNs only work over TCP.
Practical skills
- Configure the protocol choice and minimum TLS version for a TLS VPN.
What I should remember
- TLS VPN: Uses TLS, usually over port 443.
- DTLS: TLS over UDP for better tunnel performance.
- TLS 1.3: Current, most secure version.
- SSL and early TLS: Deprecated and must be disabled.