AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

i365Finds Editorial is the independent research and editorial organization behind 365 Wiki. We follow changes in tools, products, services, entertainment, and digital life around the world, turning scattered and fast-moving information into clearly sourced, well-structured public content that is easier to understand and compare.
Indexed 91,206 Wiki articles

What Your ISP Still Sees When You Run a Self-Hosted VPN and Encrypted DNS

Zosha Barry · 365Finds Editorial

Running a self-hosted WireGuard instance on a rented virtual private server (VPS) alongside DNS-over-HTTPS (DoH) or DNS-over-TLS (DoT) feels like the ultimate privacy milestone. You control the operating system. You control the cryptographic keys. No commercial VPN vendor is keeping connection logs, and no local internet service provider (ISP) can snoop on your DNS queries or inspect HTTP hostnames.

Yet the wire tells a different story.

At 365Finds, we regularly encounter homelab enthusiasts who equate end-to-end payload encryption with total network invisibility. It is a dangerous conflation. While a properly configured self-hosted tunnel and encrypted DNS completely blind your ISP to the plain text of your messages, file transfers, and domain names, your ISP sits on the physical wire right outside that tunnel.

Your ISP still sees the exact destination IP of your VPS, the underlying transport protocol, the precise timing and cadence of every packet, the directional volume of your traffic, and the unmistakable behavioral fingerprints of the services you use.

Understanding what metadata leaks—and why—is essential before relying on a single VPS node for sensitive threat models.


The Outer Envelope: Destination IP and Protocol Identification

When your device establishes an encrypted tunnel to your cloud server, your local ISP cannot see what is inside the payload. But network switches and edge routers must read the outer envelope to route your packets across the internet.

To your local ISP, every single packet leaving your router carries:

The Single-Tenant Attribution Trap

This outer header exposes the primary structural difference between commercial VPN services and a self-hosted node.

Commercial VPN providers route thousands of simultaneous subscribers through shared exit gateways. To an ISP observing a user connecting to a shared commercial server, the destination IP points to a multi-tenant node carrying millions of mixed packets. Linking a specific egress web request back to a single residential customer requires external cooperation or advanced timing correlation across multiple autonomous systems.

With a self-hosted VPS, you are almost always the sole tenant. Your home connection routes 100% of its outbound internet activity to a single static IP address hosted by providers like Hetzner, DigitalOcean, OVH, or Linode.

A trivial Autonomous System Number (ASN) lookup instantly reveals that your home IP is funneled exclusively into a data center hosting facility. Because no other users share that VPS IP, your local ISP knows with near certainty that every byte flowing into that server belongs to your household. You have traded shared anonymity in a crowd for exclusive, isolated attribution.

+------------------+         +--------------------+         +--------------------+
|  Home Device     |  Outer  |  Local ISP Edge    |  Outer  |  Self-Hosted VPS   |
|  (Residential IP)| ------> |  (Inspects Outer   | ------> |  (Dedicated ASN/IP)|
+------------------+ Header  |   Headers & Flow)  | Header  +--------------------+
                             +--------------------+
                                      |
                     [Logged: Home IP -> VPS IP,
                      UDP Port, Timestamps, Sizes]

Protocol Signatures and Deep Packet Inspection

Unless you wrap your tunnel in an obfuscation layer, your ISP’s Deep Packet Inspection (DPI) appliances can identify the VPN protocol itself within milliseconds.

Standard WireGuard makes no attempt to disguise its cryptographic handshakes. A WireGuard handshake initiation packet is exactly 148 bytes. The handshake response is exactly 92 bytes. Cookie reply packets are 64 bytes.

Even if you move WireGuard from its default port 51820 to port 443 or port 53, modern traffic classifiers do not rely on port numbers. They match the static byte lengths of the Noise protocol initiation sequence and the absence of TLS record headers. Your ISP may not know what you are browsing, but they know with complete certainty that you are running WireGuard to a dedicated cloud server.


Packet Dynamics: How Timing and Volume Betray Your Activity

Payload encryption hides characters; it does not hide geometry. Network traffic has distinct shapes, and modern network observers analyze those shapes using traffic analysis and statistical flow profiling.

Standard WireGuard adds a fixed 32-byte overhead to encapsulated IP packets (plus a 4-byte alignment). It does not pad data packets to uniform lengths by default. If your browser sends a 340-byte HTTP request inside the tunnel, an observer on the local link sees an outer UDP packet of roughly 372 bytes. When a web server replies with a full Maximum Transmission Unit (MTU) packet, the ISP sees an outer packet near 1420 bytes.

These structural properties enable an ISP to infer specific user behaviors through metadata analysis:

1. Website Fingerprinting

Even over encrypted tunnels, loading a web page produces an identifiable cascade of requests. When you visit a website, your browser fetches an initial HTML document, parses references to external resources, and fires off simultaneous bursts of requests for JavaScript, stylesheets, images, and API endpoints.

This sequence generates a distinct fingerprint:

In academic research, machine learning classifiers trained on packet sizes and directional sequences—such as Deep Fingerprinting or CUMUL—can identify visits to popular websites over encrypted tunnels with accuracy rates often exceeding 80% to 90%. Because your self-hosted tunnel lacks cross-traffic noise from other users, your traffic profile is clean, making automated website fingerprinting substantially easier than on congested, multi-user tunnels.

Traffic Profile Signatures Visible to Local ISP:

Web Browsing:     [Req] -> [Tiny Ack] -> [Large Downlink Burst] -> [Pause]
Video Streaming:  [Steady rhythmic buffer chunks: 5MB every 8-10 seconds]
Voice / VoIP:     [Symmetric 50-100 pps, small packets (60-120 bytes), low latency]
Idle Connection:  [WireGuard PersistentKeepalive: 32-byte pulse every 25s]

2. Application and Content Classification

Your ISP does not need to decrypt your video to know you are streaming video.

3. Behavioral and Routine Profiling

Metadata reveals human circadian rhythms. By simply recording when your tunnel is transmitting active data bursts versus when it is sending periodic keepalive pings, an ISP can log:

If your WireGuard configuration includes PersistentKeepalive = 25, your machine transmits a 32-byte authenticated keepalive packet precisely every 25 seconds during idle periods. To an intermediate network observer, this rhythmic heartbeat announces that your tunnel remains alive, waiting for your next interactive burst.


Where Encrypted DNS Fits—and Where It Fails

Many self-hosters introduce DNS-over-HTTPS (DoH, RFC 8484) or DNS-over-TLS (DoT, RFC 7858) into their stack, believing it solves the metadata problem. The actual impact depends entirely on where the DNS client sits and how traffic is routed.

Scenario A: Encrypted DNS inside Full-Tunnel VPN
[Device] ==(DoH inside WireGuard)==> [Self-Hosted VPS Resolver] ----> [Target Sites]
Local ISP sees: Only WireGuard UDP traffic to VPS IP. No distinct DoH packets.

Scenario B: Encrypted DNS outside Tunnel / Split DNS
[Device] ----(DoH over TCP/443 to Cloudflare 1.1.1.1)----> [Internet]
Local ISP sees: Plain destination IP 1.1.1.1, TLS handshake, DoH timing, independent of VPN.

Scenario A: Encrypted DNS Inside the VPN Tunnel

If your device sends all traffic through WireGuard (AllowedIPs = 0.0.0.0/0, ::/0) and your DNS queries are directed to a local resolver on your VPS (like Unbound) or forwarded via DoH/DoT from the VPS, your local ISP never sees the DoH or DoT traffic directly.

To your local ISP, those DNS requests are simply small, encrypted WireGuard packets.

However, DoH does not eliminate the temporal correlation between a resolution and a data transfer:

  1. Your client emits a single upstream packet of roughly 100 to 200 bytes (the encapsulated DNS query).
  2. A single downstream packet returns roughly 150 to 300 bytes (the encapsulated DNS answer).
  3. Milliseconds later, a flurry of bi-directional packets begins to the destination service.

Even though the queried domain name is not visible in plain text, the timing pair preceding a larger connection establishes a clear marker that a domain lookup just occurred.

Scenario B: Encrypted DNS Outside the Tunnel (Leakage and Fallbacks)

A frequent misconfiguration occurs when operating system network daemons (such as systemd-resolved on Linux or Windows Smart Multi-Homed Name Resolution) query an external DoH endpoint (such as 1.1.1.1 or 8.8.8.8) outside the WireGuard interface.

In this scenario:

Furthermore, if IPv6 is misconfigured or lacks tunnel parity, your system may leak standard UDP port 53 DNS queries over IPv6 straight to your ISP's local resolvers while IPv4 routes through WireGuard.

The Upstream Problem: What the Hosting Provider Sees

While your local ISP cannot see your DNS queries in Scenario A, your VPS hosting provider and its upstream transit carriers can.

If your self-hosted VPS runs a recursive resolver like Unbound querying root and authoritative DNS servers directly:

You have not eliminated DNS metadata exposure; you have merely relocated that exposure from your residential ISP to the network provider of your cloud host.


Technical Comparison: Metadata Exposure Profiles

To understand where your threat model lands, consider how metadata exposure compares across different architectural setups:

Observation VectorDirect Connection (No VPN)Self-Hosted WireGuard + DoHCommercial Multi-Tenant VPNThe Tor Network
Destination Web Server IPVisible to local ISPHidden from local ISP; visible to VPS hostHidden from local ISP; hidden from individual userHidden from local ISP and entry guard
Domain Names (SNI / DNS)Plaintext DNS & SNI visible to ISPHidden from local ISP; visible at VPS exitHidden from local ISP; visible at exit gatewayFully onion-routed; hidden from local ISP
Tunnel Destination IPN/ADedicated VPS IP (tied to your account)Shared IP (mixed with thousands of users)Tor Entry Guard / Bridge IP
Packet Size ProfilingFull visibility into raw MTU/lengthsWireGuard overhead added; no paddingProtocol overhead added; minimal paddingFixed 512-byte cells; highly resistant
Timing & Cadence AnalysisFull visibilityHigh vulnerability to website fingerprintingModerate vulnerability (cross-traffic noise)Mitigated by circuit multiplexing
Identity AttributionDirect mapping to ISP billing accountDedicated single-tenant VPS mappingLarge user pool (requires provider logs/timing)Three-hop cryptographic separation

365Finds Assessment: Assessing the Threat Model

At 365Finds, we admire self-hosting for what it actually achieves: technical sovereignty. Running your own VPN node frees you from the marketing claims, dubious privacy policies, and potential logging scandals of commercial VPN providers. You know exactly what software is running on your server.

However, self-hosting is fundamentally a defense against untargeted commercial monetization, not metadata surveillance.

If your adversary is an automated ISP database categorizing your web activity for ad brokers, a self-hosted WireGuard instance with internal DNS resolution is an effective barrier.

If your threat model includes an ISP operating under legal surveillance orders, network-level adversarial tracking, or targeted website fingerprinting, a single-tenant VPS with standard WireGuard provides little structural defense.


Practical Measures to Harden Your Tunnel Metadata

If you choose to run a self-hosted VPN tunnel, implement these technical adjustments to minimize metadata leakage:

  1. Enforce Complete Tunneling: Ensure your WireGuard configuration routes all traffic unconditionally:

    [Peer]
    AllowedIPs = 0.0.0.0/0, ::/0
    

    Verify that your client operating system does not route DNS requests to local network gateway addresses or secondary network interfaces.

  2. Run DoH or DoT Out of the VPS: Do not configure your VPS to query authoritative nameservers over unencrypted UDP port 53. Configure your server-side resolver (such as Unbound, CoreDNS, or dnscrypt-proxy) to forward upstream queries via DoH or DoT to privacy-focused upstream resolvers using encrypted transports. This prevents the VPS hosting provider’s upstream transit from trivially sniffing plain text DNS queries.

  3. Consider Obfuscation and Packet Padding Layers: Standard WireGuard does not pad packets. If traffic analysis resistance is required, consider protocols or forks designed for censorship circumvention and shape obfuscation:

    • AmneziaWG: Modifies the WireGuard handshake sizes and injects random junk headers to defeat signature-based DPI.
    • Shadowsocks / V2Ray / Xray: Wraps traffic in TLS or custom padding schemes to smooth out distinctive packet length distributions.
  4. Disable Keepalives When Static Connections Are Not Required: If your client maintains a stable public IP and does not sit behind aggressive NAT that drops state tables, avoid setting PersistentKeepalive = 25. Removing this heartbeat stops your client from broadcasting a regular 32-byte pulse when idle.

  5. Acknowledge the Need for Multi-Hop Mixing: If your threat model demands true resistance to traffic correlation and destination attribution, no single-hop VPN—self-hosted or commercial—can protect you against a capable network observer. In those scenarios, routing traffic through a multi-node mix network like Tor remains the only structurally viable solution.


References