The moment you toggle on your corporate VPN, your desktop printer vanishes from the network and your local NAS volume unceremoniously freezes. It is an infuriating rite of passage for remote workers. The culprit is not a broken physical cable or a rogue Wi-Fi glitch; it is default corporate routing. By default, enterprise VPN clients enforce a "tunnel-all" rule, redirecting every outbound packet—including local broadcast discovery and local subnet requests—through the remote corporate gateway.
To restore seamless communication with your local printer, network storage, and home lab while retaining secure access to internal company portals, you must configure split tunneling. At 365Finds, we look at the exact routing mechanisms behind this conflict, examine the crucial prerequisite that causes half of all failed attempts, and walk step-by-step through configuring split tunneling across enterprise clients, WireGuard, OpenVPN, and native operating system tools.
Why Your Local Network Breaks Under Corporate VPNs
When your operating system establishes a typical remote-access VPN tunnel, the client creates a virtual network interface (such as a TUN/TAP adapter or a virtual miniport). If configured in full-tunnel mode, the client injects a default route (0.0.0.0/0) with a lower metric (higher priority) into your operating system's routing table.
This creates two immediate points of failure:
- Unicast Traffic Redirection: Packets destined for private IP addresses that happen to fall within broad default routes get shoved into the encrypted tunnel instead of routing out of your physical Ethernet or Wi-Fi adapter.
- Multicast and Broadcast Suppression: Network printers and NAS servers rely heavily on protocols like mDNS (Bonjour), SSDP, NetBIOS, and WS-Discovery to broadcast their availability. Many enterprise VPN adapters either actively drop link-local multicast packets (
224.0.0.251or239.255.255.250) or refuse to bind them to your physical interface, rendering dynamic discovery useless.
The solution requires two distinct adjustments: explicitly carving out local subnet routing so unicast packets hit your physical local gateway, and binding local devices to static IP addresses to sidestep broken broadcast discovery.
The Hidden Prerequisite: Eliminating Subnet Collisions
Before changing a single toggle in your VPN client, check your local subnet. In our experience testing home-office infrastructure at 365Finds, subnet collision is the single most common reason split tunneling silently fails.
Most off-the-shelf consumer routers default to assigning IPs in either 192.168.0.0/24, 192.168.1.0/24, or 10.0.0.0/24. Corporate networks frequently use these exact same RFC 1918 private address ranges for their internal servers, test environments, or branches.
If your home printer sits at 192.168.1.50 and your employer's internal staging server is also on 192.168.1.x, routing logic faces an irreconcilable conflict. The VPN routing table will always take precedence over your local adapter, completely blinding your computer to your printer.
| Local Setup | Corporate Subnet | Routing Result | Recommended Action |
|---|---|---|---|
192.168.1.0/24 | 10.0.0.0/8 | Compatible; split routing works smoothly | Keep existing configuration |
192.168.1.0/24 | 192.168.1.0/24 | Overlap collision; local devices become unreachable | Renumber home LAN to 192.168.120.0/24 or 172.28.10.0/24 |
10.0.0.0/24 | 10.0.0.0/8 | Complete collision; entire home subnet swallowed | Change home router DHCP range to 192.168.x.x |
If there is an overlap, log into your home router's admin panel before touching your VPN settings. Change the local LAN IP range to an uncommon subnet, such as 192.168.142.1/24 or 172.27.50.1/24. Reboot your router, printer, and NAS so they lease addresses within the new pool.
Configuring Cisco Secure Client (AnyConnect)
Cisco AnyConnect / Secure Client dominates corporate deployments. In an ideal corporate policy, your network engineering team sets the ASA or Firepower gateway to "Split-Include" (tunneling only corporate subnets) or "Split-Exclude" (tunneling everything except local traffic).
However, even when the server allows it, client-side settings often dictate whether local LAN traffic is honored:
- Open the Cisco Secure Client (or AnyConnect) window.
- Click the Gear icon (Preferences) in the lower-left corner.
- In the Preferences tab, look for Allow local (LAN) access when using VPN (if configured).
- Check the box and reconnect to the VPN session.
- Verify the route: Open the client's Statistics tab, select Route Details, and confirm that your local subnet (for example,
192.168.142.0/24) appears under the non-secured or bypass routes.
If this option is grayed out or locked, your organization's IT department has pushed a locked profile XML (PreferencesControllable="false"). You will need to submit a ticket to your IT service desk requesting local LAN exemption for remote home-office peripherals.
Configuring OpenVPN for Split Routing
If you manage your own OpenVPN profile (.ovpn) or your IT department distributes customizable configuration files, you can explicitly prevent the tunnel from taking over your default gateway.
The Client-Side Override
When the OpenVPN server pushes redirect-gateway def1, it commands your client to route all internet and local traffic through the VPN server. You can override this behavior on your local machine by editing your .ovpn file in a text editor:
# Prevent the server from overriding your default gateway and pulling all default routes
route-nopull
# Explicitly route only your company's private internal subnets through the VPN tunnel
route 10.0.0.0 255.0.0.0
route 172.16.0.0 255.240.0.0
# Keep the OpenVPN gateway for DNS lookups if internal company hostnames are needed
dhcp-option DNS 10.0.0.53
With route-nopull enabled, your local machine retains its native default gateway via your home router. General internet browsing and local traffic (192.168.x.x) pass directly to your home LAN and ISP, while only packets bound for 10.x.x.x travel into the corporate network.
Configuring WireGuard for Granular LAN Access
WireGuard uses the AllowedIPs directive to control both encryption keys and operating system routing entries. Many default community configurations use AllowedIPs = 0.0.0.0/0, ::/0, which routes all traffic through the WireGuard interface.
To access corporate resources while leaving your local network alone, configure AllowedIPs as a selective split tunnel:
[Interface]
PrivateKey = aaaaaa...
Address = 10.200.0.5/24
DNS = 10.200.0.1
[Peer]
PublicKey = bbbbbb...
Endpoint = vpn.company.com:51820
# Only route corporate intranet ranges through WireGuard
AllowedIPs = 10.0.0.0/8, 172.16.0.0/12
PersistentKeepalive = 25
Because AllowedIPs does not encompass 192.168.0.0/16 or your physical interface's subnet, your operating system sends local printer and NAS traffic straight through your physical network card.
Configuring Native Windows VPN (IKEv2 / L2TP / SSTP)
If you connect to work using the built-in Windows VPN client, Windows defaults to checking "Use default gateway on remote network". This directs all traffic through the tunnel and breaks local network connectivity.
Method 1: Using the Windows GUI
- Press
Win + R, typencpa.cpl, and hit Enter to open Network Connections. - Right-click your corporate VPN adapter and select Properties.
- Click the Networking tab, highlight Internet Protocol Version 4 (TCP/IPv4), and click Properties.
- Click Advanced.
- Uncheck Use default gateway on remote network.
- Click OK on all windows.
Method 2: The PowerShell Route (Recommended)
When you disable the default gateway, Windows no longer knows how to reach internal corporate subnets. You must bind static routes to the VPN profile so they activate automatically upon connection.
Open PowerShell as an Administrator and run:
# Enable split tunneling on the profile
Set-VpnConnection -Name "CorporateVPN" -SplitTunneling $true
# Add persistent routes pointing corporate subnets to the VPN connection
Add-VpnConnectionRoute -ConnectionName "CorporateVPN" -DestinationPrefix "10.0.0.0/8"
Add-VpnConnectionRoute -ConnectionName "CorporateVPN" -DestinationPrefix "172.16.0.0/12"
To verify active routes while connected, execute Get-VpnConnectionRoute -ConnectionName "CorporateVPN".
Restoring Printer and NAS Connectivity: Discovery vs. Static IP
Even after your routing table is clean, local service discovery may fail. Both Windows and macOS frequently prioritize the VPN virtual adapter for DNS resolution or suppress mDNS broadcasts across secondary adapters.
To avoid discovery dropouts:
- Map Storage via Direct IP: Instead of mounting your NAS by its hostname (e.g.,
\\MY-NAS\Sharedorsmb://my-nas.local), map the share using its assigned static local IP address (e.g.,\\192.168.142.20\Sharedorsmb://192.168.142.20/Shared). - Re-add Printers via Standard TCP/IP Port:
- In Windows, go to Printers & Scanners > Add device > Add manually.
- Select Add a printer using an IP address or hostname.
- Set Device type to TCP/IP Device, enter the printer's fixed local IP address, and select the correct driver.
- Verify Adapter Metric: In Windows PowerShell, run
Get-NetIPInterface. Ensure your physical Wi-Fi or Ethernet adapter has anInterfaceMetricassigned, or manually set it using:
Set-NetIPInterface -InterfaceAlias "Wi-Fi" -InterfaceMetric 15
This ensures the operating system resolves local subnets through the physical adapter before querying the virtual VPN adapter.
References
- Cisco AnyConnect Secure Mobility Client Configuration Guide: Split Tunneling
- Microsoft Learn: Add-VpnConnectionRoute
- Microsoft Learn: Set-VpnConnection
- OpenVPN Community Documentation: Routing and Subnet Guidance
- WireGuard Formal Technical Whitepaper and Quickstart Routing Principles
- Cisco ASA 5500 Series Configuration: Split Tunneling for AnyConnect Clients