Automation & integrations

What is Split tunneling

What it is

A mode in which only part of the traffic goes through the encrypted tunnel and the rest goes direct. For example, internal company systems through the tunnel, video calls and ordinary browsing straight from home.

How we use it

We set the rules in the client: internal subnets and company domains into the tunnel, everything else direct, with internal DNS for internal names.

What it is in plain words

Split tunneling is a mode in which only some of a device's traffic goes through the encrypted tunnel, and everything else goes to the internet directly. For example, the accounting system and the internal portal open through the tunnel to the office, while video calls, cloud services and ordinary browsing go straight from the employee's home connection.

The opposite is a full tunnel: all traffic, without exception, goes through the company server.

Where it helps a business

  • Remote staff need internal systems, but there is no reason to drive their video calls and updates through the office channel.
  • The office or the company server has a narrow channel that cannot carry the whole team's traffic.
  • Some services must be reached from the company server's address, for example an external system that allows access only from known IPs, while the rest of the traffic should not change.
  • Different traffic should leave through different servers according to routing rules.

Types of rules

  • By address and subnet. The simplest and most reliable: the internal networks of the office and the servers go into the tunnel, everything else goes direct.
  • By domain. The tunnel takes traffic to the listed domains. This needs a client that understands domains, such as sing-box or Xray.
  • By app. Selected programs on the device use the tunnel, the rest do not. Supported on Android and in some desktop clients.
  • Inverse mode. Everything goes into the tunnel except a list of exclusions, for example the local network and printers.

On the device or on the server

  • On the device. The client decides what goes into the tunnel. This is how WireGuard works through the AllowedIPs list, and OpenVPN through routes the server pushes.
  • On the server. All of the device's traffic reaches the server, and there routing rules send part of it to one exit and part to another.

Full tunnel and split tunnel

Full tunnelSplit tunnel
Load on the company channelall of the team's trafficonly work systems
Speed for the usereverything through the servereveryday services at home speed
Control and loggingeverything passes the company firewallonly what goes into the tunnel
Setupsimpler: one rulelists and rules to maintain

Common mistakes

  • Internal names do not resolve. Addresses go into the tunnel, but DNS queries still go to the home provider, which knows nothing about crm.office.local. Internal domains need internal DNS (split DNS).
  • Overlapping subnets. The office and an employee's home router both use 192.168.1.0/24, and the tunnel route conflicts with the home network.
  • Stale lists. Domains and addresses of services change; lists that are never updated slowly stop matching.
  • Against security policy. In some companies all traffic must pass the company firewall. Then split tunneling is a security decision, not just a technical one.
  • The tunnel server's own address in the tunnel. If the rules send the server's address into the tunnel, the connection loops and drops.

When you do not need it

If the tunnel is needed only for one internal server, it is enough to route that one address, with no lists. And if policy requires all traffic to go through the company perimeter, a full tunnel is the right choice.

โ† All terms

Need a website, a bot or automation?

Terms explained โ€” now let's get to work: tell us about the task and we'll turn it into a clear work plan.