Split tunneling

On this page 7

Split tunneling is a VPN routing configuration in which only selected traffic travels through the encrypted tunnel, while the remaining traffic leaves the device directly through its local internet connection. In network security and networking practice, it is the opposite of full tunneling, where every packet from the client is forced through the VPN gateway.

The technique exists because tunneling everything is costly: it adds latency, consumes gateway bandwidth and can degrade cloud and video services. Split tunneling trades part of the central visibility and control for better performance, which makes it one of the most debated settings in remote access design.

How split tunneling decides where traffic goes

Split tunneling works by giving the VPN client a routing policy that marks some destinations as tunneled and leaves all others on the default route. When the tunnel comes up, the client installs specific routes on the tunnel interface instead of replacing the default route (0.0.0.0/0), so the operating system forwards each packet according to the longest matching prefix.

Modern clients can also decide by application, domain name or process rather than by IP prefix alone. These richer policies are easier to maintain for cloud services whose addresses change, but they depend on client software that intercepts traffic before it reaches the routing table.

The following table describes the main ways to define which traffic enters the tunnel.

Policy methodHow it selects trafficMain drawback
Route-based (include list)Only listed internal prefixes use the tunnelLists must track every internal network
Route-based (exclude list)Everything uses the tunnel except listed prefixesCloud address ranges change frequently
Application-basedChosen applications or processes use the tunnelRequires deep client integration
Domain-basedTraffic to named domains uses the tunnelDepends on correct DNS interception
Methods for defining split tunnel policy

An include list is sometimes called classic split tunneling, while an exclude list is often called inverse split tunneling. The second approach is common when organizations tunnel most traffic but exempt large, trusted collaboration services.

Split tunneling versus full tunneling

The central decision is whether security inspection of all traffic is worth the performance cost of hairpinning it through a central gateway. The table below compares the two models on the dimensions that usually drive that decision.

AspectSplit tunnelingFull tunneling
Internet traffic pathDirect from the clientThrough the VPN gateway
Latency to cloud servicesLowHigher because of the detour
Gateway bandwidth loadLimited to internal trafficAll client traffic
Central inspectionOnly for tunneled trafficFor all traffic
Data loss preventionWeaker unless enforced on the endpointEnforced at the gateway
Access to local devicesPrinters and LAN reachableUsually blocked
Split and full tunneling compared

Neither model is universally correct. Full tunneling suits high-assurance environments with strict monitoring duties, while split tunneling suits organizations whose users mostly work in cloud applications that are reached more efficiently over the local internet path.

Security risks of split tunneling

The main risk of split tunneling is that the device is simultaneously connected to the corporate network and the open internet, so it can act as a bridge if it is compromised. Malware received through the direct path can reach internal resources through the tunnel, and traffic on the direct path bypasses central web filtering and logging.

RiskCauseMitigation
Endpoint used as a bridgeSimultaneous access to both networksEndpoint protection and host firewall
DNS leakageInternal names resolved by public resolversForce internal DNS for corporate domains
Missed threat detectionDirect traffic skips the gatewayCloud-delivered web security on the client
Data exfiltrationUploads leave without inspectionEndpoint data loss prevention controls
Hostile local networksPublic Wi-Fi exposes direct trafficEncrypt everything at the application layer
Common split tunneling risks and mitigations

DNS handling deserves particular attention, because a misconfigured client may send queries for internal hostnames to a public resolver. That reveals internal naming to outsiders and can cause users to connect to the wrong host when names resolve unexpectedly.

Configuring split tunneling in practice

Split tunneling is configured on the VPN concentrator or the client profile, and the exact mechanism depends on the protocol. In IPsec, the policy is expressed through traffic selectors; in WireGuard, through the AllowedIPs list on each peer; and in OpenVPN, through pushed route statements or the redirect-gateway option.

TechnologySetting that controls the splitFull tunnel equivalent
WireGuardAllowedIPs with internal prefixes onlyAllowedIPs = 0.0.0.0/0, ::/0
OpenVPNPushed route directivesredirect-gateway def1
IPsec (IKEv2)Narrow traffic selectorsTraffic selector 0.0.0.0/0
Split tunnel settings in common VPN technologies
  • Document every tunneled prefix and review the list whenever internal networks change.
  • Include IPv6 explicitly, because an IPv4-only policy can leave IPv6 traffic untunneled.
  • Pair the policy with endpoint controls such as a host firewall and managed web security.
  • Test DNS resolution for internal and external names after every policy change.

Split tunneling in zero trust architectures

Zero trust designs reduce the importance of the tunnel itself, because access decisions move to each application instead of the network perimeter. In zero trust network access and SASE platforms, the client usually steers traffic per application to the nearest cloud point of presence, which is effectively a policy-driven form of split tunneling with inspection kept in the cloud.

This shift explains why split tunneling is no longer judged only as a weakening of security. When identity, device posture and inspection are enforced close to each application, sending traffic directly to the internet can be both faster and adequately controlled.

A common misconception is that split tunneling is always a configuration mistake. In practice, many security frameworks accept it when compensating controls exist, and the real error is enabling it without endpoint protection, DNS enforcement or logging for the traffic that no longer passes the central gateway.

The simple explanation

Imagine a company that gives employees a private, guarded corridor to reach the office from home. Split tunneling means using that corridor only for office business, while ordinary errands use the public street.

This keeps the corridor uncrowded and makes everyday browsing faster. The trade-off is that the company sees less of what happens on the public street, so the laptop itself must be well protected.

How it is used in practice

A regional engineering firm with 400 remote employees runs a WireGuard gateway with a 1 Gbps uplink. Under full tunneling, video meetings and cloud file synchronization pushed the gateway to saturation every morning, and users reported choppy calls with round-trip times above 120 ms.

The network team switches to split tunneling, routing only the firm’s internal 10.20.0.0/16 range and its internal DNS zone through the tunnel. At the same time, it deploys endpoint web filtering and a host firewall on every laptop. Gateway utilization falls by roughly 70 percent, meeting quality returns to normal, and internal design servers remain reachable only through the encrypted tunnel.