On this page

Summary: A VPN protects the network traffic your device actually sends into the VPN tunnel. In a typical consumer VPN, it travels to the VPN server, normally encrypted along the way, and websites see a VPN exit IP address instead of your usual public IP address. What enters the tunnel, however, is decided by the VPN client’s routing rules, the operating system, per-app settings, and built-in system exceptions, so “all your traffic” is the result of a particular configuration rather than a property of VPNs in general. Even fully tunneled traffic still carries your logins, cookies, and anything else that identifies you to the sites and apps you use.

VPN Advisors is an independent, affiliate-supported website that explains how VPNs work, what they protect, and how to evaluate VPN services. This article explains which traffic a VPN protects inside its tunnel, what may travel outside it, and how routing settings and connection behavior affect coverage. For a broader explanation of VPN traffic, tunneling, and encryption, see our How Does a VPN Work? guide.

What “protected” means for VPN traffic

For traffic routed through a typical encrypted consumer VPN, two things change. The segment between your device and the VPN server is carried inside the VPN protocol, so the Wi-Fi network you are on and your internet provider see a connection to the VPN server rather than your individual destinations. For internet-bound traffic, websites and services see requests arriving from the VPN server’s exit address.

Encryption on that first segment depends on the protocol and the app, not on the label “VPN.” The Federal Trade Commission’s guidance on VPN apps describes VPNs as routing data through the provider’s servers so that traffic appears to come from them, and notes that only some VPN apps also encrypt the data sent between the phone and the VPN server.

The protection covers a path, not the whole journey. After traffic leaves the VPN server, it continues to its destination like any other internet traffic, and whether its contents are readable on that stretch depends on whether the connection uses its own encryption, such as HTTPS. The VPN provider also takes over the vantage point your local network and ISP had: the EFF’s Surveillance Self-Defense guide points out that a VPN can hide connection metadata from someone on your local network while the VPN provider can observe comparable metadata for traffic it carries.

What “protected” means for VPN traffic
Path segment What the VPN does Who can still observe
Device to VPN server Carries tunneled traffic inside the VPN protocol, normally encrypted Your local network and ISP can see that you are connected to the VPN server
VPN server to destination For a typical consumer VPN, forwards internet traffic from a VPN exit IP address The VPN provider and networks along the route; contents stay private only if the connection has its own encryption, such as HTTPS
The destination Does not hide what you choose to share with the destination The site or app still receives any logins, cookies, and other information your device sends it

Routing rules decide what enters the tunnel

A VPN client does not automatically capture every packet on a device. For a packet-tunnel VPN, the client typically installs routes that match destination address ranges; operating-system and per-app rules can further control which traffic uses them. Android’s VPN developer guide says a VPN app must add at least one route for the system to send any traffic through the VPN interface, and that covering both address families requires routes such as 0.0.0.0/0 for IPv4 and ::/0 for IPv6. Apple’s documentation on routing VPN traffic describes the default packet-tunnel behavior: a default route catches traffic that no more specific system rule claims. Local-network routes can take precedence unless the VPN enforces its own routes.

Two consequences follow. A full-tunnel configuration sends everything not otherwise claimed into the VPN, while a split-tunnel configuration sends only selected destinations or apps. And IPv4 and IPv6 are separate routing decisions. RFC 7359, an IETF document on VPN traffic leakage, explains that IPv4-only VPN handling can leave IPv6 traffic outside the tunnel on dual-stack networks. That is not universal: Android’s VPN interface blocks an address family by default when the VPN has not configured it.

Traffic that can stay outside the tunnel while the VPN is connected

Some traffic bypasses the tunnel by design, either because the VPN app excludes it, the operating system requires it, or an app picks its own network path. The details differ by platform, VPN client, and setting, so the examples below describe documented behavior on specific systems rather than universal rules.

Traffic that can stay outside the tunnel while the VPN is connected
Traffic Why it may not use the tunnel Documented example
Apps excluded by per-app rules The VPN can limit which apps use the tunnel On Android, excluded apps ordinarily use the regular network. If “Block connections without VPN” is enabled, those apps are blocked instead.
Local network traffic Local routes and local-network exclusions Apple’s VPN framework can exclude traffic to local hosts, such as AirPlay, AirDrop, and CarPlay.
Network upkeep and hotspot sign-in The device needs it to join or stay on a network For Apple personal VPNs, DHCP traffic, traffic directly to the VPN server, and captive-portal negotiation are excluded; supervised always-on VPN profiles use different captive-portal rules.
Carrier and companion-device services Some services use the cellular network or a nearby device directly Apple always excludes cellular-only services such as VoLTE and traffic to companion devices like an Apple Watch; VPN apps can also exclude Wi-Fi Calling, SMS, MMS, Visual Voicemail, and push notification traffic.
Apps that bind to a specific network Some configurations let apps choose their own network Android VPN apps can allow other apps to bypass the VPN and select their own network; on Apple platforms, an app that scopes a connection to a specific interface overrides the routing table unless the VPN enforces its routes.
Operating-system connectivity checks The OS tests whether a network works Mullvad reported in 2022 that Android sends connectivity-check traffic outside the tunnel when joining Wi-Fi, even with “Block connections without VPN” enabled.

DNS lookups deserve separate attention, because the path a lookup takes and the resolver that answers it are different questions. A VPN client can assign DNS servers to the tunnel, but the operating system’s resolver logic still matters: Microsoft documents that, for Windows VPN profiles without a matching name-resolution policy rule, a query normally goes to the preferred interface but can be sent on all interfaces after a timeout. Browsers can add their own layer. Firefox’s DNS over HTTPS can use a browser-selected resolver when DoH is active. Its Default Protection mode disables DoH when it detects a VPN and may use the default resolver instead. When DoH is active, its queries are still subject to the device’s routing, and the resolver may differ from the one the VPN configured.

Coverage also depends on what happens when the tunnel is not up. Apple says that when its include-all-networks option is enabled, the system drops traffic once the VPN leaves the connected state, for example while switching from Wi-Fi to cellular. Android’s “Block connections without VPN” option blocks traffic that does not use the VPN. Without controls like these, apps may send traffic directly while the VPN connects or reconnects. Even with them, documented operating-system exceptions can remain outside the tunnel.

Hostile networks can redirect traffic around the tunnel

Many routing-based VPN clients depend on the device’s routing table, and a network that can influence that table can sometimes steer traffic away from the tunnel without breaking the VPN’s encryption. The technique known as TunnelVision (CVE-2024-3661) abuses DHCP option 121, a standard way for a network to push routes to connected devices, to install routes that send traffic outside the tunnel while the VPN connection stays up. Researchers reported that it affects Windows, Linux, macOS, and iOS but not Android, which does not support that DHCP option, and that VPNs using firewall rules to block traffic to non-VPN interfaces reduce the impact.

The TunnelCrack research presented at USENIX Security 2023 found related weaknesses: malicious Wi-Fi networks could exploit the local-network exceptions many VPNs allow, and many VPNs leave traffic to the VPN server’s own address outside the tunnel. The researchers reported that every VPN product they tested was vulnerable on at least one device. These are implementation weaknesses, and several vendors issued patches after disclosure, but they show that “inside the tunnel” depends on routes the surrounding network may be able to affect.

What travels inside the tunnel without being hidden

Tunneling changes how traffic reaches a destination, not what the traffic says. When you sign in to an account, the service knows it is you regardless of which IP address the request comes from. Cookies and other identifiers that your browser sends to a site still reach it through the tunnel; the VPN does not remove them. The EFF states that a VPN is not an anonymity tool and that companies can still track people through GPS, cookies, and tracking pixels; it also notes that a VPN does nothing about browsing history saved in a browser or search history tied to a logged-in account.

The same limit applies on the device. Information an app collects locally, such as GPS location, is not network traffic until the app sends it, and once sent it arrives at the same recipient whether or not a tunnel carried it. A VPN also cannot protect data held by the services you use; the EFF notes that VPNs offer no protection against attacks on a site’s own servers.

Reading claims that a VPN “protects all your traffic”

The claim can be accurate for a specific setup, but it usually omits qualifications that determine whether it holds on your device. It is only fully meaningful once you know:

  • whether “all” means every app, or every app not excluded by split tunneling or per-app rules
  • whether IPv6 traffic is routed through the tunnel or blocked, not only IPv4
  • which local-network traffic and operating-system services the platform or client excepts
  • what happens to traffic while the VPN is connecting, reconnecting, or switching networks
  • which resolver answers DNS lookups, including lookups the browser handles itself
  • whether the protocol encrypts all tunneled traffic rather than only some of it

A basic check is to compare the public IPv4 and IPv6 addresses a website sees before and after you connect. That checks your browser’s path at that moment; it cannot prove that every app, DNS lookup, or system service uses the tunnel.

Each answer is a property of a particular client, platform, and setting, not of VPNs as a category.