November 1, 2026 · Troubleshooting · About 9 min

How to Enable TUN Mode in v2rayN: Admin Setup Guide

Need v2rayN to route more than browser traffic? This guide walks through enabling TUN mode on Windows, explains why administrator access may be needed, and shows how to verify routing. It also covers common startup, connectivity, and VPN conflict issues, plus how to revert the setting.

At a glance

Need v2rayN to route more than browser traffic? This guide explains what TUN mode does on Windows, why creating its virtual network adapter may require administrator access, and how to enable and verify it without confusing it with the ordinary system proxy. It also covers startup failures, DNS and routing checks, conflicts with other VPN software, and a safe way to turn TUN off again. Menu names can differ slightly between v2rayN releases, so use the labels shown by your installed build when they do not match the examples exactly.

What TUN mode does—and how it differs from the system proxy

In normal system-proxy mode, v2rayN sets Windows proxy settings for applications that know how to use them. Many browsers and desktop applications follow those settings, but some programs ignore them or use their own connection methods. As a result, the browser may work through a node while another application connects directly or cannot connect at all.

TUN mode takes a different approach. It creates a virtual network adapter and routes selected IP traffic through that adapter for processing by the supported proxy core. This can cover applications that do not read the Windows proxy setting. It does not mean that every connection must use the proxy: the active routing rules can send traffic through a proxy, directly to its destination, or to a blocking route. DNS handling can also depend on the TUN configuration and routing rules.

System proxy

How it works
Sets Windows proxy settings
Traffic scope
Apps that honor the system proxy
Privileges
Usually does not need adapter creation
Best first test
A browser or other proxy-aware app

A working browser test does not prove that apps which ignore Windows proxy settings are routed.

TUN mode

How it works
Routes traffic through a virtual adapter
Traffic scope
Selected IP traffic, subject to rules
Privileges
May need elevation to create or configure the adapter
Best first test
One app that did not follow system proxy

TUN does not bypass routing rules, firewall policy, or the selected node’s connection limits.

Use TUN only when you need its broader application coverage. It adds another networking layer, so a wrong route, DNS setting, permission, or adapter state can affect more than one app. If ordinary system-proxy mode already handles the applications you use, leaving TUN off is a sensible and simpler configuration.

Check the Windows and v2rayN setup before enabling TUN

Before changing anything, confirm that v2rayN itself can start a core and connect using your selected node in the mode that currently works. TUN is not a repair for an invalid subscription, an unavailable node, or a core that exits at startup. If the basic proxy connection already fails, resolve that first; otherwise, a second networking layer makes the original problem harder to isolate.

Open v2rayN’s TUN-related settings and read the options provided by your installed build. The available controls and wording can vary by release and core. TUN support is provided by the compatible core and its configuration, not by the Windows system-proxy toggle alone. Do not copy a configuration made for another release or core without checking that its fields are supported.

Windows 10/11
Confirm that your Windows build is supported by your v2rayN release
1 adapter
Check for an existing TUN or VPN adapter before adding another
1 change
Enable TUN first without changing unrelated routing or DNS settings

These figures are a cautious setup checklist, not a performance benchmark or a guarantee for every PC. If you use work-managed Windows, endpoint security, a third-party firewall, or another VPN client, check its policy before creating a virtual adapter. An administrator account does not automatically give permission to override an organization’s network controls.

Save or note your current settings before you proceed. Record whether the system proxy is on, which node is selected, and whether any custom routing or DNS options are enabled. If you have edited a custom configuration, make a separate backup. That record makes it possible to restore the previous behavior rather than guessing which change caused a new problem.

Enable TUN mode with a controlled first test

Use the following sequence on a Windows desktop. In many builds, TUN controls appear under a TUN-related entry in the Settings menu or on the main window; the exact placement and labels are release-dependent. If a setting is not present, do not substitute an unrelated system-proxy option. Check that your installed v2rayN build and selected core provide TUN support.

  1. Confirm a working node

    Start v2rayN normally, select a known working node, and test the existing connection with system proxy mode if that is your current setup. Note the time and any core error shown in the log. Continue only if the core starts and the basic connection succeeds.

  2. Open TUN settings

    In v2rayN, open the TUN mode or TUN settings entry shown by your version. Review the core, adapter, routing, and DNS choices that are actually displayed. Leave advanced options at their current or default values for the first test unless the interface clearly marks a required setting.

  3. Restart with elevation

    If enabling TUN reports an access-denied error or cannot create the adapter, exit v2rayN, right-click its application shortcut, and choose “Run as administrator.” Approve the Windows User Account Control prompt only if you trust the program and intended to make this change. Elevation may be unnecessary on a system where the adapter has already been installed and the required permissions are available.

  4. Enable TUN once

    Turn on the TUN option in the location provided by your build, then start or restart the proxy core as prompted. Avoid enabling several VPN clients or changing DNS, routing rules, and the node at the same time. If v2rayN reports a startup error, record its first specific error line before trying again.

  5. Test one application

    Use one application that previously ignored the Windows system proxy. Open a permitted test destination, then check the v2rayN log for a new connection and the expected route. Once that works, test your usual applications one at a time. Do not use a browser-only result as proof that every app follows the same route.

Keep Windows’ system proxy setting separate from the TUN switch. Depending on your intended setup, the system proxy may remain enabled, be controlled by v2rayN, or be unnecessary for applications captured through TUN. Avoid toggling several proxy controls simply because they share the word “proxy.” After the first successful test, note the combination that works so you can reproduce it after a restart.

Verify routing and diagnose common failures

Check the full chain rather than relying on a single “connected” indicator. A core can be running while a TUN adapter is missing; an adapter can exist while routing sends a particular destination directly; and an application can fail because of its own proxy, DNS, or firewall settings. Compare behavior before and after enabling TUN using the same application and destination.

Symptom Check first Next action
TUN cannot start or the adapter is not created The first startup error, permissions, and whether another TUN adapter is already present Close conflicting clients, restart v2rayN with appropriate elevation, and try once
The core starts, but one application has no connection Routing rules, application-specific proxy settings, firewall prompts, and DNS behavior Test a second application and inspect the connection log for the first one
Websites open, but some services fail Whether the affected destination is routed direct, proxied, or blocked Compare the matching rule and DNS path before changing the node
Network access disappears after another VPN is started Which client owns the active route or virtual adapter Disconnect one VPN, restore ordinary access, then test TUN by itself
It works until Windows restarts Whether v2rayN starts, whether the core starts, and whether TUN is enabled again Launch v2rayN manually first; configure startup only after manual operation is stable

For a permission error, first check whether v2rayN is running with the access required to create or configure the virtual adapter. If elevation fixes the issue, that identifies a permissions-related difference; it does not mean every launch should automatically be elevated. Use the least privilege that works, and follow local security policy. If an administrator prompt appears unexpectedly or the executable is not the one you intended to run, cancel it and verify the application before proceeding.

For a connectivity failure, distinguish core startup from outbound connection failure. If the core exits immediately, read the first relevant startup error and check the TUN configuration or missing core support. If the core stays running but requests fail, inspect the connection log at the time of the test. Confirm that the chosen node is available, that the destination matches the route you expect, and that DNS requests are handled by the intended configuration.

Other VPN clients, security products, and virtual network tools can compete for routes, adapter control, or DNS settings. Disconnect the other VPN before testing; do not uninstall security software as a first troubleshooting step. If the conflict happens only when both clients run together, check whether their documented configuration supports coexistence. Some environments intentionally prohibit multiple VPNs, and changing adapter metrics or firewall policy without understanding the effect can break local access.

When the symptom affects all network access, switch TUN off using v2rayN’s own control if possible, then stop the core and restore the previous system-proxy state. If Windows still has no connectivity, disconnect other VPNs and check the active network connection before making further changes. Avoid deleting adapters or resetting network settings as an initial response; those actions can remove information useful for diagnosis and may not address the underlying conflict.

Turn TUN off and restore the previous setup

To revert, disable TUN from the same v2rayN control you used to enable it, then stop or restart the core as the application requests. If you previously used ordinary system-proxy mode, reselect the intended system-proxy state in v2rayN and check the Windows proxy settings. Do not assume that turning TUN off automatically restores every proxy setting changed earlier.

Test a browser and an application that does not normally follow the system proxy. If the browser works but the other app does not, that can be the expected result when you return to system-proxy-only mode. If neither works, check whether the core is still running, whether Windows’ proxy setting was left enabled with no local listener, and whether another VPN still owns the route. A restart of v2rayN may help apply the restored settings, but record any error rather than repeatedly toggling controls.

Once you have confirmed that TUN is off and the previous connection works, keep the TUN configuration only if you expect to use it again. Remove or modify an adapter only through v2rayN’s supported controls or Windows’ normal network settings, and only when you have confirmed that it belongs to this setup and is no longer needed. Never remove an adapter merely because its name is unfamiliar; other software may depend on it.

Frequently asked questions

Does TUN always require administrator access?

No. Creating or configuring a virtual adapter may require elevation, while a previously installed adapter or an environment with suitable permissions may work without an elevated launch. If v2rayN reports an access error, close it and try “Run as administrator” once, subject to your organization’s policy. Ordinary system-proxy mode does not create the same kind of adapter.

Should I turn on system proxy and TUN at the same time?

Not automatically. They handle traffic differently, and the right combination depends on the applications and controls in your v2rayN build. Start with the documented TUN option and one test app, then check Windows proxy settings separately. If a browser behaves differently from another app, verify which routing method each one is using.

Why does the browser work while another app still fails?

The browser may follow the Windows system proxy while the other app relies on direct connections, or the two destinations may match different routing rules. With TUN enabled, check that the adapter is active, inspect the rule and DNS path for the affected destination, and read the v2rayN connection log while reproducing the failure.

Can I run TUN alongside another VPN?

Sometimes, but coexistence depends on both clients and the Windows routing configuration. Test with the other VPN disconnected first. If each works alone but they fail together, treat it as a route, adapter, or DNS conflict and consult the relevant software’s configuration guidance instead of changing Windows routes at random.

Download v2rayNChoose your OS and architecture