An active VPN encrypts the traffic that passes through its virtual network adapter, but it does not grant blanket immunity against local network attacks. If an adversary controls a rogue DHCP server or executes Address Resolution Protocol (ARP) spoofing on an untrusted public Wi-Fi network, they can manipulate your operating system's routing logic. Under the right conditions, they can force sensitive network traffic out of the physical Wi-Fi interface in plaintext—bypassing the VPN tunnel entirely while your VPN application still reports an active, secure connection.
At 365Finds, we frequently encounter the assumption that toggling on a commercial VPN turns an untrusted coffee shop or hotel network into a completely harmless environment. It does not. A VPN secures a tunnel between your device and a remote gateway, but it does not eliminate the physical and data-link realities of the local subnet you are plugged into.
What an Active VPN Actually Shields Against Local Attackers
To understand where the defenses break down, we must first recognize what an active VPN does correctly.
When your VPN client creates a virtual network interface (such as a tun or tap adapter) and successfully routes outbound packets into it, the client encrypts the packet payload using strong cryptographic suites such as AES-256-GCM or ChaCha20-Poly1305. These encrypted packets are then encapsulated inside an outer IP packet destined for the VPN provider's server.
If a local attacker sits on the same Wi-Fi access point and performs ARP spoofing—tricking your device into associating the local router's IP address with the attacker's MAC address—the attacker becomes an adversary-in-the-middle (AitM). However, if your traffic is properly confined to the VPN tunnel:
- The attacker captures only encrypted UDP or TCP packets addressed to your VPN server's external IP.
- The attacker cannot read the encapsulated contents, cannot see the actual website domains you visit through Server Name Indication (SNI), and cannot view internal DNS queries handled within the tunnel.
- The attacker cannot modify packet payloads without failing cryptographic integrity checks, resulting in dropped packets rather than corrupted data.
In this strictly encapsulated scenario, ARP spoofing allows the attacker to drop your packets or monitor how much data you transmit, but they cannot inspect the cleartext. The fundamental vulnerability arises because local network mechanisms can prevent your traffic from entering that tunnel in the first place.
Rogue DHCP Gateways and the TunnelVision Route Injection (CVE-2024-3661)
The most severe architectural vulnerability affecting routing-based VPNs stems from Dynamic Host Configuration Protocol (DHCP) behavior, specifically documented in CVE-2024-3661, known as TunnelVision.
When your device associates with a public Wi-Fi network, it broadcasts a DHCP request to obtain an IP address, a subnet mask, a default gateway, and DNS servers. If an attacker runs a rogue DHCP server on the local subnet—or compromises the local router—they can respond with tailored configuration parameters.
How DHCP Option 121 Decloaks the Tunnel
Under RFC 3442, DHCP Option 121 allows the DHCP server to push classless static routes directly into a connecting client's routing table. This standard network capability becomes an exploit against routing-based VPNs:
- Routing Specificity Overrides Defaults: A standard VPN client configures the operating system routing table by modifying the default gateway (
0.0.0.0/0), pointing all general internet traffic toward the VPN's virtual interface. However, operating system network stacks prioritize more specific routes over less specific ones. - Injecting Targeted Routes: A rogue DHCP server using Option 121 can assign two
/1routes (0.0.0.0/1and128.0.0.0/1) or targeted/24subnets pointing directly to the rogue local gateway. - Tunnel Bypass: Because
/1and/24routes are more specific than the VPN's default/0route, the operating system routes outgoing packets through the physical Wi-Fi interface to the attacker's gateway instead of passing them to the VPN virtual adapter. - Silent Failure: The VPN tunnel remains open and connected. Because no interface drop occurs, traditional VPN "kill switches"—which merely listen for tunnel disconnect events—never engage. The attacker intercepts the decloaked traffic without raising an alert inside the VPN client.
While HTTPS (TLS) still protects the payload of encrypted web traffic diverted through this channel, any unencrypted HTTP traffic, plain DNS queries, and cleartext telemetry leak directly to the rogue gateway. The attacker can also attempt TLS downgrade attacks, forge captive portal prompts, and log all contacted destination endpoints.
The Bootstrap Problem: Pre-Tunnel Handshakes and Captive Portals
A VPN cannot protect traffic that occurs before the tunnel is established. On untrusted public networks, this initialization phase introduces inherent exposure.
+-------------------------------------------------------------+
| Bootstrap Phase |
| 1. DHCP Lease Request & Offer |
| 2. Captive Portal HTTP Redirects |
| 3. Public DNS Lookup for VPN Server Hostname |
| 4. Cleartext UDP/TCP Tunnel Negotiation Handshake |
+-------------------------------------------------------------+
|
v (Only after handshake succeeds)
+-------------------------------------------------------------+
| Active VPN Tunnel |
| - Encrypted payload (ChaCha20 / AES) |
| - Internal DNS tunneling |
+-------------------------------------------------------------+
Before the first encrypted tunnel packet leaves your machine, several unencrypted exchanges must occur over the untrusted physical link:
- DHCP Negotiation: The exchange of Discover, Offer, Request, and Acknowledgment packets is completely unauthenticated. A rogue DHCP server can assign an attacker-controlled DNS server to your physical interface.
- VPN Server Hostname Resolution: If your VPN configuration specifies a server hostname (such as
vpn.example.com) rather than a raw IP address, your operating system must resolve that hostname using the local network's DNS before the tunnel can begin. A rogue DNS server or an ARP-spoofed gateway can poison this response, pointing your client toward an attacker-controlled endpoint or denying connection outright. - Captive Portal Exploits: Public networks often force browser interaction before granting external access. Because captive portals intercept HTTP traffic and forge DNS responses by design, attackers can mimic captive portals to trick devices into downloading fake certificates or executing credential-harvesting attacks before the user has a chance to activate the VPN.
ARP Spoofing and LocalNet Bypass Attacks (TunnelCrack)
Even after a tunnel is active and DHCP Option 121 is not present, ARP spoofing can combine with client configuration flaws to leak traffic. This vulnerability pattern is demonstrated by the LocalNet variant of the TunnelCrack research (CVE-2023-36672).
Most commercial VPN clients offer a convenience feature labeled "Allow Local Network Sharing" or "Invisibility on LAN." When enabled, the VPN client adds an exception to its routing rules: traffic destined for the local subnet (for instance, 192.168.1.0/24) is allowed to bypass the tunnel so that users can print documents or cast media.
An attacker on the public Wi-Fi network can exploit this rule:
- The attacker uses ARP spoofing to associate their MAC address with the IP address of external websites or public DNS servers.
- Alternatively, via a rogue DHCP server, the attacker assigns the victim an unusually large local subnet mask (such as
/8instead of/24), encompassing millions of public IP addresses under the guise of "local traffic." - The VPN client's local-network exemption recognizes those public IP addresses as local subnet traffic and routes them through the physical interface without encryption.
365Finds considers local network sharing on untrusted networks to be an unacceptable security compromise. When local network bypass is permitted, an active VPN cannot guarantee complete traffic isolation.
Defensive Strategies: How to Prevent Local Route Hijacking
Relying solely on a consumer VPN's basic connect button is insufficient when connecting to potentially hostile access points. To protect against ARP spoofing, rogue DHCP servers, and route injection, implement the following defenses:
1. Disable Local Network Access
Inside your VPN application settings, locate options such as "Allow LAN access," "Local network sharing," or "Bypass VPN for local networks" and turn them off. Forcing all traffic—including local subnet traffic—into the tunnel neutralizes LocalNet routing exploits.
2. Require a Firewall-Enforced Kill Switch
A standard kill switch that simply checks whether the VPN connection process is running offers no protection against route injection. Instead, ensure your VPN uses an OS-level firewall filter:
- On Windows, the client should use the Windows Filtering Platform (WFP) to enforce a rule stating that no outbound packets may leave the physical adapter, except those addressed to the specific VPN server endpoint IP.
- On macOS, rules should be anchored in
pf(Packet Filter). - On Linux, strict
nftablesoriptablesrules must drop all non-tunneled egress on the physical interface.
3. Use Network Namespaces on Linux
For systems running Linux, network namespaces (ip netns) provide structural immunity against TunnelVision and rogue DHCP route manipulation. By placing the physical Wi-Fi interface in one namespace and running applications exclusively within a VPN-controlled namespace, the application routing table is physically separated from any DHCP routes injected on the local interface.
4. Block or Ignore DHCP Option 121
On operating systems and network managers that permit it (such as Linux distributions utilizing NetworkManager or systemd-networkd), configure your DHCP client to explicitly ignore Option 121 classless static routes when connecting to public networks.
5. Prefer Cellular Hotspots for High-Risk Sessions
Because public Wi-Fi networks inherently grant local link-layer access to arbitrary untrusted devices, bypassing public Wi-Fi altogether via a personal cellular hotspot eliminates the shared Layer 2 broadcast domain where ARP spoofing and rogue DHCP announcements operate.
References
- TunnelVision: CVE-2024-3661 Local Route Injection Vulnerability - Leviathan Security Group
- TunnelCrack: Bypassing VPNs Using Leaked Routes - Mathy Vanhoef et al.
- RFC 3442: The Classless Static Route Option for Dynamic Host Configuration Protocol (DHCP) version 4 - IETF
- NVD Detail: CVE-2024-3661 - National Vulnerability Database