Skip to content
TalonZeng

You Turned On a VPN. Why Does the Site Still Smell Home?

Shanghai on an LA node: IPv4 looks fine while DNS, IPv6, and WebRTC can still spill. IP, TUN, Kill Switch, ASN, “native clean” myths—and what actually counts as a leak.

zhudi12 min read
Share
VPN on, still leaking: Shanghai user on an LA node

Shanghai, 11 p.m. I refresh a leak-check page and almost laugh.

I’m on China Telecom in Pudong. The LA node just connected. Line one of the report: IP Address — Los Angeles, US. That cheap little relief hits—“Cool. They see America.”

Then the rest of the table loads:

Check

Result

Public IPv4

Los Angeles

DNS

China Telecom

IPv6

China

WebRTC

China public IP

ASN

US datacenter

Timezone

Asia/Shanghai

Browser language

zh-CN

Browser geolocation (if allowed)

Shanghai

IPv4 changed outfits. DNS is still dialing home. IPv6 slipped out the side door. WebRTC stuffed the real exit back into the candidate list. Timezone and language stayed honest: the machine is still UTC+8, UI still Simplified Chinese.

This isn’t “VPNs are useless.” It’s that the internet never identified you with a single IP.

Below: what actually leaks, what’s just device habit, and what vendors mean when they sell “native clean” IPs.

Typical leak matrix: Shanghai user on an LA node

IP: a network address, not a passport#

Packages need addresses. So do packets. That address is an IP—say 8.8.8.8 (IPv4).

Public IP, LAN IP, and CGNAT#

Your laptop might be 192.168.1.100. Outside sites often see 123.x.x.x—the router NATs many devices behind one public exit. Like coworkers with badge numbers who all send mail from the company front desk.

  • LAN IP: inside home/office
  • Public IP: the exit the wider internet sees

Carriers may also run CGNAT: many households share one public IPv4. So “your” public IP may not be yours alone.

IPv4 and IPv6: two roads that can fork#

IPv4 is 32-bit (142.250.72.14). Scarcity drove 128-bit IPv6 (2606:4700:4700::1111).

Easy to miss: one machine can hold both, and each stack can egress differently.

What is an IPv6 leak?#

Classic failure:

  • IPv4: laptop → VPN → US → site
  • IPv6: laptop → local ISP → site

The checker paints IPv4 green while an IPv6-capable site already saw your real ISP exit. That’s an IPv6 leak.

IPv6 isn’t a vulnerability by itself. The question is whether it follows the path you expect. A VPN that handles dual-stack properly can tunnel both. Disabling IPv6 is a stopgap in some setups—not homework for everyone.

IPv4 into the tunnel, IPv6 bypassing

DNS: the phone book—and postcard queries#

You type www.google.com. The machine first asks which IP that name maps to. That’s DNS (Domain Name System)—the internet’s phone book.

DNS leak: traffic in the tunnel, lookups at home#

Common on a “US VPN”:

  • Page traffic: laptop → VPN → US
  • DNS query: laptop → local ISP resolver

The ISP may see which names you asked for. HTTPS wraps page content; classic DNS may still expose the hostname—like a postcard: message sealed or not, the addressee often sits in plain sight.

Myth: DNS leak ≠ the destination site necessarily saw your real IP#

A DNS leak asks who received the name lookups, not “did the target site learn your true public IP.”

Checkers mostly see the recursive resolvers that finished the query—not every hop on your box. So:

  • Resolver in China ≠ automatic leak
  • Resolver in the US ≠ automatic cleanliness

Cross-check routing, resolver ownership, and the real query path.

DoH / DoT: envelopes, not invisibility cloaks#

Classic DNS often uses port 53 (UDP/TCP).

  • DoH: DNS over HTTPS—lookups inside HTTPS
  • DoT: DNS over TLS—usually port 853

Postcard → envelope: harder to snoop on the wire. The resolver still learns the names you ask.

If the VPN already owns DNS, a separate browser DoH setting makes debugging messier. DoH ≠ leak, and TUN doesn’t require killing it. What matters: which path the queries actually take.

DNS postcard vs DoH/DoT envelope

WebRTC: why the browser can report another IP#

WebRTC (Web Real-Time Communication) powers in-page calls, meetings, screen share, P2P data. Useful tech—not a tracker by design.

ICE / STUN / TURN: plan routes, learn the outer address, relay if needed#

Before a call, the browser inventories usable addresses:

  • ICE: tries candidate paths
  • STUN: asks “what address do outsiders see?”
  • TURN: relays when direct paths fail

What is a WebRTC leak?#

HTTPS already exits via the US VPN IP, but STUN bypasses the tunnel and a China Telecom public IP shows up on the check page—classic WebRTC IP leak.

Modern browsers often hide some LAN addresses behind xxxx.local mDNS names instead of raw 192.168.x.x. Seeing a local candidate ≠ exposing a real public IP. One judgment call:

Did WebRTC publish a public address you never wanted the site to see?

Should you nuke WebRTC?#

Not by default. If the tunnel correctly carries WebRTC, it may not leak. Disabling it can break web A/V and P2P. For stricter control, limit interfaces / non-proxied UDP—Chrome doesn’t always give a one-click “kill WebRTC” switch.

WebRTC ICE candidates: tunneled vs bypass

Proxy vs system proxy vs TUN: what did you actually cover?#

“Proxy on” ≠ “VPN on.”

HTTP / SOCKS: only apps that bother to use them#

Chrome → proxy → site. HTTP/SOCKS usually need the app to opt in:

  • Chrome goes through
  • Some desktop app doesn’t
  • System DNS takes another road
  • Some UDP never enters the proxy

A browser showing a proxy IP doesn’t mean the whole machine is covered. SOCKS5 is broader than HTTP; UDP and remote DNS still depend on both ends.

Pit I stepped in: I once only flipped Chrome’s system proxy. Leak sites painted IPv4 green. Then curl in the terminal, the chat client, and a random updater all still egressed on Telecom. The page’s “America” soothed the browser—not the laptop.

System Proxy ≠ full-machine proxy#

It’s an OS-provided config. Apps that honor it use it; apps that roll their own ignore it. System proxy on, plenty of traffic can still go direct.

TUN: a virtual on-ramp, not an encryption halo#

Think of TUN as a virtual ramp inside the OS: matching packets enter the ramp, then the VPN/proxy core.

App → OS stack → TUN → client → internet

Upside: apps needn’t speak HTTP/SOCKS. TUN is only a way to capture IP packets—not encryption by itself, and not a promise every flow hits a remote node. In Clash/Mihomo, sing-box, and friends, TUN can still DIRECT by rule.

Full / Split tunnel and DIRECT#

  • Full tunnel: internet traffic you care about defaults into the VPN
  • Split tunnel: by app / address / rule
  • DIRECT: usually “no remote node”—still subject to OS routing and VPN design

DIRECT in the rule set ≠ an active leak. Ask whether those direct paths are intentional. If you want “normal browsing always on node X,” audit the rule table—not just whether the TUN toggle is lit.

Traffic into the TUN funnel: Full / Split / DIRECT

TUN deep cuts: DNS hijack, Fake-IP, Redir-Host, Strict Route#

DNS “hijacking” (scary name, sometimes intentional)#

The client redirects queries that would hit some resolver into its own module—often to unify DNS. Grabbing port 53 ≠ automatically owning every DoH/DoT query.

Fake-IP#

Instead of handing the app the real site IP immediately, the core returns a managed virtual address and remembers the name mapping. When the app connects to that virtual address, the core decides how to egress. Internal connection bookkeeping—not forging your public identity.

Redir-Host#

More inclined to return real resolved addresses, then handle the connection in-core. Two designs; neither is inherently “more private.”

Strict Route#

Tighter routing constraints; behavior depends on OS, core, and version. Can cut some bypasses. Flipping a switch named Strict Route is not a universal no-leak warranty.

TCP / UDP / QUIC / HTTP/3: different protocols, different paths#

  • TCP: ordered, acked, reliable byte stream
  • UDP: datagrams, fewer guarantees
  • Classic HTTPS can ride TCP; DNS may use UDP/TCP; WebRTC often uses UDP
  • QUIC rides UDP; HTTP/3 rides QUIC

If your config tames TCP but frees UDP, you can get surprise direct paths. QUIC isn’t a leak technology; disabling it ≠ safer. A well-set TUN can carry QUIC fine. Disable only when you’ve confirmed UDP bypass, hit weird compatibility, or need a narrower test.

Kill Switch: when the tunnel dies, brake or barefoot?#

VPN drops; the machine often falls back to the ISP: laptop → carrier → site. The real exit reappears.

Kill Switch idea:

  • VPN up → allow protected traffic through the tunnel
  • VPN down → block that traffic

Emergency brake. Implementations vary; system chatter, LAN, and reconnect traffic often get exceptions. Don’t read it as a zero-leak certificate.

VPN drop: with Kill Switch vs without

ASN: more useful than “says United States”#

An ASN (Autonomous System Number) labels an autonomous system on the internet. Telecom, Unicom, Comcast, Verizon, AWS, Google, Azure, Cloudflare—each runs networks.

Two “US” IPs:

  • A: Comcast — more like consumer broadband
  • B: Amazon AWS — more like a cloud box

Sites combine ASN, prefixes, and third-party DBs to guess network type. ASN isn’t a final “residential vs datacenter” verdict—one ASN can host mixed use. Geo says “where”; ASN helps say “whose network.”

Residential broadband ASN vs cloud ASN

Residential, datacenter, mobile#

  • Residential: consumer/home broadband exits
  • Datacenter / hosting: cloud, VPS, IDC
  • Mobile: mobile-carrier exits (≠ “this phone’s private IP”; hotspots, shared exits, CGNAT are common)

Sites care about country and whether you look like a household vs a proxy pool. Residential isn’t safe by magic; datacenter isn’t guilt. Type is an attribute, not a character judgment.

Static, dynamic, dedicated: three different shirts#

Vendors love bundling them. Keep them apart:

Label

Rough meaning

Static

Long-lived / explicitly assigned

Dynamic

May change with session/lease; home broadband often dynamic ≠ new IP every reboot

Dedicated

Assigned to one customer/use, not a huge shared pool

Dedicated can still be a datacenter address. So: static ≠ residential, dedicated ≠ residential, residential ≠ static.

“Native IP” and “broadcast IP”: market slang, not standards#

VPS/proxy ads shout “US native,” “HK broadcast.” These are not unified internet taxonomy.

  • Native: usually marketing for registration/ownership, routing, carrier, and Geo DBs lining up with the claimed region
  • Broadcast: often “announced via BGP in region X” or Geo nudged there—the slang isn’t consistent

BGP announcement, registry data, and GeoIP are three different things. Registered in A, used in B happens all the time; DBs lag. Don’t trust the sticker alone.

IP “purity”: there is no global exam#

Dashboards flash “95% purity,” “risk 0,” “perfect residential.” Feels crisp. There is no global, site-wide purity standard.

  • IP reputation: each security vendor scores spam, scans, attack reports, known proxy pools, weird automation…
  • Proxy detection: tags VPN/Proxy/Tor/Hosting… databases disagree and go stale
  • Fraud score: often mixes device, login history, transaction, payment—separate IP risk from this session’s overall fraud risk

Same IP, different scores on different sites: normal. Low score ≠ you’re trustworthy, and it doesn’t guarantee a product greets you warmly.

When a seller says “native and pure,” I translate: a few databases haven’t dirtied it today. Next site, next week, next risk model—the label can flip. You’re buying exit attributes plus a reputation slice—not a lifetime hall pass.

IP geo vs browser geolocation: VPN doesn’t rewrite GPS#

  • IP geolocation: guess region from public IP + DBs (Los Angeles)
  • Browser geolocation: Geolocation API after you click Allow—GPS / Wi‑Fi / cellular / OS location…

You’re in Shanghai on an LA VPN: IP says LA; allow location and the page may get Shanghai coordinates. VPN changes egress, not the location stack. Don’t casually grant location—and denying it doesn’t stop coarse region guesses from IP and friends.

Timezone, language, locale: usually not “leaks”#

JS can read Intl.DateTimeFormat().resolvedOptions().timeZone; navigator.language and Accept-Language negotiate content. System language, region, locale (date shapes, decimals, currency) also leak into the UX layer.

US exit + Asia/Shanghai + zh-CN is not an IP leak. Keeping Beijing time on a travel laptop is normal. Chinese UI ≠ physically in China; New York timezone ≠ in New York. Device context can feed risk engines—don’t confuse it with tunnel bypass.

Browser fingerprint: another face, not a second IP#

Version, OS, timezone, language, screen, fonts, Canvas/WebGL/AudioContext, GPU-ish signals… combined, they distinguish environments. That’s fingerprinting.

Hiding IP ≠ indistinguishable browser; killing geolocation ≠ wiping every trait. Forcing a “standard US costume” can make rare combos more distinctive. Prefer less unnecessary exposure over cosplay.

iCloud Private Relay#

Apple’s privacy relay for eligible iCloud+ users—mainly Safari and applicable traffic, dual hop: one layer knows where you connect from without needing the final site; one reaches the site without your original IP. Not a whole-machine VPN. Alongside another VPN or filter, paths still depend on OS and config. Don’t assume “off = more private.”

Browser permissions you forget#

Camera, mic, Bluetooth, USB, serial, HID, clipboard, notifications, local network… mostly legitimate. Rule: don’t leave unused grants open; authorize when needed. Devs especially shouldn’t gut Local Network/USB/Serial just to feel clean. Disabling SIP or breaking TCC to force permission edits is usually a bad trade.

What to test—and what isn’t a leak#

Bucket

Items

Question

Egress

IPv4, IPv6, TCP, UDP

Where does traffic leave?

Infrastructure

DNS, ASN, ISP

Who resolves / owns the exit?

Browser networking

WebRTC, STUN, QUIC

Any side paths?

Device context

Location, timezone, language, fingerprint

What else did the browser hand over?

Prioritize real problems:

  • IPv4 that should be VPN’d going direct
  • IPv6 bypass exposing a real public exit
  • DNS off the expected path
  • WebRTC/STUN publishing an unexpected public IP
  • Protected apps going naked after a drop

Don’t call these “VPN leaks”:

  • US node + Chinese UI / Beijing timezone
  • ASN is AWS
  • DNS via Cloudflare/Google
  • mDNS local names
  • IP tagged as VPN
  • Language ≠ country

Those may feed UX or risk—but they aren’t synonyms for “tunnel failed.”

Seven practical steps#

  1. Know the coverage: browser proxy / system proxy / TUN / full VPN protect different sets.
  2. Check IPv4, IPv6, DNS: the usual crash trio.
  3. Check WebRTC: unexpected public IPs—not panic at any IP string.
  4. Test drop behavior: if you need always-on tunnel, a real Kill Switch beats renaming the browser language.
  5. Manage permissions: location, camera, mic on demand.
  6. Own the exit attributes: ASN, ISP, type, reputation—UA cosplay won’t rewrite them.
  7. Don’t disable features for vibes: IPv6/DoH/WebRTC/QUIC have costs; act on measured risk.

Glossary#

Concept

One line

IP Address

Network communication address

IPv4 / IPv6

Classic vs larger address space

Public IP

Exit outsiders see

NAT / CGNAT

Shared exits for devices (or households)

DNS / DNS Leak

Name → IP; lookups off expected path

DoH / DoT

Encrypted DNS transport

WebRTC / ICE / STUN / TURN

Realtime comms; path finding; outer address; relay

VPN

Traffic via a controlled tunnel

HTTP / SOCKS

Application-layer proxies

TUN Mode

Virtual interface capturing IP packets

Full / Split Tunnel

Default-in vs rule-based

DIRECT

Rule-level direct exit

Fake-IP / Redir-Host

Two proxy DNS styles

TCP / UDP / QUIC / HTTP/3

Different transport / app paths

Kill Switch

Block protected traffic when tunnel is down

ASN / ISP

AS number / provider

Residential / Datacenter / Mobile

Home / hosting / mobile exits

Static / Dynamic / Dedicated

Fixed / changing / exclusive—≠ residential

“Native” / “broadcast” IP

Market slang, not standards

Reputation / proxy detect / fraud score

Vendor scores and tags

Geolocation

IP-DB guess vs device location

Timezone / Locale / Accept-Language

Device/content prefs; usually ≠ leak

Browser fingerprint

Combined environment traits

iCloud Private Relay

Apple dual-hop for specific traffic

Closing#

Think of going online as a trip: IP is the street address, DNS asks directions, VPN is the tunnel you chose, TUN is the on-ramp; IPv6 and WebRTC can be side doors; ASN says whose roads you’re on; location, timezone, and language are habits you carry.

What matters isn’t painting every check the same country, or flipping every switch off.

It’s knowing where data leaves, what gets handed over, which settings actually move privacy, and which “leaks” are just normal device differences.

VPN on ≠ absolute anonymity. Clean DNS ≠ the site can’t tell you’re on a VPN. Residential ≠ safe; datacenter ≠ dangerous.

Don’t chase “100% pure,” “perfect fingerprint hide,” or “one-click no leaks.” The first step isn’t killing every switch—it’s knowing what each one controls.

References#

  1. MDN: WebRTC protocols — https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API/Protocols
  2. MDN: Geolocation API — https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API
  3. ARIN: What is an ASN — https://www.arin.net/resources/guide/asn/
  4. Chrome: Secure DNS — https://support.google.com/chrome/answer/10468685
  5. Chrome Enterprise: WebRTC / QUIC policies — https://support.google.com/chrome/a/answer/2657289
  6. Apple: Manage Location Services — https://support.apple.com/guide/personal-safety/manage-location-services-settings-ips9bf20ad2f/web
  7. Apple: iCloud Private Relay & Privacy — https://www.apple.com/legal/privacy/data/en/icloud-relay/
  8. Mihomo: TUN inbound — https://wiki.metacubex.one/en/config/inbound/tun/
  9. MaxMind: IP Risk Score — https://support.maxmind.com/knowledge-base/articles/minfraud-ip-risk-score

Comments

No comments yet — be the first to leave one.

Related articles