Limits of the system proxy
A "system proxy" tells the operating system to send web requests to an HTTP/SOCKS proxy on a local port. Programs that respect the setting (most browsers) use it, but some do not read it, including certain command-line tools, games and apps with their own network stack. Those connect directly.
What TUN does
TUN mode creates a virtual network adapter and changes routing so the whole device's traffic flows through it to the proxy program. Even programs that ignore the system proxy get captured.
When to use it
- A program ignores the system proxy but needs rule-based routing.
- You want all traffic on the device handled by the same rules.
- You need to handle UDP traffic (depending on client and protocol).
Things to watch for
- Permissions: desktop clients usually need administrator or root rights, or a service install. The OS may prompt the first time.
- Conflicts with other VPNs: several virtual adapters fight over routes, so turn others off first.
- DNS settings: TUN is usually paired with Fake-IP or a similar DNS scheme. Misconfiguration makes some sites fail.
- LAN access: if local devices become unreachable, check that routing rules send LAN addresses direct.
Summary
A system proxy is simple and compatible but incomplete. TUN covers more but depends on permissions and DNS settings. Reach for TUN when a program keeps connecting directly despite the proxy being on.