Few networking failures feel quite as maddening as a selective TLS handshake freeze. You flash a fresh router, spin up an OpenVPN or WireGuard client on OpenWrt, and everything seems to work. DNS resolves in milliseconds. You can ping 1.1.1.1 and google.com without dropping a single packet. Lightweight websites load instantly. Then you try opening your banking portal, a developer dashboard behind Cloudflare, or an e-commerce checkout, and the browser simply hangs. The progress bar creeps halfway across the screen. DevTools reports an indefinite stall at Initial connection or SSL handshake. The connection eventually dies with ERR_TIMED_OUT or Connection reset by peer.
At 365Finds, we see network enthusiasts blame everything from broken DNS and upstream censorship to faulty TLS cipher negotiation. The actual culprit is almost always mundane, invisible, and rooted in transport-layer geometry: packet fragmentation blocked by tunnel encapsulation, compounded by an Internet Control Message Protocol (ICMP) black hole.
Here is why your VPN router chokes on specific HTTPS sessions, and how TCP MSS clamping completely eliminates the deadlock.
The Root Problem: The Tunnel Tax and the Jumbo Certificate
Every standard Ethernet network operates with a Maximum Transmission Unit (MTU) of 1500 bytes. This means the largest unfragmented Layer 3 packet your local computer can push across your LAN switch is 1500 bytes, containing a 20-byte IPv4 header, a 20-byte TCP header, and up to 1460 bytes of application data. That maximum data payload is your Maximum Segment Size (MSS).
When your router routes local traffic into an encrypted VPN tunnel, it must wrap the entire original packet inside another envelope:
| Encapsulation Layer | Added Header Overhead | Effective WAN / Tunnel MTU |
|---|---|---|
| Standard Ethernet (Base) | 0 bytes | 1500 bytes |
| PPPoE (common DSL/Fiber) | 8 bytes | 1492 bytes |
| WireGuard (over IPv4) | 60 bytes (20B IP + 8B UDP + 32B WG) | 1420 bytes (or 1412 over PPPoE) |
| WireGuard (over IPv6) | 80 bytes (40B IPv6 + 8B UDP + 32B WG) | 1400 bytes |
| OpenVPN (UDP + HMAC + Cipher) | ~40 to 69 bytes | 1400–1450 bytes |
| IPsec / IKEv2 (AES-GCM, ESP) | ~56 to 72 bytes | 1420–1440 bytes |
Because of this encapsulation overhead, a VPN interface cannot carry a full 1500-byte packet. A WireGuard interface, for example, typically defaults to an MTU of 1420 bytes.
Why Small Packets Pass While HTTPS Stalls
When your browser connects to a remote HTTPS server, the exchange unfolds in distinct phases:
- TCP Three-Way Handshake (
SYN->SYN-ACK->ACK): These control packets contain no data payload. They are roughly 60 to 74 bytes. They slip effortlessly through any tunnel. - TLS
ClientHello: Your browser lists its supported cipher suites and server name indication (SNI). Unless carrying bloated extension payloads, this packet is typically a few hundred bytes. It sails through without friction. - TLS
ServerHello+ Certificate Chain: This is where everything falls apart. The remote web server responds with its cryptographic credentials, intermediate Certificate Authority (CA) chains, and key exchange parameters. Modern certificate bundles regularly measure between 2,000 and 4,000 bytes.
The remote web server cannot send 3,000 bytes in a single packet. It slices the certificate data into full-sized TCP segments matching what it believes is the path limit: an MSS of 1460 bytes (for a 1500-byte MTU).
When that 1500-byte packet arrives from the Internet at your VPN endpoint and attempts to squeeze into the router's 1420-byte tunnel, the router faces a hard boundary.
The Broken Safety Net: PMTUD and ICMP Black Holes
Under normal Internet standards, this situation should resolve itself automatically via Path MTU Discovery (PMTUD, RFC 1191).
Modern operating systems set the Don't Fragment (DF) bit on almost all TCP packets to prevent the performance penalties and reassembly vulnerabilities of IP fragmentation. When a router encounters a packet with DF=1 that exceeds the outgoing link's MTU, it must drop the packet and immediately send an ICMP message back to the sender: Type 3, Code 4 ("Fragmentation Needed and DF set"), specifying the next-hop MTU.
In an ideal world:
- The remote server transmits a 1500-byte certificate segment with
DF=1. - The intermediate router or VPN gateway drops it and replies with an ICMP Type 3 Code 4 notice: "Maximum MTU on this link is 1420; please resize."
- The remote server caches this PMTU limit, splits the certificate into smaller segments (1380 bytes or fewer), and retransmits. The TLS handshake finishes smoothly.
Where Reality Fails
On the live Internet, Path MTU Discovery is broken. Many network administrators, enterprise firewalls, and commercial CDN edge routers indiscriminately drop all incoming ICMP traffic under the misguided belief that blocking ICMP hardens their security.
When that ICMP "Fragmentation Needed" packet is dropped by an upstream firewall:
- The remote server never hears that its 1500-byte packet was discarded.
- It assumes the packet was lost to random line noise and resends the exact same 1500-byte packet.
- The VPN tunnel drops it again.
- The server enters an exponential retransmission backoff loop.
Your browser sits waiting for the server's certificate. Because your local machine received the initial TCP ACK and sent its ClientHello, the browser kernel believes the connection is healthy. It holds the socket open until the browser's internal handshake timer fires 30 to 60 seconds later, yielding a blank page and a timeout error.
The Solution: What TCP MSS Clamping Does
Rather than hoping intermediate networks will stop filtering ICMP packets, TCP MSS clamping intercepts the conversation before oversized packets can ever be created.
MSS clamping is a stateful Layer 4 firewall trick performed by your router. During the initial TCP three-way handshake, both client and server announce their Maximum Segment Size in the TCP Options header. A client on a standard Gigabit Ethernet LAN sends:
$$\text{MSS} = 1460 \text{ bytes (1500-byte MTU } - 20\text{B IP } - 20\text{B TCP)}$$
When MSS clamping is active on the router:
- The router intercepts the outgoing
SYNpacket leaving the LAN toward the VPN tunnel. - It inspects the advertised MSS option.
- If the advertised MSS exceeds the capacity of the outgoing tunnel interface (Tunnel MTU minus 40 bytes for TCP/IPv4 headers, or minus 60 bytes for IPv6), the router rewrites the MSS field in the TCP header on the fly and recalculates the TCP checksum.
- For a WireGuard interface with MTU 1420, the router clamps the MSS to 1380 (or 1360 for IPv6).
- The remote web server receives the modified
SYN. It reads the clamped MSS and registers: "This client cannot accept TCP payloads larger than 1380 bytes." - When sending its large TLS certificate chain, the server splits the data into 1380-byte chunks.
- Encapsulated in IP and TCP headers, the packet reaches exactly 1420 bytes, passing through the WireGuard tunnel without triggering fragmentation or exceeding MTU limits.
At 365Finds, we appreciate MSS clamping because it does not require changing network settings on a single smartphone, laptop, or gaming console in your home. The router handles the constraint silently at the perimeter.
How to Diagnose a TLS MTU/MSS Stall
Before altering firewall tables, verify that an MTU mismatch is causing your handshake freeze.
Step 1: Verbose cURL Test
Run curl with verbose output against the problematic site from a terminal behind the VPN router:
curl -Iv https://example-problematic-site.com
Look closely at where the output freezes:
* Connected to example-problematic-site.com (93.184.216.34) port 443
* ALPN: offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* (freeze occurs here for 30–60 seconds)
* OpenSSL SSL_connect: Connection reset by peer in connection to example-problematic-site.com:443
If the connection establishes the TCP socket (Connected to ...) and successfully transmits Client hello, but stalls waiting for the server's reply, you are witnessing an MTU/PMTUD black hole.
Step 2: Test Path MTU with Do-Not-Fragment Pings
Determine the exact unfragmented payload size your VPN tunnel can accommodate.
On Linux/macOS:
ping -c 2 -M do -s 1472 1.1.1.1
(On Windows, run: ping -f -l 1472 1.1.1.1)
Note that the -s / -l parameter specifies the ICMP data size. Total packet size equals payload + 8 bytes (ICMP header) + 20 bytes (IP header) = 1500 bytes.
If 1472 fails with Frag needed and DF set or hangs, reduce the buffer incrementally:
- Try
1392(1392 + 28 = 1420-byte MTU). - If that passes, step up to
1432or down to1372until you identify the exact boundary.
Configuring MSS Clamping on Router Hardware
Depending on your router operating system, clamping can be toggled via GUI or enforced through firewall scripts.
1. OpenWrt (Firewall 4 / nftables and Firewall 3 / iptables)
OpenWrt includes built-in MSS clamping support. In /etc/config/firewall, ensure the firewall zone governing your VPN interface has mtu_fix enabled.
Edit /etc/config/firewall:
config zone
option name 'vpn_zone'
option network 'wg0'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
Apply the changes:
/etc/init.d/firewall restart
If your router uses manual nftables rules (OpenWrt 22.03 and later), MSS clamping can be explicitly enforced in /etc/nftables.d/ or via table rules:
table inet fw4 {
chain forward {
type filter hook forward priority filter; policy drop;
tcp flags syn tcp option maxseg size set rt mtu - 40
}
}
2. Manual Linux iptables (Custom Gateways & Raspberry Pi Routers)
If you run a custom Linux router or bare-metal WireGuard gateway:
# Automatically clamp MSS to the interface Path MTU
iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
ip6tables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
# Or explicitly clamp to a fixed safe ceiling (e.g., 1360)
iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss 1360
3. pfSense / OPNsense
- Navigate to Interfaces > [Your VPN Interface or WAN].
- Locate MSS.
- For a WireGuard connection running over standard Ethernet, enter 1380 (or 1360 if your WAN uses PPPoE or IPv6).
- Save and apply changes. Alternatively, check System > Advanced > Firewall & NAT > Enable MSS clamping on VPN traffic and set it to
1360.
4. GL.iNet Travel Routers
GL.iNet's web interface allows direct MTU adjustments under VPN > WireGuard Client / OpenVPN Client.
- Lower the tunnel MTU from
1420to1360or1340if connecting behind hostile hotel Wi-Fi or double-NAT connections. - GL.iNet's underlying OpenWrt firmware enforces
mtu_fix '1'by default on the VPN firewall zone, but dropping the tunnel MTU ensures upstream cellular/PPPoE overhead does not trigger fragmentation before the packet leaves the router.
Selecting the Right MSS Ceiling
Choosing an overly aggressive MSS clamping value wastes a fraction of a percent of bandwidth on additional packet headers. Setting it too high leaves you vulnerable to stalls on complex routing paths.
| Upstream Connection Type | VPN Tunnel Protocol | Tunnel MTU | Recommended Clamped TCP MSS |
|---|---|---|---|
| Standard Ethernet (DHCP/Static, MTU 1500) | WireGuard (IPv4) | 1420 | 1380 |
| Standard Ethernet (DHCP/Static, MTU 1500) | WireGuard (IPv6) | 1420 | 1360 |
| PPPoE Fiber/DSL (Base MTU 1492) | WireGuard (IPv4) | 1412 | 1372 |
| PPPoE Fiber/DSL (Base MTU 1492) | OpenVPN (UDP) | 1400 | 1360 |
| Cellular Hotspot / CGNAT (Base MTU ~1420) | WireGuard (IPv4) | 1340 | 1300 |
| Conservative Universal Default | Any Tunnel | 1360 | 1360 |
At 365Finds, our practical rule of thumb for home routers running WireGuard or OpenVPN across diverse broadband connections is to clamp TCP MSS to 1360. While 1380 works for clean IPv4 Ethernet links, dropping to 1360 accommodates IPv6 header growth (40 bytes vs 20 bytes) and nested PPPoE or carrier encapsulation without measurable throughput degradation.