0Pricing
Ethical Hacking Academy · Lesson

VPNs and Chaining

Layered anonymity.

VPNs and Chaining is a free Ethical Hacking Academy lesson on CoddyKit — lesson 2 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Ethical Hacking Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

What a VPN Does

A VPN (Virtual Private Network) creates an encrypted tunnel between your device and a VPN server. Your traffic exits to the internet from the VPN server's IP, hiding your real IP from destinations.

Everything between you and the VPN server is encrypted, protecting against your local network and ISP from seeing your traffic content.

VPN vs Proxy vs Tor

These tools overlap but differ:

  • Proxy: forwards specific app traffic, often no encryption.
  • VPN: encrypts all device traffic to one server you must trust.
  • Tor: multi-hop anonymity through volunteer relays, slower.

A VPN trades trust in many relays (Tor) for trust in one provider.

The Trust Problem

Your VPN provider can see your real IP and all your destinations (though not encrypted content). You are shifting trust from your ISP to the VPN company.

'No-logs' claims are only as good as the provider's honesty and jurisdiction. A VPN improves privacy from local observers but is not strong anonymity on its own.

VPN Protocols

Common VPN protocols:

  • WireGuard: modern, fast, small codebase, strong crypto.
  • OpenVPN: mature, flexible, widely supported.
  • IPsec/IKEv2: common on mobile, reconnects well.

Avoid legacy PPTP, which is cryptographically broken.

wg-quick up wg0
# Bring up a WireGuard tunnel from /etc/wireguard/wg0.conf

Chaining: Layered Anonymity

Chaining means routing traffic through multiple anonymity layers in sequence, so no single point sees the whole path. The idea: even if one layer is compromised, others still protect you.

Two famous combinations are VPN over Tor and Tor over VPN. The order matters and changes who sees what.

Tor over VPN

You -> VPN -> Tor -> destination.

  • Your ISP sees you connect to a VPN, not that you use Tor.
  • The Tor guard node sees the VPN's IP, not your real IP.
  • You still rely on the VPN seeing that you use Tor.

This hides Tor usage from your ISP, useful where Tor is blocked or suspicious.

VPN over Tor

You -> Tor -> VPN -> destination.

  • The Tor exit node sees only the VPN, not the final destination.
  • The destination sees the VPN IP, giving a stable exit IP.
  • The VPN can link your activity, and you must pay for it anonymously.

More complex; rarely needed and easy to misconfigure.

The Kill Switch

If a VPN drops, your traffic can leak over your real connection. A kill switch blocks all traffic unless the tunnel is up, preventing accidental IP exposure.

Without a kill switch, a brief reconnect can deanonymize you. Always verify it works before relying on it.

DNS and WebRTC Leaks

Even with a VPN, leaks can betray you:

  • DNS leaks: DNS queries go to your ISP instead of through the tunnel, revealing the sites you visit.
  • WebRTC leaks: browsers can expose your real IP via WebRTC even behind a VPN.

Test for these and disable WebRTC or use leak-protected configurations.

Diminishing Returns

Chaining many layers adds latency and complexity, and each added layer is another thing to misconfigure. More hops are not automatically safer.

The biggest risks are usually operational mistakes, not insufficient hops. A well-used single layer beats a misconfigured chain.

Paying Anonymously

A subtle leak: if you pay for a VPN with your personal credit card, the provider can tie the account to your identity, undermining anonymity if they are compelled to disclose records.

For sensitive work, operators favor providers that accept anonymous payment and have a clear, audited no-logs policy in a favorable jurisdiction. The payment trail is part of your OPSEC.

Quick Check

Think about who sees your Tor usage.

Recap

You explored VPNs and chaining:

  • A VPN encrypts all traffic to one trusted server; not anonymity by itself.
  • Use modern protocols (WireGuard, OpenVPN), never PPTP.
  • Tor over VPN hides Tor from your ISP; VPN over Tor gives a stable exit IP.
  • Use a kill switch and test for DNS/WebRTC leaks.
  • More layers add complexity; operational mistakes are the real danger.

Next: spoofing MAC addresses and device identity.

Frequently asked questions

Is the “VPNs and Chaining” lesson free?

Yes — the full text of “VPNs and Chaining” is free to read here on the web, and the Ethical Hacking Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Ethical Hacking Academy course, upgrade to CoddyKit PRO.

What will I learn in “VPNs and Chaining”?

Layered anonymity. You practise Ethical Hacking Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Ethical Hacking Academy?

No prior experience is required. Ethical Hacking Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 2 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “VPNs and Chaining” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Ethical Hacking Academy lesson?

Yes. Every Ethical Hacking Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Tor and Proxies
  2. VPNs and Chaining
  3. MAC and Identity
  4. OPSEC Mistakes
← Back to Ethical Hacking Academy