Lesson 6 of 9 · 24m
Split Tunneling, Full Tunneling, and DNS
How to decide which traffic belongs in the tunnel, what `0.0.0.0/0` really does on clients, and why DNS leaks or search-domain mistakes are usually the first visible failure.
Most user-facing VPN incidents are not encryption failures. They are routing surprise: “the internet broke when I connected,” “internal names don't resolve,” or “my traffic is taking a bizarre path through another continent.” Split tunneling is where routing intent meets user experience.
Full tunnel means default route capture
A full-tunnel client sends all internet traffic through WireGuard:
[Peer]
PublicKey = ACCESS_GW_PUBLIC_KEY
Endpoint = vpn.example.net:51820
AllowedIPs = 0.0.0.0/0, ::/0On many clients, that installs a default route into the tunnel. WireGuard implementations often use policy routing tricks so the encrypted endpoint packets still use the physical internet connection while payload traffic uses wg0.
Full tunnel is appropriate when untrusted local networks are a real threat, when egress policy requires centralized inspection, or when users need a stable public IP. It costs gateway bandwidth, increases latency for geographically distant users, and makes your VPN a critical internet dependency.
Split tunnel sends only private destinations
A split-tunnel client advertises only internal prefixes:
[Peer]
PublicKey = ACCESS_GW_PUBLIC_KEY
Endpoint = vpn.example.net:51820
AllowedIPs = 10.44.0.0/16, 172.20.0.0/16Now traffic to internal services uses the tunnel while ordinary internet traffic uses the local network. This is often the right answer for administrative access because it minimizes bandwidth cost and user friction.
The trap is authorization. AllowedIPs determines what can enter the tunnel, but it does not grant access by itself. Firewall rules on the gateway still need to constrain which internal systems users can reach.
DNS is half of the product
A technically correct tunnel with wrong DNS still feels broken. Clients commonly need internal resolvers for private zones:
[Interface]
DNS = 10.44.0.2, internal.example.netIn wg-quick, the DNS directive invokes resolver integration such as resolvconf or systemd mechanisms depending on platform. On managed fleets, prefer native OS VPN DNS configuration or MDM policy rather than pretending a text-file convention is universal.
Split DNS is the goal for most split tunnels: internal names resolve through internal servers, public names resolve normally. If every name goes to the internal resolver, you create privacy exposure and unnecessary dependency. If no names go there, users type IP addresses and invent unsafe workarounds.
Leaks are usually configuration, not malice
Common leaks are IPv6 bypassing a tunnel that only covers IPv4, stale local-resolver cache entries after network transitions, browser DNS-over-HTTPS bypassing enterprise policy, and LAN access hairpinning through the gateway.
Check both routing and resolver state after connecting:
$ ip route get 1.1.1.1; ip route get 10.44.0.10
$ resolvectl status # scutil --dns on macOSKill switches are policy decisions
Some clients can block non-tunnel traffic when the VPN is down. That can prevent accidental cleartext leakage on hostile networks, but it also turns transient VPN failure into total network loss. Decide deliberately for high-risk users instead of enabling it as a vague “more secure” checkbox.
Field notes
- If you configure
0.0.0.0/0and forget::/0, IPv6 may quietly bypass the tunnel. - Never use public resolver IPs as internal tunnel DNS unless you understand who can query them and what zones they serve.
- Test from captive-portal networks, hotel NAT, and mobile hotspots. Client behavior changes with the underlying network.
- Document what users should expect: internet breakout location, internal domains, and whether LAN devices remain reachable.
- DNS observations are privacy-sensitive. Centralizing them is a policy decision, not just a convenience.
Was this lesson helpful?