AirLane
Back to blog
networking

TUN vs System Proxy in 2027: Which Proxy Mode Should You Choose?

Every proxy client offers the same two switches: system proxy and TUN mode. They look like they do the same thing — sending device traffic through a proxy — but the traffic entry point underneath is…

TUN vs System Proxy in 2027: Which Proxy Mode Should You Choose?

TUN vs System Proxy in 2027: Which Proxy Mode Should You Choose?

Every proxy client offers the same two switches: system proxy and TUN mode. They look like they do the same thing — sending device traffic through a proxy — but the traffic entry point underneath is completely different. This guide breaks the difference down across security, compatibility and flexibility, so you can pick per scenario.


In this guide — TUN vs System Proxy in 2027: Which Proxy…

One line each: cooperation vs. takeover

  • System proxy: registers a proxy address with the OS (e.g. 127.0.0.1:7890). Apps that read and honor the setting send their requests to the client.
  • TUN mode: creates a virtual network interface; system routing feeds IP traffic into the client — apps don't even know a proxy exists.

Remember this: system proxy answers "is the app willing to use a proxy"; TUN answers "how does the OS hand traffic to the client". The real difference is the entry point, not the routing rules.

System proxy: apps cooperate voluntarily

App → reads OS proxy setting → sends to 127.0.0.1:7890 → client applies rules
              ↑ apps that ignore the setting = silently bypass

Characteristics:

  • Browsers and most common desktop apps honor it — everyday browsing works out of the box
  • Apps that ignore the setting bypass completely — not an error, just a silent direct connection
  • Usually can't take over UDP traffic uniformly
  • Simple to configure, minimal impact on the system network stack, no virtual NIC needed
  • Usually no extra privileges required

TUN mode: virtual NIC takeover

App → sends packets normally → OS routing diverts IP packets into TUN → client applies rules
              ↑ the app is unaware of the proxy — nothing to "bypass"

Characteristics:

  • Apps ignoring the system proxy get taken over anyway — CLI tools, games, bespoke clients
  • Handles TCP and UDP (depending on client implementation and node/protocol support)
  • Pairs with DNS interception, Fake-IP and sniffing for fine-grained domain routing
  • Requires admin rights, a network extension or a kernel service component
  • Routing tables, DNS and virtual-NIC config are more demanding — a misconfiguration affects the whole network stack

New to TUN? Start with TUN interfaces and TUN mode first.

Security: leak surface vs. privilege surface

The system proxy's problem isn't "being insecure" — it's leaking:

  • Non-cooperative apps silently bypass — you think you're fully proxied while your real IP goes out direct
  • UDP mostly doesn't ride HTTP/SOCKS proxies → WebRTC, QUIC and DNS-over-UDP become leak channels
  • Apps resolve DNS themselves (browser DoH, in-app resolvers) → queries bypass the client = DNS leaks

TUN flips the model:

  • All IP traffic passes through the client — UDP and ICMP included — so leak channels shrink dramatically
  • With DNS interception + Fake-IP, resolution stays under client control, nearly eliminating DNS leaks and hijacking
  • The trade-off: a bigger privilege surface — admin/root rights or a system network extension; and since TUN owns the whole traffic entry, a bad config has wider blast radius

In short: system proxy = small privileges, large leak surface; TUN = large privileges, small leak surface.

Compatibility: what can be captured

Program typeSystem proxyTUN mode
Browsers✅ honors OS setting✅ captured
Common desktop appsmostly honors✅ captured
CLI tools❌ mostly ignores, needs env vars✅ captured
Games❌ commonly bypasses✅ captured (route-eligible traffic)
Custom/specialized clients❌ likely bypasses✅ captured
UDP traffic⚠️ limited✅ handled

The system-proxy compatibility list is essentially "apps that volunteer"; TUN turns it into "traffic that qualifies" — it's about routing and rules, not app cooperation.

Flexibility: the entry point sets the ceiling

Both modes share the same routing engine — but rules can only govern traffic that actually arrives:

  • Under system proxy: apps do their own DNS, so the client can only guess domains via traffic sniffing of TLS SNI; Fake-IP is dead and per-process routing impossible
  • Under TUN: DNS queries pass through the client too — precise domain routing, working Fake-IP, per-process rules, full DNS routing scheduling

Identical rule sets deliver far more under TUN.

Two common misconceptions

TUN ≠ all traffic goes through a node

Traffic entering TUN doesn't mean traffic exiting via a node. Separate three concepts:

  1. Capture: did traffic enter TUN / the client
  2. Rule matching: the client decides how the connection is handled
  3. Actual exit: proxy node or direct local connection

In rule mode, Google rides a node, domestic sites go DIRECT, LAN devices follow their rules — TUN's job is "collect everything"; where it goes is the rules' call.

TUN isn't necessarily slower

System proxy is a shorter path; TUN adds a virtual NIC, routing and packet processing — some CPU overhead. But real-world experience is dominated by node quality, protocol and device performance. Don't assume "TUN must be slower" — measure both modes with the proxy speed test guide and compare.

Which to pick: by scenario

ScenarioPickWhy
Everyday browsingSystem proxySimple, sufficient, minimal system impact
CLI / games / special appsTUNCaptures apps that ignore system settings
UDP needs (games, voice, QUIC)TUNSystem proxy barely handles UDP
Fine-grained domain/process routingTUNDNS interception + Fake-IP unlock everything
Locked-down machines (no admin)System proxyNo elevation required

In AirLane: one toggle, both modes

AirLane defaults to TUN (the kernel service installs once and stays resident — since v1.0.8, macOS no longer nags for re-authorization), and you can flip to system proxy any time under Settings → Network.

The handy part is visual verification: the dashboard's route path draws capture → match → exit end-to-end. After switching modes, open chain trace, enter a domain and literally see which layer the traffic entered through, which rule it hit and which exit it took — no guessing.

Don't want to choose? There's a third path

Mode decides how traffic enters the client; nodes decide how it exits to the internet — mastering both takes effort. If you'd rather have something that just works and stays online, skip the whole decision: an all-in-one VPN like MirrorSpeed wraps mode selection, routing and node scheduling internally — free tier with unlimited traffic, usable from mainland China, upgradable from $0.88–3/mo. Getting your needs covered first and moving to an orchestratable client like AirLane later is a perfectly reasonable path.

Bottom line

System proxy suffices for daily browsing; for full-app capture, UDP and fine-grained routing, go TUN. The difference isn't the rules — they're shared — it's the entry point: system proxy relies on app cooperation, TUN on OS-level takeover.