- TUN mode and system proxy are different mechanisms. System proxy only redirects apps that read the setting. TUN adds a virtual adapter and takes over the default route, so a TUN failure looks like the whole machine going offline, not one browser tab failing.
- Order matters: first prove that turning TUN off and leaving system proxy on still works. If the machine is offline with TUN off too, TUN is not your problem.
- v2rayN 5.x has no TUN switch; 6.x does, and it needs a working sing-box core. On a version mismatch the checkbox can look enabled while no adapter is created.
- Change one thing per round and keep the raw log line. To recover: uncheck TUN, quit the client, then confirm the adapter is gone.
30-second self-check: did TUN actually take over?
Four results answer four different questions. Do not read them as one.
# 1. Is there a virtual adapter? look for sing-box / wintun / tun in the description
ipconfig /all
# 2. Which interface owns the default route? check the interface column on 0.0.0.0
route print 0.0.0.0
# 3. Bypass TUN and hit the local proxy port directly (port as set in your client)
curl.exe --proxy http://127.0.0.1:10809 -I https://www.gstatic.com/generate_204
# 4. Is name resolution still alive?
nslookup example.com
How to read it: no adapter in step 1 means TUN never started, layer one. Adapter present but the default route still points at the physical NIC means nothing is captured, layer two. Adapter and route correct but step 4 times out means DNS, layer three. If step 3 succeeds while TUN is on, your node and local port are fine.
What TUN mode actually changes
System proxy tells apps to connect to a local port. It only applies to apps that honour the setting, which is why command-line tools and some games keep going direct while the browser works.
TUN installs a virtual adapter and rewrites the default route, then the core captures IP packets in kernel space. It does not depend on app cooperation, and in exchange it owns your routing table and DNS. That is why the failure surface is much larger: a missing adapter, a wrong route, or a DNS setting pointing nowhere all produce a machine-wide outage.
This is also why "system proxy works, TUN does not" is a useful result: it narrows the fault from "the node or subscription is broken" down to "the TUN layer is misconfigured".
Layer one: checked, but no adapter appears
Symptom: ipconfig /all shows no interface with sing-box, wintun or tun in its description. In order of frequency:
Not running as administrator
Creating a virtual adapter and editing the routing table both need elevation. Started without it, the switch can look enabled while adapter creation failed silently. Relaunch as administrator and rerun ipconfig /all to compare.
The sing-box core is missing or the path is stale
v2rayN's TUN path is provided by sing-box. If the binary is absent, or the configured path was moved or quarantined by antivirus, there is nothing to launch. Check the program folder first, confirm the binary runs by hand, then check the core path setting. Antivirus quarantine is the variant people miss most.
A leftover adapter or driver conflict
After other proxy clients, VMs or VPNs, a stale TAP/TUN driver can block the new adapter. The tell is a yellow warning marker under network adapters in Device Manager. Do not delete drivers first: uncheck TUN, quit every proxy client, and see whether the marker clears.
Layer two: adapter exists, everything offline
Symptom: the adapter is there, but route print 0.0.0.0 does not point the default route at it, or does and traffic still dies.
The default route was not rewritten
A working TUN client adds a lower-metric default route automatically. If it is missing, suspect missing elevation or another program rewriting routes. Run route print 0.0.0.0 before and after enabling TUN and compare the interface column.
Ping works, HTTP does not
This is the one most often misread as "the node is dead". ICMP passing while HTTP stalls usually means MTU: oversized packets are dropped while small ones get through. Test with ping -f -l 1400 example.com, lower the size until it passes unfragmented, then set the TUN MTU slightly below that value.
Layer three: DNS is the main suspect
Once TUN owns the traffic, DNS requests can be captured too. Point the client at an unreachable resolver, or leave the OS resolver pointing at a gateway that is now bypassed, and you get "IP works, names do not".
Separate it directly: run nslookup example.com. On timeout, run nslookup example.com 223.5.5.5. If the explicit resolver answers and the default one does not, this is local DNS configuration. Fix it in one place only: setting DNS in the client, the adapter and the browser at the same time is the most common cause of intermittent resolution.
Browser secure DNS deserves its own mention: it bypasses the OS resolver over DoH, producing the split state where the client resolves fine and the browser still fails. Turn it off while debugging.
Layer four: only some apps reach the internet
Most of the machine is fine and a few apps are not, so TUN took over and the problem is routing rules or that app's own network stack.
- The app forces direct connections: built-in proxy settings or hardcoded DNS bypass the system route.
- A rule sends it direct: check for a direct rule matching its process name or a domain suffix.
- The app ships its own stack: some virtualisation, container and anti-cheat components bypass TUN entirely.
Start from the log: see whether that app's connections are rejected, then switch to global mode for one test. Works in global but not in rule mode means a rule problem; TUN itself needs no further changes.
Settings actually worth touching
- MTU: lower it only when small packets pass and large ones do not.
- DNS: configure once. If the client owns it, set the adapter back to automatic.
- Routing mode: global first to prove the tunnel, then rules.
- Core path: only relevant when no adapter is created.
Not worth touching: the system proxy toggle, IPv6 (IPv6 faults show as some sites being slow, not a full outage), and the node itself. Changing anything outside these four removes your baseline for the next round.
Two TUN clients at once
Two virtual adapters fighting for the default route usually means neither wins, and connectivity comes and goes. Common on machines with v2rayN plus Clash Verge Rev or Hiddify installed.
Confirm it: two virtual adapters in ipconfig /all and multiple default routes in route print 0.0.0.0. Keep TUN in exactly one client, move the rest to system proxy or close them, then run ipconfig to confirm the extra adapter is gone.
When not to use TUN
TUN is right when you need every packet captured: command-line tools, games, transparent proxying. It is wrong for plain browser use, where system proxy is enough with a far smaller failure surface, and for machines already running software that needs a virtual adapter, such as VMs, Docker Desktop or corporate VPNs. That conflict is structural, not a configuration mistake.
FAQ
v2rayN shows TUN enabled and the tray icon looks normal, but nothing loads. Where first?
Run ipconfig /all and look for a virtual adapter. None means TUN never took over, so check elevation and the core. Adapter present but no default route pointing at it means something is rewriting routes.
Can TUN mode and system proxy run at the same time?
Technically yes, but keep one during debugging, otherwise you cannot tell which layer failed.
Turning TUN off did not restore the internet. Why?
Then the fault was never TUN. If the adapter lingers, a stale route is the usual cause; quit the client or restart the adapter. If the adapter is gone and you are still offline, debug the node, subscription and core startup.
Where should DNS be configured in TUN mode?
One place. If the client owns DNS, set the adapter to automatic and disable browser secure DNS.
There is no TUN switch in v2rayN 5.x.
Correct, 5.x has no TUN. Upgrade to 6.x with a working sing-box core, or use system proxy. Do not patch TUN into an old build.
Only a game fails while browsing works. Is that TUN?
Usually not TUN itself, but a routing rule or the game's anti-cheat network component. Test in global mode: global works means a rule problem; global also fails means the game bypasses TUN.
Evidence and limits
The order above follows three reproducible signals: the actual interface and routing table state, the first error line in the client log, and the on/off comparison. Every command is a built-in system tool.
Limits: menu names and core dependencies differ between v2rayN builds, and interface items here follow 6.x. The adapter name is decided by the core, so judge takeover by which interface owns the default route. A single latency test, DNS answer or egress IP cannot prove which path traffic took.
This page is also available in Chinese: 阅读中文版.
TUN that never comes up because the core exited first looks identical in the UI: check failed to open geosite.dat before touching routes or DNS.