CLASH / FAQ

Clash Troubleshooting

Can’t fetch a subscription, connect to a node, or get an app to use the proxy? First separate configuration issues from connection and traffic-capture issues, then change the setting that matches the problem.

Basics

Start by identifying what captures traffic, what reads the configuration, and what chooses the route.

How do Clash GUI clients and the Mihomo core work together?

The GUI client imports configurations, displays connections, and manages system settings. The core reads the configuration, matches rules, and establishes connections. Even two clients using Mihomo can behave differently because they bundle different core versions, use different default DNS settings, or handle configuration overrides differently. After switching clients, check which core is running and which configuration is active, then make sure your existing rules and protocols are still supported. Copying a subscription link alone won’t transfer the old client’s system settings.

What’s the difference between a profile, a subscription URL, and a local YAML file?

A profile is a configuration you can select in the client. A subscription URL is a remote source that the client fetches again when updated. A local YAML file is imported from your device and won’t sync automatically when the remote subscription changes. Importing a profile doesn’t activate it: return to the configuration list and check which one is enabled. To keep custom rules over time, use the client’s override feature if available, or maintain a separate local configuration so an update won’t overwrite your changes.

Should I use system proxy or TUN mode?

If you only need to proxy browsers or apps that follow your system proxy settings, start with system proxy. Consider TUN when an app ignores those settings or you need to handle supported UDP traffic. TUN routes traffic through a virtual network interface, but its coverage depends on platform permissions, routing exclusions, and your configuration. It won’t necessarily capture every connection. Test each mode separately during setup, confirm the target app appears in the connection log, and then choose which one to use day to day.

What changes in Rule, Global, and Direct modes?

These modes control how connections that reach the core are routed; they don’t determine which apps can reach the core. Rule mode checks rules in order and sends each connection to the matching proxy group or outbound. Global mode sends connections to the global proxy group, with the final route determined by its current selection. Direct mode sends connections that reach the core straight out. After testing in Global mode, switch back to Rule mode and create a new connection to confirm which rule matches.

Can free Clash nodes be used to test a client?

Public nodes aren’t a reliable way to determine whether a client is working. You usually can’t verify a node’s maintenance status, capacity, or logging practices. A timeout doesn’t prove the client is broken or the entire protocol is unavailable. For troubleshooting, use a trusted configuration with a node known to work, and test one node against a regular webpage. Don’t sign in to sensitive accounts through nodes from unknown sources, or post subscription links or configurations containing credentials in public forums.

Setup

Import and activate the configuration first, then check permissions and listening ports.

How can I tell whether an imported subscription is active?

On the client’s configuration or subscription page, choose the option to import from a URL. Use the Clash or Mihomo format explicitly provided by your service, not the URL of its account management page. After downloading, check that the configuration parsed successfully, select the profile, and make sure its proxy groups offer nodes to choose from. Then enable one traffic-capture method, open a test page, and check the destination and outbound route in the connection log. A successful update only means the client retrieved the configuration; it doesn’t mean the target app is using it.

TUN reports insufficient permissions. What should I check?

First identify what failed: creating the virtual network interface, starting the service, or adding routes. If the desktop client offers a service mode, install or start the service as its documentation describes, then try TUN again. On mobile, confirm that you approved the system VPN prompt and check whether another VPN app is already using the connection. For devices managed by an organization, contact your administrator. Don’t disable security protections just to turn on TUN; after fixing the issue, verify that traffic from the target app reaches the core.

The mixed port is already in use. What should I do after changing it?

If the log says the listening address is already in use, check whether an older client, background service, or another proxy app is running. Don’t terminate a process you can’t identify. If you decide to change the port, save the setting in the client and confirm that the core is listening on the new port. Update the port anywhere you entered the proxy address manually, such as in a browser, terminal, or other app. Finally, reapply the system proxy and make a new request so traffic still pointing to the old port isn’t mistaken for a node failure.

What should I check before allowing LAN connections?

Apps on the same device usually don’t need LAN access to use the local proxy. Enable it only when trusted devices on your network need to connect to the proxy port. Check the listening address, which sources the firewall allows, and any authentication options supported by the client. Other devices should use the proxy host’s LAN address, not their own loopback address. Don’t expose the listening port to the internet or an untrusted shared network. When testing is done, restore the setting and any firewall rules you changed.

What symptoms can Windows UWP loopback restrictions cause?

Some Windows apps running in an app container can’t access a local loopback proxy by default. If a regular desktop browser connects through the same port but these apps fail, and the core receives no request, check whether the client offers UWP loopback management. Enable access only for apps that need it, then restart and test them again; don’t enable it for every app. Loopback settings address access to the local proxy—they won’t fix node timeouts or configuration parsing errors.

Usage Tips

Use a new connection to check proxy group selections and the rule that actually matched.

Why do existing connections still use the old node after I switch proxy groups?

Changing a proxy group affects the route for new connections; existing connections usually stay where they are. Browsers may also reuse connections, so refreshing a page might not confirm the change. Check the connection panel to see which proxy group handled the request, then close that connection or restart the test app and try again. If a new connection still uses the old node, check that you selected the right group, whether it contains another nested group, and whether the request matched a Direct rule.

Where should I add a custom routing rule?

Rule mode typically checks rules from top to bottom. The first match determines where a connection goes. Put an exception for a specific domain before any domain-suffix rule or rule set that could match first; place the fallback MATCH rule at the end. After saving, confirm the client loaded the updated configuration and check which rule matches a new connection. If the client uses overrides, check the order of the merged rules too—the order shown in the editor may not be the order the core runs.

Which rules are affected if a Clash GeoIP update fails?

The impact depends on whether the active configuration uses GEOIP rules and whether the local database is still readable. If only the latest download failed and the old database is intact, existing rules may continue matching against that older data. If the file is missing or its format is incompatible, the core may report an error while loading the configuration. Check the logs to distinguish a download failure from a read error, then verify the data source, required format, and client storage location. If your configuration only uses domain rules, repeatedly updating GeoIP won’t fix domain matching.

Why are webpages still slow when node latency is low?

A client’s latency test is usually one request to a specific test address. It doesn’t measure load times for other sites or sustained throughput. Real webpage performance also depends on DNS resolution, handshakes, resource servers, and routing rules. Check which node the slow page actually uses, then hold the network and destination constant while testing different nodes. If only one page is slow, check whether its subresources use a different route—that’s more useful than repeatedly sorting nodes by latency.

How can I tell whether the problem is DNS or rule-based routing?

Make a new request to the same domain. First check whether the core received the connection, then see where the log stops. If it reports a resolution failure or upstream DNS timeout, check the DNS settings in the active configuration. If a rule matched but the route is wrong, check the rule order and proxy group selection. If there’s no connection record at all, check system proxy settings or TUN coverage. Change only one thing at a time during testing; don’t replace DNS, nodes, and rules all at once.

Troubleshooting

Start with the first error in the log and change one variable at a time.

Clash subscription update failed: how can I tell if the URL is invalid?

Start with the status in the subscription update log. For 401 or 403, check account permissions, subscription expiration, and whether the provider reset the URL. For 404, check whether the URL expired or its path is incomplete. For a connection timeout, check your network and whether the URL is reachable. If the response is a login page instead of a configuration file, parsing will fail even if the request succeeded. Keep any working profile, then get a new URL from your provider’s account page. Don’t post your full subscription URL on a public forum.

All Clash nodes are timing out. Should I change the configuration or try another network first?

Don’t change the configuration yet. Confirm that your internet works with the proxy off and that your device’s clock is correct. Then test a node that worked before, checking both the client’s latency test and actual webpage access. If the webpage loads but the latency test times out, the test address may simply be unreachable. If real requests also fail, keep the configuration unchanged and compare on another trusted network. If only a few nodes fail, check those nodes first. If several fail with the same DNS or handshake error, use the logs to find the shared cause.

Why does an app connect directly even though the system proxy is on?

Confirm that the core is running and the system proxy points to its current listening port. Then use a browser that follows system settings to open a regular webpage as a test. If the browser appears in the connection log but the target app doesn’t, check whether the app has its own proxy settings, matches a system bypass list, or ignores the system proxy entirely. If the app does appear in the log but its route is Direct, check the matching rule and proxy group instead of repeatedly toggling the system proxy.

Can’t access the internet after closing Clash? How do I restore my network settings?

First check whether your system still points to a local proxy port that’s no longer listening. If you can restart the client, start it again, turn off system proxy and TUN in that order, then exit normally. If you can’t start it, restore your previous proxy settings in the system network settings and disconnect any leftover VPN connection. Don’t clear organization-managed proxy or DNS settings indiscriminately. Test in a new browser window after restoring the settings; if it still fails, check whether your device has received a network address.

Why does the same configuration fail to parse in a new client?

Use the logs to identify the specific error: YAML indentation, an unsupported protocol field, and a reference to a nonexistent proxy group are different issues. The old client may have merged overrides or subscription content before loading the configuration, while the new one may not. Compare against the original configuration and check whether the core family and version support the field in the error. Then migrate overrides and rule sets one at a time. Don’t remove an offending field just to make the configuration load; first find out whether it affects connectivity or routing.

Clash Downloads