Comparison · Comparisons

Layer-3 Global TUN vs OS System Proxy: Technical Architecture Compared

Technical comparison of Layer-3 Global TUN virtual adapters vs HTTP/SOCKS5 system proxies: CLI coverage, UDP support, latency, and smart split routing.

Published: Last verified: 7 min read Tested on: Windows 11 (Wintun) & macOS 15 (utun) · YIVPN v1.0.4 (sing-box 1.14.3)

Every modern proxy and VPN client offers two fundamentally different ways to intercept traffic on your computer: OS System Proxy (HTTP / SOCKS5) and Layer-3 Global TUN (Virtual Network Adapter). Understanding where each operates in the networking stack explains why web browsers might load instantly while terminal CLIs, desktop apps, or real-time voice calls fail to connect.

Key Takeaways (TL;DR)

  • An OS System Proxy operates at the application layer and relies on voluntary app cooperation—browsers honor it, while most CLI tools, SSH clients, and UDP apps ignore it.
  • Layer-3 Global TUN creates a virtual network interface (Wintun on Windows, utun on macOS, VpnService on Android) that captures TCP, UDP, and QUIC across all processes automatically.
  • Global TUN does NOT mean routing local traffic overseas: pairing Global TUN with Smart Split keeps LAN subnets, local banking, and regional CDNs on direct ISP routing.
  • Use Global TUN + Smart Split as your everyday default; fall back to System Proxy only on locked-down workstations without administrator privileges.

1. Side-by-Side Comparison: Global TUN vs OS System Proxy

CapabilityOS System Proxy (HTTP / SOCKS5)Layer-3 Global TUN (Virtual Adapter)
OSI LayerLayer 7 / Application opt-inLayer 3 / Kernel IP routing table
Web Browsers (Chrome, Safari, Edge)Supported automaticallySupported automatically
Terminal CLIs (claude, git, ssh, npm)Ignored unless HTTPS_PROXY is exportedCaptured transparently (zero env config)
Standalone Desktop Apps (Figma, Discord)Inconsistent (apps using custom sockets bypass it)Full coverage across all desktop processes
Native UDP / QUIC / WebRTC VoiceNot supported over HTTP proxyFull native UDP & QUIC forwarding
Admin Privileges RequiredNone (user-space registry/pref toggle)Adapter authorization (Wintun / utun)
Smart Split-TunnelingDomain/PAC rules for proxy-aware apps onlyKernel-wide domain sniffing + GeoIP/CIDR split

2. How OS System Proxies Work—and Why Apps Bypass Them

Enabling a traditional System Proxy opens a local listener port (such as 127.0.0.1:10808) and updates a desktop preference key (WinINet on Windows or scutil Network Services on macOS). Crucially, the operating system kernel does not enforce this setting.

  • Cooperative GUI browsers read the OS proxy preference and forward HTTP/HTTPS requests through the local listener.
  • Non-cooperative processes—including OpenSSH (tcp/22), Go/Rust/Node.js command-line binaries, game clients, and WebRTC media engines—open raw TCP or UDP sockets directly on the physical interface, completely bypassing the proxy and failing behind restrictive firewalls.

3. How Layer-3 Global TUN Achieves Zero-Config Process Coverage

A TUN adapter is a virtual Layer-3 point-to-point interface (Wintun on Windows 10/11, native utun on macOS 11+, and VpnService on Android 7.0+). When YIVPN enables Global TUN on its bundled sing-box 1.14.3 engine:

  1. OS-Level Packet Capture: Outbound IPv4/IPv6 TCP and UDP packets from every application enter the virtual interface without requiring HTTP_PROXY environment variables or per-app proxy settings.
  2. TLS/QUIC Domain Sniffing & Smart Split Evaluation: Before a single byte leaves your machine, sing-box evaluates the destination against precompiled singbox-smart-split rules. Local subnets (127.0.0.0/8, 10.0.0.0/8, 192.168.0.0/16) and regional direct services exit directly via your physical NIC, while international AI, developer, and media traffic enters the encrypted Hysteria2 or VLESS+REALITY tunnel.
  3. DNS Leak Prevention: Remote destinations are resolved over encrypted remote DNS inside the tunnel, preventing ISP DNS poisoning or split-horizon leaks.
Common Misconception: "Global TUN" refers to system-wide app coverage, not forcing 100% of destinations through a foreign server. Pairing Global TUN + Smart Split gives you universal app compatibility while preserving zero-latency direct speeds for local banking and LAN devices.

4. Which Mode Should You Use?

Choose the right mode for your environment in seconds:

  • Use Global TUN + Smart Split (Recommended for 90%+ of users) when:
  • You code with Cursor, Claude Code, OpenAI Codex, Git over SSH, or Docker;
  • You rely on standalone desktop apps (ChatGPT Desktop, Claude Desktop, Figma, Discord voice, Telegram) or UDP/QUIC protocols;
  • You want one-click protection on Windows, macOS, or Android without maintaining shell proxy scripts.
  • Use System Proxy / Local Listener Mode when:
  • You are on a locked-down corporate machine without administrator rights (YIVPN automatically falls back to System Proxy mode when TUN elevation is unavailable);
  • You intentionally want only a specific browser profile or curl command to use the tunnel while leaving the rest of the OS untouched.

You can test both modes side by side on YIVPN v1.0.4 using the 90-minute daily free tier (zero sign-up or card required, resetting daily at 16:00 UTC). When you need unlimited runtime across up to 5 concurrent devices, YiPro plans start at $1.83/mo ($21.99/yr or $2.99/mo).

FAQ

Does Layer-3 Global TUN add noticeable CPU overhead or latency compared to a system proxy?

On modern operating systems, user-space Wintun and macOS utun add less than 0.3 ms of local packet forwarding overhead while supporting full hardware UDP/QUIC throughput.

If Global TUN captures all system traffic, why do my local NAS and domestic apps still run at native speed?

Because packet capture and routing policy are decoupled in sing-box 1.14.3. Global TUN inspects outbound flows locally and sends domestic domains and private RFC1918 subnets straight out your physical NIC.

What happens if I run YIVPN on a corporate PC without admin rights to create a TUN adapter?

YIVPN automatically detects missing privilege elevation and falls back cleanly to local HTTP/SOCKS5 system proxy mode so your browser and proxy-aware apps continue working.

Start with 90 Minutes Free Every Day — Zero Sign-Up Required

Download YIVPN v1.0.6 with bundled offline sing-box core and Smart Split routing for Windows, macOS, and Android.

Download Official Apps → Compare Plans & Pricing