Networking and developer tooling notes
Concepts
5 min read

Split Tunneling and Smart Routing: Send Only Some Traffic via VPN

Split tunneling sends only selected traffic, by app, address or domain, through the VPN or proxy and lets the rest use your normal connection. It keeps local devices and bulk downloads off the tunnel, but you must verify what each side really does.

Editorial team

Split tunneling sends only selected traffic, chosen by application, address or domain, through your VPN or proxy and lets everything else use the normal connection. It is useful for keeping local devices, bulk downloads and region-specific apps off the tunnel. The risk is that direct traffic exposes your real IP and your ISP's resolver, so every split setup needs a verification step. This article reflects the state of things as of November 2026.

What is split tunneling?

Split tunneling is a routing policy: instead of sending all traffic through the tunnel (a full tunnel), the client decides per connection whether to use the tunnel or the regular network. There are two common styles. An include list sends only the listed apps or destinations through the tunnel. An exclude list sends everything through the tunnel except what you list. Clients often call a rule-based version of this smart routing.

Neither style is better in general. An include list is safer when you only need one or two apps tunneled and want everything else untouched. An exclude list is safer when you want broad coverage and need a few exceptions, such as a printer on your LAN.

How do clients decide what goes through the tunnel?

Rules are matched at one of three levels, and each level has different strengths. The table summarizes them; the routing-table level is the one you can inspect directly.

Match byHow it worksWeak point
Destination address (CIDR)Entries in the operating system's routing table; the most specific prefix wins (RFC 4632)Websites behind CDNs change IPs, so address lists go stale
Domain nameThe client maps names to connections through DNS answers or the TLS server nameNeeds DNS to cooperate; encrypted DNS and encrypted client hello make it harder
ApplicationThe client identifies the process or uses OS support, such as Android's per-app VPN listsHelper processes, child processes and system services may not match the rule you wrote

On Android, a VPN app can choose which apps to include or exclude with addAllowedApplication and addDisallowedApplication on VpnService.Builder. Desktop operating systems expose different mechanisms, and clients combine them with their own process matching.

How can I look at address-based routing myself?

On Linux, you can see the principle with the routing table. Assume the tunnel interface is called tun0 and 203.0.113.0/24 is a documentation range standing in for a real destination.

ip route show
sudo ip route add 203.0.113.0/24 dev tun0
ip route get 203.0.113.10
sudo ip route del 203.0.113.0/24

After the add line, ip route get reports that 203.0.113.10 leaves via tun0, because a /24 route is more specific than the default route. Every other address still follows the default route. Remove the entry with the last line. On Windows use route print to see the table, and on macOS use netstat -rn -f inet.

When is split tunneling the right choice?

Use it when part of your traffic gains nothing from the tunnel or breaks because of it. The usual cases are listed below, along with when a full tunnel is the better answer.

  • Local network devices. Printers, NAS boxes and casting devices live in private ranges (RFC 1918) and should normally stay direct.
  • Bulk traffic. Operating system updates, game downloads and backups do not need the tunnel. Because AnboVPN plans are data-based, keeping them direct also keeps them out of your plan.
  • Region-aware apps. Services that work better with your local address, such as local banking or delivery apps, can stay direct while a browser profile uses the tunnel.
  • Separating work and personal use. Only a work app or browser goes through the tunnel.

A full tunnel is simpler when you cannot enumerate everything an app talks to, or when all traffic from the device should share one IP. For the whole-device capture mechanism, see TUN mode vs system proxy.

What goes wrong with split rules?

Most failures come from the rule not matching everything the application does. An app opens many connections to many hosts, and a rule that covers the obvious one leaves the rest on the direct path.

  1. Several domains per app. Login, API, static assets and analytics often live on different domains and CDNs. A domain list that covers only the main one produces half-tunneled sessions.
  2. Helper processes. Browsers and Electron apps spawn child processes. A rule that matches the main executable may not match the process that makes the request.
  3. DNS follows the wrong rule. A direct domain is usually resolved directly, and some lookups occur before any rule is evaluated. See DNS leaks explained.
  4. UDP and QUIC. Modern browsers may use HTTP/3 over UDP, which some rule engines treat differently from TCP.
  5. Overlapping rules. When one rule says tunnel and another says direct, the order of evaluation decides. Check your client's documentation for how it orders them.
  6. Direct traffic shows your real IP. That is the point of split tunneling, but make sure it is only the traffic you meant.

How do I verify that a split setup works?

Test each side of the split with the actual application, not a different tool. A terminal curl is a different process from your browser, so an app-based rule can treat them differently. Follow these steps.

  1. Pick one destination that should use the tunnel and one that should stay direct.
  2. From the intended application, open an IP lookup page for each case and note the IP address and location. The method is in how to check what IP and location a website sees.
  3. For address-based rules, confirm with ip route get (Linux), route print (Windows) or netstat -rn -f inet (macOS).
  4. Watch your client's connection list or log while you use the app, and look for hosts you did not expect on either side.
  5. Repeat after a reboot and after the app updates, since process names and CDN addresses change.

Where AnboVPN fits

AnboVPN's official clients support application-level smart routing and TUN mode. TUN mode takes over device traffic at the network layer through a virtual adapter, and smart routing lets you choose which applications use the connection. Third-party clients such as Clash, v2rayN or Shadowrocket, which you can also connect with a subscription link or configuration parameters, have their own rule systems that their developers maintain. In every case, run the verification steps above for the apps that matter to you. Clients are available on the download page.

References

Split tunneling
Smart routing
Routing table
VPN
Concepts

FAQ

What is the difference between split tunneling and a full tunnel?
A full tunnel sends all of a device's traffic through the VPN or proxy. Split tunneling sends only selected traffic through it, based on app, address or domain, and lets the rest use your normal network. A full tunnel is simpler and more uniform. Split tunneling gives finer control but needs rules that match everything an app does.
Does split tunneling reduce my data usage?
It reduces the traffic that passes through the connection, because direct traffic never enters the tunnel. On a data-based plan, keeping updates, game downloads and backups outside the tunnel is a natural use. How much you save depends on what your apps send, so check your client's usage display after a typical day.
Why does an app still show my real IP after I added it to the tunnel list?
Common causes are helper processes that the rule does not match, extra domains or CDNs the app uses, and IPv6 or UDP traffic taking a different path. Test with the app itself, check the connection list in your client, and compare IPv4 and IPv6 behavior before concluding the rule is wrong.
Should LAN devices go through the tunnel?
Normally not. Printers, NAS boxes and other devices in private address ranges are reachable directly, and sending that traffic through a remote tunnel usually breaks it. Most clients keep private ranges direct by default, but check your own setup so access to local devices continues to work.

Related posts

Getting Started

How Much VPN Data Do You Need? A Practical Way to Estimate It

Measure what your devices actually transfer in a normal week, convert video bitrate with GB per hour = Mbps x 0.45, then add a margin of 15 to 20 percent. Only traffic routed through the VPN counts, so routing choices matter as much as habits.

Data plan
Traffic estimate
Bitrate
Troubleshooting

Why Does My VPN Keep Disconnecting? A Troubleshooting Checklist

VPN drops almost always trace back to a short list: the network underneath changing or going idle, a NAT or firewall closing the flow, an MTU mismatch, power saving, conflicting software, or an exhausted account. Test them in that order.

VPN troubleshooting
NAT timeout
MTU
Concepts

IPv4 vs IPv6 on Dual-Stack Networks: Why They Behave Differently

On a dual-stack network your device has both an IPv4 and an IPv6 address and picks one per connection. The two stacks differ in addressing, NAT, routing and firewalls, so test them separately with curl -4 and curl -6.

IPv4
IPv6
Dual-stack
Concepts

DNS Leaks Explained: What They Are and How to Test for One

A DNS leak is when your device sends DNS queries to a resolver outside your VPN or proxy tunnel while the rest of your traffic goes through it. Test it with dig, nslookup or tcpdump, and fix it by making lookups follow the same path as connections.

DNS
DNS leak
TUN mode