When Data Leaves Your Network

How Do You Protect It Out There?

You've firewalled your apps. You've monitored your router.

Now your packets are leaving the building.

What Happens When a Packet Leaves Your House

  • Your ISP sees everything unencrypted and all metadata for everything else
    • DNS queries unless you're using DoH/DoT — which ISP DNS resolvers log by design
    • Which IPs you connect to, when, how much data, how often — retained by law in many countries
    • In the USA: ISPs legally sell this to data brokers — your browsing history is a product
  • The destination sees your real IP address
    • Geolocation to city level is trivial — any IP lookup service does it in milliseconds
    • Correlating your activity across multiple sites using the same IP is standard ad-tech practice
  • Every router hop between you and the destination sees packet headers
    • Source IP, destination IP, port, timing — all visible even with full HTTPS encryption
    • Traffic analysis attacks are real: volume plus timing alone can fingerprint what you're doing
  • Nation-state and large carrier surveillance
    • Deep packet inspection at backbone level — not hypothetical, documented in Snowden disclosures
    • Bulk metadata collection correlates millions of users — you don't need to be a target to be in the data
  • Your browser and apps leak identity by fingerprint
    • Font rendering, WebGL, screen size, extension list, timezone — unique without any cookie
    • JavaScript fingerprinting identifies you across sessions even with a VPN and fresh cookies
  • The core insight: HTTPS encrypts content, not identity
    • HTTPS hides what you're reading — it does not hide who you are or who you're talking to
    • Everything above happens to HTTPS traffic — encryption is necessary but not sufficient

The Fundamental Truth About All of This

Every privacy tool moves trust somewhere. None of them eliminate it.
  • When you use a VPN
    • You stop trusting your ISP with your traffic — you start trusting your VPN provider instead
    • The VPN provider sees everything your ISP used to see, plus your real identity from payment
    • If the VPN logs and cooperates with authorities, you have less protection than you thought
    • If the VPN is operated by an intelligence agency — some are — you have none at all
  • When you use Tor
    • You distribute trust across three relays — no single relay sees both who you are and your destination
    • You trust that your adversary does not control enough of the Tor network to correlate
    • Exit node operators see your unencrypted traffic if you're not using HTTPS at the destination
  • When you use I2P or a mesh network
    • You trust the peers in your network — fine if it's your own infrastructure
    • A fully decentralized network means your traffic routes through strangers you can't vet
  • When you self-host
    • You trust your own infrastructure, your operational security, and your VPS provider's honesty
    • The strongest model for specific use cases — and the most work to maintain
  • The question is never "does this give me perfect privacy?"
    • It doesn't. Nothing does. The question is: who do I trust, and with what specifically?
    • Define your adversary before choosing your tool — the right answer depends entirely on your threat model

VPNs — Moving Your Trust to the Tunnel

Source: windscribe.com · riseup.net/en/vpn · mullvad.net

What VPNs Do and What They Don't

  • Encrypts all your traffic and routes it through a server you choose — ISP sees only the VPN connection
  • The destination sees the VPN server's IP, not yours — effective for geo-unblocking and IP hiding
  • The VPN provider sees everything your ISP used to see, plus your real IP and payment identity
  • Every provider claims no-log policy — court orders and government requests reveal the actual truth
  • Jurisdiction matters: Iceland has different legal obligations for data disclosure than the USA
  • Kill switch: blocks all traffic if VPN drops — prevents accidental exposure of your real IP

Recommended Providers

  • Windscribe — free 10GB/month, no credit card, open source clients, Canadian company
    • Built-in ROBERT blocker (ads/trackers at VPN level), published warrant canary, windscribe.com
  • Riseup VPN — free, no account required, run by a radical tech collective since 1999
    • Funded by donations, not VC money — operated by people with genuine skin in the privacy game
    • Slow but authentic — riseup.net/en/vpn
  • Mullvad — accepts cash and Monero, no-account model (just a number), mullvad.net
    • Audited no-log policy, RAM-only servers, regularly deletes payment records
  • VPNs are ISP privacy, not anonymity — if you need stronger guarantees than "my ISP can't see this"

Tor — The Onion Router

Source: torproject.org/download

How the Three-Layer Model Works

  • Routes your traffic through three relays: Guard → Middle → Exit — each knows only adjacent hops
  • Guard node: knows your IP, does not know the destination you're visiting
  • Middle node: knows neither end — a pure relay with no information about source or destination
  • Exit node: knows the destination, does not know your IP — sees unencrypted traffic if no HTTPS
  • Traffic is encrypted three times — one layer peeled at each hop — onion routing
  • Your ISP sees: "this device is talking to a Tor guard node" and nothing else

Strengths, Limits, and Practical Use

  • Strong for: whistleblowers, journalists, activists under genuine threat — designed for this use case
  • Strong for: .onion hidden services — no exit node involved, both ends fully anonymous
  • Limitation: slow — three volunteer hops with unpredictable bandwidth, not suitable for streaming
  • Limitation: some sites block known Tor exit IPs — .onion versions exist for major services (SecureDrop)
  • Limitation: Tor Browser is required — using Tor as a proxy in a regular browser creates fingerprint leaks
  • Limitation: traffic analysis attacks at nation-state scale are a documented research concern
  • Tor Browser: torproject.org — the correct way to use Tor casually, do not customize it
  • Tails OS: tails.boum.org — routes all traffic through Tor, amnesiac (leaves no trace on disk)

I2P and Lokinet — Deeper Anonymity Networks

I2P — The Invisible Internet Project

  • A fully internal overlay network — not a way to reach the regular internet anonymously
  • Every participant is a router, relaying traffic for others — garlic routing bundles multiple messages
  • Garlic routing vs onion routing: messages bundled into one delivery, harder to traffic-correlate
  • Designed for services within I2P: eepsites (.i2p domains), I2P-Bote email, I2P-native torrents
  • No exit to clearnet by default — for clearnet privacy, use Tor or a VPN instead
  • Install: i2pd (C++ implementation, lighter) from i2pd.website — Linux, Windows, macOS, Docker
  • When to use: hosting or accessing services with strong metadata protection inside the network

Lokinet — Tor With Economic Incentives

  • Built on LLARP (Low Latency Anonymous Routing Protocol) — part of the Oxen Privacy ecosystem
  • Staked nodes: relay operators lock up Oxen cryptocurrency — economic skin in the game
  • SNApps: Lokinet's .onion equivalent — .loki addresses accessible only inside Lokinet
  • Lower latency than Tor: designed for real-time use (VoIP, gaming) — routes all IP traffic, not TCP only
  • Exit nodes are also staked — accountability mechanism that Tor's volunteer model lacks
  • Honest assessment: architecturally innovative, but much smaller network than Tor
  • Tor's scale provides protection Lokinet cannot match yet — interesting to watch, not first choice today
  • Download: lokinet.org — Linux, Windows, macOS, Android — combine with Session messenger

XRAY — Your VPN Is a Website

Source: github.com/MarcusHoltz/hidden-vpn-that-looks-like-a-website

Why Standard VPNs Get Blocked

  • DPI recognizes every major VPN: WireGuard handshake, OpenVPN cert exchange, Tor guard connection — all fingerprinted
  • China's Great Firewall terminates them in real time — the same techniques spread to corporate and hotel networks
  • Shadowsocks: the original answer — SOCKS5 proxy with obfuscation, traffic looks like noise, designed in China
  • Next level needed: traffic must look exactly like HTTPS to a domain a real company would own
  • The goal: an ISP watching your traffic sees TLS to a hostname — and nothing more unusual than that

XRAY Trojan + Decoy Website

  • VLESS protocol with Trojan transport: your VPN connection IS HTTPS to a domain you own
  • Decoy website auto-generated — six industry presets: cloud platform, API gateway, security firm, analytics, dev tools, CDN
  • ISP sees a valid TLS handshake to your domain and encrypted HTTPS — identical to any legitimate SaaS site
  • Docker deployment: port 80 (Nginx + ACME cert), port 443 (HTTPS/VLESS), port 7681 (ttyd terminal in browser)
  • All config stored in ./data/ — persistent across container restarts, easy to back up
  • Cloudflare CDN optional: traffic appears to route through a major CDN — another layer of cover
  • Self-host on any $5/month VPS (Hetzner, Vultr, DigitalOcean) — you trust yourself, not a provider

VPN over Port 53 — When Every Port Is Blocked

Source: github.com/MarcusHoltz/vpn-over-port-53

The Layered Evasion Stack

  • The problem: corporate firewalls and hotel networks block every common VPN port — 51820, 1194, 500
  • Layer 1 — WireGuard normally: fastest path, use easy-wg-quick to deploy — works on open networks
  • Layer 2 — WireGuard over port 53: nftables redirects port 53 → 51820 on the server — most firewalls pass DNS
    • DNS port is almost always open outbound — if UDP/53 works, WireGuard works through it
    • No tunnel overhead: it's still WireGuard, just arriving on port 53
  • Layer 3 — DNS tunnel fallback: iodined + CoreDNS in Docker — actual data encoded in DNS queries
    • For networks with transparent DNS proxies that block direct port-53 connections to outside servers
    • Slower than Layer 2 but works when the network actively intercepts DNS traffic
  • CrowdSec monitoring built into the stack — logs and blocks abuse of your server while it's exposed

When Even DNS is Inspected

  • Some networks run deep inspection on DNS traffic — they see iodine's encoding pattern and block it
  • Layer 4 — XRAY VLESS on port 443: final fallback, inside a TLS HTTPS session to a real domain
    • Combines with the decoy website approach — traffic is indistinguishable from normal HTTPS
  • The full progression: WireGuard → WireGuard/53 → DNS tunnel → XRAY/443
  • Each layer is a fallback — the stack automatically routes through the least-restricted available path
  • Deploy server once, clients try each method in order — works on airplane WiFi, corporate NAT, hotel captive portals

Private Mesh Networks — Build Your Own Internet

Yggdrasil and Tailscale

  • Yggdrasil — end-to-end encrypted IPv6 overlay network, fully decentralized
    • Every node gets a permanent IPv6 address derived from its public key — no central registry
    • Routes through other Yggdrasil peers (everyone routes for everyone, like I2P)
    • Connect to the public Yggdrasil network or run your own private subnet
    • yggdrasil-network.github.io — Linux, Windows, macOS, Android, iOS
  • Tailscale — WireGuard-based mesh VPN, dead simple, free for personal use up to 100 devices
    • Install on all your devices — they auto-discover each other and connect directly (P2P when possible)
    • Control plane runs on Tailscale's servers — this is the trust you're accepting with convenience
    • Ideal for connecting your own devices: phone, laptop, home server, VPS — one mesh
    • tailscale.com — free tier covers most personal use cases with no configuration required

NetBird and Nebula — Self-Hostable Alternatives

  • NetBird — open source Tailscale alternative with self-hostable control plane
    • Same WireGuard mesh, but you run the management dashboard — no Tailscale trust required
    • netbird.io — cloud or self-hosted, GUI dashboard, access control policies
  • Nebula — originally built by Slack, now open source (github.com/slackhq/nebula)
    • Requires a "lighthouse" server for peer discovery — run your own, no external dependency
    • More complex to configure but fully self-contained and suitable for larger deployments
    • Good for: infrastructure-grade mesh between servers, remote offices, security-critical environments

Choosing Your Tool — The Honest Comparison

Tool Clearnet? Anonymity Speed Complexity Best For
Windscribe VPN Yes Low — trust VPN Fast Very Low ISP privacy, geo-unblocking
Riseup VPN Yes Low — trust Riseup Medium Very Low Activist / political use
Mullvad Yes Low-Med — audited Fast Low Serious daily ISP privacy
Tor Browser Yes (exit) High Slow Low Sensitive browsing, .onion
Tails OS Yes (via Tor) Very High Slow Medium High-stakes, amnesiac sessions
I2P No (internal) High Slow Medium Internal services, communities
Lokinet Yes (exit) Medium Medium Medium .loki services, real-time
Shadowsocks Yes Low — trust server Fast Medium Bypassing DPI / censorship
XRAY Trojan Yes Low — trust server Fast High Evading DPI, indistinguishable HTTPS
VPN over port 53 Yes Low — trust server Fast→Slow Medium Restricted networks, every port blocked
Tailscale No (mesh) Trust Tailscale Fast Very Low Connecting your own devices
NetBird/Nebula No (mesh) Self-hosted Fast High Self-hosted mesh, no trust
  • Daily ISP privacy: Windscribe or Mullvad VPN — simple, effective, specific guarantee
  • Sensitive browsing: Tor Browser, always with HTTPS at the destination
  • Bypassing national censorship/DPI: XRAY Trojan self-hosted on a VPS you control
  • Your own infrastructure: Tailscale (easy) or NetBird/Nebula (self-hosted control plane)
  • Maximum metadata protection: I2P or Tor hidden services — never touch clearnet for sensitive activity

Tor Hidden Services — Put Yourself on the Onion Network

Source: github.com/MarcusHoltz/tor-hidden-service

What a Hidden Service Is and Why

  • A server accessible only via Tor — a .onion address, no real IP ever revealed to anyone
  • Tor relays rendezvous in the middle: visitor is anonymous, server is anonymous, no exit node involved
  • End-to-end encryption both directions always — no HTTPS certificate needed, Tor provides it
  • No port forwarding required — Tor hidden services don't accept direct inbound connections at all
  • Host anything that can't be taken down by IP blocking — the IP simply doesn't exist publicly
  • Your own .onion: reach your home server from anywhere in the world with no exposed IP or open ports
  • Automated Docker setup: one script handles directories, permissions, key generation, and tor config
  • Supports unattended/CI-CD mode via environment variables — deploy without interactive prompts

Vanity Addresses and Client Authentication

  • Standard .onion: 56-character random string derived from an Ed25519 public key — not memorable
  • Vanity address: brute-force key generation until your chosen prefix matches — same cryptographic strength
  • Tool: mkp224o — github.com/cathugger/mkp224o — generates v3 vanity .onion addresses
  • Real timing on Raspberry Pi 2B: 6-char prefix ≈ 8.5 hours · 8-char prefix ≈ 1 year — plan accordingly
  • On modern x86 hardware: 6 chars in minutes, 8 chars in days — use a fast machine for longer prefixes
  • Client authentication: X25519 cryptography — generate an authorized_clients file on the server
    • Only clients with the matching private key can even connect to the hidden service — invisible to everyone else
  • Key material protected with strict permissions (600) and .gitignore — safe to manage in version control

Opsec — The Part the Tools Can't Fix

  • The weakest link is almost never the cryptography
    • Tor is secure. Logging into your real Gmail over Tor is not. The cryptography held; you didn't.
  • Compartmentalization — keep identities strictly separate
    • Never mix real-name accounts with anonymous ones — not in the same browser, not on the same device
    • Tor Browser handles session separation automatically: fresh identity on every restart
    • For strong separation: create accounts only over Tor, never reuse usernames across contexts
  • Metadata is content — take it as seriously as the data itself
    • "I only care about the metadata" — former NSA Director Michael Hayden, on why metadata is enough
    • Who you talk to, when, for how long, how often — tells a complete story without reading content
    • Timing attacks: you send a message, a suspicious person receives one seconds later — correlation possible
  • The browser fingerprinting trap
    • Tor Browser standardizes fingerprint across all users — that's the protection, not the Tor circuit
    • Installing extensions, changing settings, or maximizing the window breaks the uniformity
    • Use Tor Browser exactly as it ships — resist every urge to customize it
  • The account problem — the most common failure mode
    • Any service requiring account creation links your activity to that account permanently
    • Anonymous Tor traffic provides zero protection if you then sign into a Google account
  • Physical layer — often overlooked entirely
    • Where are you when you connect? Coffee shop cameras. WiFi MAC address visible to the AP.
    • Randomize your MAC address — most modern OS support this — especially on untrusted networks
    • Burner devices and SIM cards exist for situations where the physical layer matters

The Full Stack — Device to Network to Beyond

YOUR DATA
    |
    ▼  ← TrackerControl / WFC / OpenSnitch / Little Snitch
[ Device firewall ]  — blocks apps from calling home on your device
    |
    ▼  ← OPNsense: ntopng, Suricata, DNS blocklists, IP blocklists
[ Your router ]  — network-level visibility and blocking for all devices
    |
    ▼  ← VPN / Tor / XRAY / Tailscale
[ Encrypted tunnel ]  — hides traffic from ISP, obscures destination IP
    |
    ▼
[ Exit point / Relay network ]
    |
    ▼
[ Destination ]
  • Just ISP privacy + ad blocking: OPNsense + DNS blocklists + Windscribe or Riseup VPN
  • Sensitive browsing: Tor Browser for sensitive sessions; VPN + device firewall for everything else
  • Self-hosting without IP exposure: Tailscale for device mesh + Tor hidden service for public access
  • Bypassing censorship/DPI: XRAY Trojan on a self-hosted VPS with a decoy website on the same IP
  • Every port blocked (hotel/corporate NAT): VPN-over-53 stack — WireGuard → DNS tunnel → XRAY/443
  • Maximum separation, high threat model: Tails OS + dedicated hardware + MAC randomization

Resources

Tool Where
Windscribe VPN windscribe.com — free 10GB/month, open source clients
Riseup VPN riseup.net/en/vpn — free, activist-run, no account needed
Mullvad mullvad.net — cash/Monero, no-account model, audited
Tor Browser torproject.org
Tails OS tails.boum.org — amnesiac OS, all traffic through Tor
I2P / i2pd i2pd.website — lightweight C++ I2P router
Lokinet lokinet.org — Linux, Windows, macOS, Android
XRAY hidden VPN github.com/MarcusHoltz/hidden-vpn-that-looks-like-a-website
VPN over port 53 github.com/MarcusHoltz/vpn-over-port-53
Free V2Ray/XRAY list github.com/ebrasha/free-v2ray-public-list
Yggdrasil yggdrasil-network.github.io
Tailscale tailscale.com — free personal tier, up to 100 devices
NetBird netbird.io — self-hostable Tailscale alternative
Nebula github.com/slackhq/nebula — infrastructure-grade mesh
mkp224o (vanity .onion) github.com/cathugger/mkp224o
Tor hidden service (Docker) github.com/MarcusHoltz/tor-hidden-service
Tor hidden service guide blog.holtzweb.com — Docker + OPNsense + vanity address