What TUN Mode Does
TUN mode lets Clash Verge Rev route network traffic through a virtual network adapter in Windows. This is useful when an application does not follow the Windows system proxy settings. Many browsers can use a system proxy, but some games, command-line tools, launchers, update services, and desktop applications may connect directly instead. With TUN enabled, Mihomo can capture much of this traffic at the network layer and apply the rules in your active Clash profile.
TUN does not create a proxy service, supply proxy nodes, or guarantee that every packet will be routed through a remote server. You still need a working profile, a selected proxy group or node, and rules that send the traffic to the intended policy. TUN changes how traffic reaches the Clash core; your profile determines what the core does with it.
This guide walks through enabling TUN mode in Clash Verge Rev on Windows, checking the required permissions and virtual adapter, and testing the result. Interface wording can differ slightly between releases, so use the setting names as landmarks rather than assuming every button is in precisely the same place.
What Success Looks Like
Clash Verge Rev reports TUN as enabled, Windows shows a virtual network adapter, and an application that ignores the system proxy follows the rules in your active profile.
Before You Begin
Import and activate a valid profile first. Confirm that at least one proxy node is available and that a normal browser test works. TUN cannot repair an expired subscription, an unreachable node, or an incorrect routing policy.
1Prepare Clash Verge Rev and Windows
Start by making sure the client and its core are in a known-good state. Open Clash Verge Rev and check that your intended profile is active. If the profile contains proxy groups, select a usable node in the group that handles the traffic you plan to test. In rule mode, inspect the relevant rules or the connection log later to confirm which policy was matched. A working system proxy is a useful baseline because it helps separate profile problems from TUN-specific problems.
Save any unsaved profile changes before changing network settings. If you have recently edited YAML, a typo or invalid value may prevent Mihomo from starting correctly. Use the client’s configuration validation or reload function if available, and look for core errors in the log. Avoid changing multiple DNS, routing, and adapter options at once; changing one variable at a time makes failures much easier to diagnose.
Check the Client and Core
- Use a current, trusted build: Download Clash Verge Rev from a source you trust and install the Windows build that matches your system architecture. Avoid running two different Clash clients at the same time while testing.
- Confirm the core is available: TUN is handled by the core, commonly Mihomo. If the core fails to start, TUN cannot capture traffic even if the switch appears to be enabled.
- Check the active profile: Make sure the profile is selected and that its proxy groups contain usable choices. A profile can load successfully while a selected node is still unavailable.
- Close competing network tools temporarily: Another VPN, proxy client, traffic filter, or security product may install its own adapter or alter routes. For an initial test, avoid overlapping tunnel products.
Understand Windows Permissions
Creating and managing a virtual network adapter requires elevated access. Depending on the Clash Verge Rev version and how its service is installed, the application may request administrator permission, ask to install a service, or prompt for permission when TUN is first enabled. Approve the prompt only when you intentionally launched the client and trust the application source.
If the client says that a service or elevated permission is required, follow its own setup prompt and then restart Clash Verge Rev as directed. Do not repeatedly click the TUN switch without resolving the permission error. If the application was installed without the required service, the setting may turn itself off again or fail to create an adapter. On a managed work or school computer, organization policy may prevent driver or service installation; in that case, contact the device administrator rather than attempting to bypass policy.
Save Your Work First
Changing tunnel adapters and routes can briefly interrupt active connections. Save downloads, remote sessions, and unsaved work before enabling TUN or restarting a network service.
2Enable TUN Mode in Clash Verge Rev
Open the settings area in Clash Verge Rev and locate the network or TUN settings. In some releases, TUN is presented as a switch on the general settings page; in others, related controls are grouped under a settings section with options for the stack, automatic route configuration, or DNS handling. Enable TUN and approve any operating-system permission or service prompt. If a restart is requested, restart the application before testing traffic.
After enabling the feature, return to the main client window and confirm that the core is running. Look for a TUN status indicator or a successful startup message in the log. A toggle that remains on is not, by itself, proof that packets are being captured: check for core errors, permission messages, and adapter creation before moving on.
Choose Sensible Initial Options
For a first test, keep the default TUN stack and routing options unless you have a specific compatibility reason to change them. Labels and available values vary between Mihomo builds and Clash Verge Rev releases. If you see options such as system, gvisor, or mixed for the stack, treat them as alternative implementations, not separate proxy modes. Start with the client’s default; switch stacks only when logs or repeatable application behavior indicate a compatibility issue.
Automatic route configuration is generally needed so Windows sends suitable traffic to the virtual adapter. Some clients also offer strict routing, which can reduce traffic escaping the tunnel but may interfere with local networks, virtual machines, or devices on the same LAN. Leave stricter options at their defaults for the initial setup. If you later enable them, verify access to printers, file shares, work resources, and other local devices that you rely on.
DNS handling is also relevant. TUN can work alongside the DNS settings in the active profile, but it does not make every DNS configuration correct automatically. Avoid pasting a generic DNS block into a managed subscription profile without understanding how profile updates and overrides work. If name resolution fails only after TUN is enabled, inspect the core log and the profile’s DNS section before changing several settings at once.
YAML Settings Are Not a Substitute for the Client Switch
Some advanced users manage Mihomo settings through YAML. A simplified TUN section may look like the example below, but the exact supported fields depend on the core version and the way the client merges configuration. Do not add this block blindly if Clash Verge Rev already manages TUN through its interface; duplicate or conflicting settings can make troubleshooting harder.
Use the client’s built-in controls where possible, and consult the documentation for the exact core version if you maintain a custom configuration. If a profile is supplied by a provider, prefer supported overrides or the client’s settings rather than editing a subscription file that will be replaced on its next update.
3Verify the Virtual Adapter and Traffic
Verify TUN at more than one level. First, check the Clash Verge Rev status and log for a successful core start and the absence of adapter or permission errors. Next, check whether Windows created a virtual adapter. Press Win + R, enter ncpa.cpl, and press Enter to open Network Connections. Look for a new adapter associated with the tunnel. The display name can vary by client version and core, so do not rely on one exact label.
You can also open Device Manager and inspect the network adapters list. If the adapter is missing, disabled, or marked with an error, TUN may not have initialized correctly. Do not disable unrelated physical adapters to make the tunnel appear. Resolve any installer, permission, or driver issue shown by Windows or the client first.
Test an Application That Ignores the System Proxy
Use a repeatable test, not just a single page load in a browser that may already honor the Windows proxy. Choose an application that normally connects directly, such as a command-line tool or a desktop app whose networking behavior you understand. Make sure its destination is expected to be handled by the selected profile policy. Then check the Clash connection view or logs for a connection from that application and note the matched rule and policy.
- Enable TUN and wait for the client to report that the core is running.
- Open the test application and make one fresh network request. If possible, close and reopen the application first so it creates a new connection.
- Inspect the Clash connections or logs. Confirm that a new connection appears and that its rule and policy match your expectation.
- Compare the result with TUN disabled. If the application works only with TUN enabled, that is useful evidence that its traffic was not following the system proxy.
- Test local resources you use regularly, such as a printer or LAN share, to identify unintended routing changes.
For a basic public-IP check, use a reputable IP-checking service in a fresh browser session and compare the result with the proxy policy you selected. Interpret the result carefully: a DIRECT rule can legitimately show your normal network address, and a browser may have its own proxy settings or cached connections. A public-IP page alone cannot prove that every Windows application is routed through TUN.
Pro Tip: Follow the Connection Log
The connection view is often more informative than repeatedly checking websites. It can show whether the test application reached Mihomo, which rule matched, and whether the selected policy was DIRECT or a proxy group.
4Troubleshoot Common TUN Problems
If TUN does not work, identify where the failure occurs: the client cannot start the core, Windows cannot create the adapter, an application does not appear in the connection list, or the connection appears but uses the wrong policy. Each symptom points to a different part of the setup. Change one setting at a time and retest the same application and destination.
TUN Switch Turns Off or Reports a Permission Error
Check whether Clash Verge Rev has completed its service or administrator setup. Close the client, reopen it using the normal elevation prompt when required, and inspect the log for a specific service or adapter error. If you recently updated the application, the service may need to be repaired or reinstalled through the client’s supported setup flow. Do not delete driver files or make broad changes to Windows security settings to force the tunnel to start.
Adapter Exists but Traffic Fails
First check that the profile is active, a usable proxy is selected where needed, and the relevant rule does not send the destination to an unexpected policy. Then inspect the core log for DNS resolution failures, route errors, or rejected connections. Temporarily return custom TUN stack and strict-route options to their defaults. If the problem started after enabling another VPN, firewall, endpoint security product, virtual machine network, or packet-filtering utility, test with that product disconnected only if doing so is permitted and safe.
Also consider local network access. A stricter route can change how Windows reaches a LAN printer, NAS, corporate network, or virtual machine. If these connections stop working, review the client’s routing options and profile rules rather than disabling every network adapter. On work devices, consult your administrator before changing network security or routing behavior.
Application Does Not Appear in Clash
Confirm that the application made a new connection after TUN was enabled. Existing connections can persist, and some programs use their own VPN, proxy, or network service. Restart the test application, make a fresh request, and check whether its traffic is subject to a Windows firewall rule or endpoint policy. If the application still does not appear, compare with a different direct-connecting application and inspect the TUN startup log to establish whether the adapter is active at all.
Restore Normal Connectivity Safely
If enabling TUN leaves Windows without connectivity, switch TUN off from Clash Verge Rev first and wait for routes to be restored. If necessary, exit the client normally and restart Windows. Avoid resetting all network settings as an initial response; a full reset can remove useful VPN, virtual-machine, or custom network configuration. Once connectivity returns, review the last changes and re-enable options one at a time.
Avoid Stacking Tunnels
Running multiple VPN or tunnel clients at once can create competing routes, DNS behavior, and virtual adapters. Test with one tunnel client at a time so you can identify which application controls the connection.
5Use TUN Reliably Day to Day
Once the test succeeds, keep a simple record of the settings that worked: the selected profile, node or policy, TUN stack, and whether you changed automatic routing or strict routing. This gives you a clear baseline after a client, core, profile, or Windows update. If connectivity changes after an update, first check the core log and adapter status before rebuilding the entire configuration.
Remember that TUN capture and proxy selection are separate decisions. The adapter can capture an application’s traffic while a rule still sends it DIRECT, rejects it, or assigns it to a different proxy group than expected. When an application behaves unexpectedly, verify both that its connection reaches Mihomo and that the matched rule selects the intended policy. This distinction prevents a common mistake: repeatedly changing adapter settings when the actual problem is a rule or unavailable node.
Use TUN only when you need network-layer capture. If all the applications you use already follow the system proxy, leaving TUN off can reduce routing complexity. When TUN is necessary, keep Clash Verge Rev and its core current, avoid overlapping tunnel clients, and review local network access after any routing change. These habits make the setup easier to maintain and help you narrow down problems without disrupting unrelated Windows networking.
For a new installation or a different Windows device, start with the client’s standard settings, enable TUN through the interface, and test one direct-connecting application before changing advanced options. If you do not yet have Clash Verge Rev, use the downloads page to choose a suitable Windows build.