AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

i365Finds Editorial is the independent research and editorial organization behind 365 Wiki. We follow changes in tools, products, services, entertainment, and digital life around the world, turning scattered and fast-moving information into clearly sourced, well-structured public content that is easier to understand and compare.
Indexed 90,207 Wiki articles

How to Configure VPN Split Tunneling Without Breaking Local Printers and NAS

Annika Bernklau · 365Finds Editorial

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:

  1. 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.
  2. 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.251 or 239.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 SetupCorporate SubnetRouting ResultRecommended Action
192.168.1.0/2410.0.0.0/8Compatible; split routing works smoothlyKeep existing configuration
192.168.1.0/24192.168.1.0/24Overlap collision; local devices become unreachableRenumber home LAN to 192.168.120.0/24 or 172.28.10.0/24
10.0.0.0/2410.0.0.0/8Complete collision; entire home subnet swallowedChange 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:

  1. Open the Cisco Secure Client (or AnyConnect) window.
  2. Click the Gear icon (Preferences) in the lower-left corner.
  3. In the Preferences tab, look for Allow local (LAN) access when using VPN (if configured).
  4. Check the box and reconnect to the VPN session.
  5. 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

  1. Press Win + R, type ncpa.cpl, and hit Enter to open Network Connections.
  2. Right-click your corporate VPN adapter and select Properties.
  3. Click the Networking tab, highlight Internet Protocol Version 4 (TCP/IPv4), and click Properties.
  4. Click Advanced.
  5. Uncheck Use default gateway on remote network.
  6. 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:

  1. Map Storage via Direct IP: Instead of mounting your NAS by its hostname (e.g., \\MY-NAS\Shared or smb://my-nas.local), map the share using its assigned static local IP address (e.g., \\192.168.142.20\Shared or smb://192.168.142.20/Shared).
  2. 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.
  3. Verify Adapter Metric: In Windows PowerShell, run Get-NetIPInterface. Ensure your physical Wi-Fi or Ethernet adapter has an InterfaceMetric assigned, 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