How Websites Detect a VPN: Down to the TCP Stack

· 8 min read

Most advice about avoiding VPN blocks stops at the IP address: get off a shared datacenter subnet, move to a clean residential IP, and the problem goes away. That covers the first check every website runs, and for simpler sites it is enough.

Protected sites, anti-bot platforms, payment gateways and game anti-cheat systems go much further. Even when an exit IP belongs to a consumer broadband ISP with a zero fraud score, a conventional VPN leaks unmistakable clues at the network and transport layers — from the maximum segment size advertised in the very first TCP packet to timing gaps, ICMP behaviour and open ports on the exit host.

This article breaks down the signals websites actually inspect to spot a VPN, and explains how Spettro's architecture eliminates them.

1. IP reputation and ASN lookups

The cheapest check happens before the application layer even finishes loading. The site looks up your source IP in databases such as MaxMind, IPinfo, IPQualityScore or its own internal lists to see whether the address belongs to a hosting ASN, a known VPN range, or an IP shared by hundreds of users. We cover this layer in what a residential VPN is and IP fraud scores explained.

Once an IP passes that lookup, detection shifts down to the wire itself.

2. MTU reduction and TCP MSS clamping

This is one of the most reliable VPN giveaways on the internet, and almost no consumer VPN fixes it.

On an ordinary Ethernet or home fibre connection, the Maximum Transmission Unit (MTU) is 1500 bytes. Subtracting a 20-byte IPv4 header and a 20-byte TCP header leaves a TCP Maximum Segment Size (MSS) of 1460 bytes (or 1452 bytes on PPPoE DSL lines). Your operating system advertises that MSS right inside the TCP SYN packet that opens every connection.

A VPN tunnel has to wrap your entire original IP packet inside an outer encryption header. For WireGuard over IPv4, the outer IPv4 header (20 bytes), UDP header (8 bytes), WireGuard transport header (16 bytes) and Poly1305 authentication tag (16 bytes) consume at least 60 bytes — and up to 80 bytes over IPv6, even before any obfuscation padding. To avoid fragmentation, WireGuard interfaces default to an MTU of 1420 bytes, and many VPN clients drop lower (1380 to 1280 bytes) to survive restrictive networks or PPPoE links.

On a standard Linux NAT VPN server, your device's TCP SYN simply passes through the gateway with its MSS clamped down to 1380 bytes or less. Passive fingerprinting engines such as p0f and FoxIO's JA4T read the MSS field directly from that first SYN packet. A desktop browser arriving from a US broadband ISP with a 1380-byte or 1340-byte MSS immediately stands out as encapsulated tunnel traffic.

3. Passive TCP fingerprinting and TTL anomalies

Alongside the MSS, every TCP SYN carries an initial Time-to-Live (TTL), window size, window scale factor and an ordered list of TCP options. Together they identify the sending operating system's network stack — Windows, macOS, Linux, Android or iOS — with high accuracy.

VPNs tend to trip this check in one of two opposite ways:

  • Naive Layer-3 forwarding. If packets are forwarded through an extra tunnel hop without care, the IP TTL arrives lower than expected for the ISP's geography, while the clamped MSS contradicts the rest of the OS signature.
  • Naive server-side TCP termination. Some providers terminate TCP at the exit server to rewrite the MSS back to 1460, using the host's stock Linux kernel stack. That replaces the MTU leak with a worse one: a browser claiming to be Windows or macOS now opens connections with Linux's TTL (64), window scale and option layout.

We break down the exact fields inspected by p0f and JA4T in our article on OS and latency emulation.

4. Cross-layer latency: TCP RTT vs browser and TLS RTT

Timing exposes tunnels from two angles, depending on whether the VPN forwards TCP or terminates it at the exit:

  • TCP vs TLS/application round-trip mismatch. When an exit server terminates TCP on your behalf, the server answers the website's SYN-ACK in a few milliseconds from the exit datacenter, while the encrypted TLS handshake and browser requests still have to travel all the way back to your device. Comparing those two round trips — as demonstrated in BADPASS and at NDSS 2025 — exposes the split immediately.
  • Distance and browser-side timing checks. Even on a pure forwarding VPN, JavaScript timing probes, WebSocket pings and JA4L handshake measurements can compare the measured round trip against the physical distance between the site's edge server and the exit IP's advertised city. An IP geolocated in Northern Virginia taking 150 ms to reach a server in Ashburn, or showing timing jitter characteristic of a transoceanic link, raises flags on high-security endpoints.

5. ICMP, Path MTU and active exit-IP probing

Detection is not always strictly passive. Anti-fraud systems and IP intelligence crawlers also probe exit addresses directly:

  • ICMP and Path MTU behaviour. Sending packets with the Don't Fragment (DF) bit set or inspecting ICMP Type 3 Code 4 (Fragmentation Needed) responses can reveal a 1420-byte bottleneck behind an IP that claims to be a 1500-byte home line.
  • Port and service scanning. Data aggregators continuously scan residential and hosting ranges for open VPN ports (UDP 51820, 1194, 500/4500), SSH banners or management interfaces. If an exit IP answers like a Linux VPS, it gets tagged as a VPN or hosting endpoint regardless of which ISP announced the block.

6. Browser-side leaks

Finally, a website running JavaScript in your browser can catch a VPN without touching the transport layer at all:

  • DNS leaks, where DNS queries leave outside the tunnel and resolve through your real ISP's resolver in another region.
  • WebRTC ICE/STUN leaks, where peer-to-peer candidate discovery exposes a non-tunnelled interface address.
  • Timezone and locale mismatches, such as a browser reporting Europe/Berlin while exiting from an IP in Virginia.

Why Spettro's VPN does not get detected

Fixing one of these layers while leaving the others exposed does not hold up against modern detection. Spettro's VPN is engineered so every layer agrees with the next:

  • Dedicated Frontier residential IP. Every subscriber gets an unshared US consumer ISP address in Ashburn, VA from clean subnets with no prior VPN or proxy history.
  • Obfuscated WireGuard on the ingress. Between your device and our gateway, obfuscated handshakes keep local firewalls and DPI from dropping the tunnel.
  • In-house TCP stack at the exit. Instead of forwarding clamped 1380-byte tunnel frames out of a Linux NAT box, outbound TCP connections leave through our own user-space TCP stack. Every connection advertises a clean 1460-byte Ethernet MSS, eliminating the tunnel MTU/MSS fingerprint completely — no matter what encapsulation or obfuscation runs on the tunnel side.
  • OS and latency emulation. Because the exit runs the same in-house transport stack that powers our proxies, outbound TCP handshakes carry authentic OS fingerprints (configurable per device for Windows, macOS, Android or iOS) and natural home-line latency emulation rather than a giveaway 2 ms datacenter handshake or a stock Linux signature.
  • Probing hardened at the edge. Our exit IPs do not expose open server ports or daemon banners to third-party scanners, keeping the subnets clean in IP intelligence databases over time.

What a VPN still cannot fix for you

A clean transport layer and a residential IP remove every network-level signal a website can measure. A few device-level details remain on your side:

  • Route DNS through the tunnel so resolver lookups match your exit IP rather than your local ISP.
  • Be mindful of browser timezone and WebRTC settings on sites that strictly cross-check system locale against IP geolocation.
  • Account behaviour still matters: even a genuine home connection will trigger risk checks if it hammers login endpoints or behaves like an automated script.

What we deliver

Spettro's residential VPN combines a dedicated Frontier IP in Ashburn, VA, obfuscated WireGuard, zero logs and our in-house TCP stack with OS and latency emulation — up to 1 Gbps. Full details and pricing are on the VPN page.

References

  1. J. Mogul and S. Deering, RFC 1191: Path MTU Discovery, IETF, 1990.
  2. Jason A. Donenfeld, WireGuard: Next Generation Kernel Network Tunnel, NDSS 2017.
  3. Michal Zalewski, p0f v3, passive OS fingerprinting.
  4. John Althouse, JA4T: TCP Fingerprinting, FoxIO, 2024.
  5. John Althouse, JA4+ Network Fingerprinting, FoxIO, 2023.
  6. Elisa Chiapponi, Marc Dacier, Olivier Thonnard, Mohamed Fangar and Vincent Rigal, BADPASS: Bots Taking ADvantage of Proxy as a Service, ISPEC 2022.
  7. Diwen Xue, Robert Stanley, Piyush Kumar and Roya Ensafi, The Discriminative Power of Cross-layer RTTs in Fingerprinting Proxy Traffic, NDSS 2025.