How a VPN works

Updated 21 September 2026 · How we research

A VPN client builds an encrypted tunnel to a server you choose, then sends your traffic through it. Your device still uses its own internet connection; the difference is that everything inside the tunnel is unreadable to the network carrying it, and everything leaving the far end appears to come from the server rather than from you.

How a ZoogVPN connection works

Encryption protects the path to the VPN server; the server then forwards traffic to its destination.

  1. Your device

    Original IP and traffic

  2. ENCRYPTED
  3. ZoogVPN server

    Tunnel endpoint and IP exit

  4. FORWARDED
  5. Internet

    Sites see the server IP

Important

A VPN protects network traffic in transit; it does not replace device security, strong passwords or account protection.

Your ISP carries the tunnel but cannot read its contents. The destination site sees the VPN server's address.

Step by step

  1. Handshake. The client and server authenticate each other and agree on session keys. WireGuard does this in a single round trip; OpenVPN and IKEv2 use a TLS or IKE negotiation that takes longer but allows more options.
  2. Virtual interface. The client creates a virtual network adapter on your device and installs routes so that traffic is sent to it instead of directly to your router.
  3. Encapsulation. Each outgoing packet is encrypted and wrapped inside an ordinary UDP or TCP packet addressed to the VPN server.
  4. Egress. The server decrypts the packet and forwards it to the destination using its own address. Replies come back the same way.
  5. DNS. Name lookups must also go through the tunnel, or they will reveal which sites you visit even though the traffic itself is encrypted. See DNS leak protection.

What your ISP can still see

A VPN changes who can see what. It does not make you invisible.

What each party observes on a correctly configured tunnel.

ObserverCan seeCannot see
Your ISP or Wi-Fi operatorThat you are connected to a VPN server, its IP address, the volume and timing of trafficURLs, page contents, DNS queries carried inside the tunnel
The VPN providerYour real IP address and the destinations you connect to, unless its design and retention policy prevent thisContents of traffic that is already end-to-end encrypted, such as HTTPS
The website you visitThe VPN server's IP address, plus cookies, logins and browser fingerprints you supplyYour real IP address, unless it leaks through WebRTC or you reveal it

A VPN is not anonymity

If you sign in to an account, the service knows who you are regardless of the tunnel. A VPN changes the network path, not your identity. It also does not block malware or stop tracking inside a browser session.

Why the protocol choice changes the experience

The tunnel described above can be built several ways. UDP-based protocols such as WireGuard and OpenVPN UDP are usually faster because a lost packet is simply retransmitted by the application above. TCP-based transports guarantee delivery, which helps on hostile networks but can cause the TCP-over-TCP problem, where two retransmission timers fight each other and throughput collapses. This is covered in OpenVPN TCP vs UDP.

Frequently asked questions

Does a VPN hide my browsing from my ISP?
It hides the contents and destinations of traffic carried inside the tunnel, including DNS queries if the client routes them correctly. Your ISP can still see that you are connected to a VPN server and how much data you move.
Does a VPN make me anonymous?
No. It changes your apparent network location. Accounts you log into, cookies and browser fingerprinting still identify you.
Why does my connection slow down on a VPN?
Traffic travels further, is encrypted and decrypted at both ends, and the tunnel adds per-packet overhead. Protocol choice and server distance usually matter more than the encryption itself.