FAQ Index
Clash FAQ
Troubleshoot subscription imports, proxy modes, rule matching, and TUN. Find answers by the step where the issue occurs.
Basics
First, find out what handles the traffic and what determines its route.
What’s the difference between a Clash client and the mihomo core?
The client displays proxy groups, imports configurations, and manages system settings. The core parses configurations, matches rules, and forwards connections. mihomo is the core used by some clients; a similar-looking interface doesn’t mean a client is running mihomo. To troubleshoot an unsupported configuration field, check the core name under About or Settings, then look for the field in the logs. The client name or version alone can’t tell you whether a configuration field is supported.
How are subscriptions, configuration files, and proxy nodes related?
A subscription URL retrieves a remote configuration, while a local YAML file is stored on your device. A configuration may contain multiple nodes or just direct-connection and blocking rules. Switching configurations replaces the full set of nodes, proxy groups, and rules; switching nodes on the Proxy page only changes the selection for that group. After importing a subscription, select it on the Configuration page, then check that the expected groups appear on the Proxy page.
When should I use Rule, Global, or Direct mode?
Rule mode checks rules in the order listed in your configuration and applies the policy specified by the first match. Global mode sends connections that reach the core through the global proxy group, which can help you briefly check whether a rule selected the wrong route. Direct mode sends connections through the core without a proxy node. These modes only control how the core handles connections it receives; they don’t determine which apps send traffic to the core. Switch back to your usual mode when you’re done testing.
What’s the difference between system proxy and TUN mode?
System proxy sets a local proxy address in your operating system and works with apps that read and use that setting. TUN uses a virtual network interface to capture traffic that matches its routing conditions, including traffic from some apps that ignore the system proxy. Enabling both adds variables when troubleshooting. Start by testing the system proxy in a browser; test TUN separately only when you need to route traffic from other apps.
Why do I need to select a proxy group after importing a configuration?
A rule may select a proxy group rather than a specific node. A manually selected group uses its currently selected member; an automatic group chooses an exit based on its configured testing or switching policy. If groups are nested, check the current selection in each level. Having available nodes in the list doesn’t mean a particular connection is using one. Open the Connections page to check the matched rule and proxy chain.
Setup
Check each step, from importing a subscription to loading the configuration.
How can I confirm a subscription is active after importing it for the first time?
On the Configuration page, choose Import from URL and wait for the entry to appear. Then select it or choose Enable. An updated timestamp only means the client recorded an update; it doesn’t confirm that the core is using the configuration. Go to the Proxy page to check that the groups have refreshed, then visit a working site in your browser and look for the connection on the Connections page. If the logs show a configuration load error, switch back to a configuration you know works.
Subscription update failed: how can I tell whether the URL is invalid or the network is down?
On the Configuration page, refresh only that subscription and note the error in the logs. For a 401 or 403, check your provider account for access, subscription status, and an updated URL. For DNS resolution failures or connection timeouts, test the device’s network first, then check whether the client downloads subscriptions through the proxy. If the download succeeds but parsing fails, make sure the server returned a configuration the client supports, not a login page. Don’t post your full subscription URL in a public forum.
TUN reports insufficient permissions. What should I check?
Check whether the client’s Settings page offers a service mode, helper, or virtual network interface status. If a Windows client asks you to install a service, follow the prompts to authorize it, then enable TUN again. On mobile, make sure the system VPN permission prompt is for the client you’re using. On Linux, check the logs for errors opening the TUN device or missing network-management permissions. On a managed device, ask your administrator about applicable policies; don’t repeatedly reinstall the client or disable system protections.
YAML import reports a format error. Which line should I fix?
Back up the original file first. In the logs, find the first parsing error and its line number, then check the line above it too. Common causes include a missing hyphen in a list, mixing tabs and spaces for indentation, or replacing an ASCII colon with a full-width one. If the logs say a proxy group can’t be found, check that the rule target exactly matches the group name. Change one thing at a time, reload, then move on to the next error.
What should I back up before switching Clash clients?
Note the active configuration name, selected proxy groups, system proxy port, and TUN status. Save any custom rules, override files, and local YAML separately; store subscription URLs somewhere only you can access. During migration, import the configuration and verify one connection before restoring overrides and system settings. After closing the old client, make sure its system proxy or helper service isn’t still occupying a port the new client needs.
Usage Tips
Use connection logs to verify rules and side-by-side tests to validate changes.
How can I check which routing rule matched a domain?
Keep Rule mode enabled, close the target app’s existing connections, then visit the address again. On the Connections page, filter by domain and check the matched rule and proxy chain. If you only see an IP address, check whether the app bypasses the core’s DNS handling or connects directly to an IP. Rules are matched in order, so put specific domain rules before broader rules that could match first. The catch-all MATCH rule usually goes last.
Custom rules disappeared after updating a subscription. What can I do?
A subscription update may replace the entire remote configuration, overwriting rules added directly to the subscription file. If the client supports overrides or extra rules, save local entries separately and check whether they’re prepended or appended. Otherwise, keep a separate local configuration alongside the auto-updating subscription. After updating, check the matched rules on the Connections page and make sure any proxy groups referenced by your overrides haven’t been renamed.
Node latency tests look good. Why are web pages still slow?
A speed test measures one request to a specific test address. It doesn’t confirm that the target site’s DNS resolution, multiple resource requests, or sustained transfers are working properly. On the Connections page, check that the page’s requests actually use the tested node. Then compare another node in the same group using the same page and network. If the issue affects only one browser, check its extensions, proxy settings, and Secure DNS settings. Don’t judge a node by a single latency reading.
With Fake-IP enabled, LAN devices can’t access sites by domain name. What should I check?
On the same network, test the device by both its domain name and its actual LAN address. If the address works but the domain doesn’t, check whether the router, local DNS, or multicast normally resolves that name. For standard DNS queries the core actually receives, use fake-ip-filter to exclude specific device domains and make sure those queries still go to a resolver that can answer them. For multicast discovery issues, check the local firewall, network interface, and TUN routes separately.
What log details should I include when asking for help?
Include your operating system version, client name, core name, and current proxy mode. Explain whether the affected app uses the system proxy or TUN. Clear the displayed logs, reproduce the issue once, and include the lines around the error along with the matched rule and proxy chain for that connection. Before sharing, redact subscription URLs, node credentials, and sensitive hostnames. A clear, step-by-step way to reproduce the issue is more useful than an entire configuration file.
Troubleshooting
Change one thing at a time to isolate app, core, and network issues.
System proxy is enabled. Why isn’t an app using it?
Compare the system proxy settings with the client’s listening address and port, and make sure another proxy tool hasn’t changed them. Then make a new request in a browser that uses the system proxy and check for it on the Connections page. If the browser appears but the target app doesn’t, check the app’s own proxy settings and the system proxy bypass list first. If neither appears, check whether the client core is running and listening on the expected port. Rules and proxy groups only matter after the connection reaches the core.
Should I troubleshoot all nodes timing out the same way as one node timing out?
No. If all nodes time out, first check whether the device can access the internet with the proxy off. Then check the core logs, node domain resolution, and whether the test address is reachable. If only one node keeps timing out on the same network and configuration, test another node against the same target and ask your provider whether the affected node is still available. If a speed test times out but browsing works, check the test target before deleting the subscription.
A browser works through the proxy on Windows. Why can’t a UWP app connect?
Some UWP apps and other apps running in an AppContainer are subject to loopback restrictions, which prevent them from accessing proxy ports listening on the local loopback address. First confirm that a regular desktop browser can connect through the same port, then check whether the affected app is restricted. If the client offers UWP loopback management, add an exception only for the apps that need it, then fully close and reopen them. If no connection appears, check whether the app reads the system proxy settings.
TUN disconnects the whole device from the internet. How can I recover and find the cause?
Turn off TUN and check whether regular internet access returns. If the system proxy still points to a core that has exited, turn that off too and test again. Once access is restored, check for other VPNs or virtual network tools running at the same time, then review routing, network interface, and DNS errors from when TUN was enabled. Change one thing at a time: if a known-reachable IP works but its domain doesn’t, check DNS. If neither domains nor IPs work, focus on routing and the active egress interface.
A website reports an HTTPS certificate error when the proxy is on. What should I do?
Check your system date, time, and time zone, and note the certificate error code shown by the browser. Pause the proxy and retry the same address, then compare it on another trusted network. If the error occurs on only one connection, check for a public Wi-Fi sign-in page, HTTPS inspection on a work network, or local security software. If it occurs on different networks, the device’s trust settings or the site’s certificate may be the cause. Don’t ignore the warning and enter your account details, and don’t install root certificates from unknown sources.