Documentation · FAQ Index

Clash FAQ

Can’t import a subscription, an app won’t use the proxy, or are all nodes timing out? Find the issue for your situation and check the client settings and logs step by step.

Getting Started

Understand the client, configuration, and how traffic enters.

What are a Clash client, the Mihomo core, and a subscription?

A client is the interface for importing configurations, switching policies, and viewing logs. Mihomo is the core that reads configurations, matches rules, and establishes connections. A subscription is a source of configuration, usually provided by your service provider; installing a client does not automatically give you access to nodes. When something goes wrong, first identify the layer involved: if the interface will not open, check the client startup logs; if a configuration field is unrecognized, check core compatibility; if a subscription has expired, check its validity in your provider’s account portal. Reinstalling the client usually will not fix an expired subscription.

What’s the difference between Rule, Global, and Direct mode?

Rule mode checks configuration rules from top to bottom and applies the policy for the first match. Global mode sends all traffic that reaches the core through the GLOBAL policy; the actual route still depends on the option currently selected in that group. Direct mode connects traffic that reaches the core straight to its destination, without a proxy node. Use Rule mode for everyday routing. If you suspect a rule is sending traffic through the wrong route, temporarily switch to Global mode and test the same site, then switch back. The mode controls how the core routes traffic; it does not determine whether an app’s traffic reaches the core in the first place.

Should system proxy and TUN mode both be enabled?

Usually, enable one at a time so you can tell how traffic enters the client. System proxy works for apps that follow the system proxy settings. TUN uses a virtual network adapter to capture traffic that meets the routing conditions, making it useful for apps that do not use the system proxy. To test, turn off the other method, make a new request in the same app, then check the Connections page for an entry. If your device is connected to a corporate VPN, check your organization’s policies before switching to TUN; do not disable network components required for work without authorization.

What’s the difference between manual selection, automatic testing, and failover in a proxy group?

A manual selection group uses the currently selected route, which is useful when you need a fixed exit. An automatic testing group selects a route based on the configured test results and may also use a tolerance setting, so it will not switch on every minor fluctuation. A failover group tries available routes in configuration order, moving on only when the preferred route is unavailable. When reviewing connection details, check both the matched rule and the route actually used: a rule pointing to a proxy group does not mean the first item shown in that group is the active route.

Setup

Import a subscription, activate a configuration, and grant TUN permission.

Should I import a subscription or a local YAML file?

If your provider gave you a Clash or Mihomo configuration subscription URL, choose URL import on the Configurations page, save it, then set that configuration as active. If you already have a complete YAML file, import it from your local files. When the source file changes, update or import it again using the client’s supported method. A single node link is not the same as a complete configuration, and whether it can be imported depends on the client. If the download is actually a login page, changing its extension to YAML will not make it usable; get the configuration URL again from your provider’s account portal.

Subscription stopped working or update failed? What should I check first?

First, check the subscription URL and expiration date in your provider’s account portal, then review the error in the client’s update log. A 401 or 403 means the request was not authorized; check your account status and whether the URL has been reset. For a 404, confirm the path is still valid. If the request timed out, first check whether your current network can reach the subscription service. For a YAML parsing error, make sure the response is not a login or error page. Keep a working copy of your old configuration before enabling a new one. Before sharing logs with support, remove the full subscription URL and its query parameters.

TUN reports insufficient permissions. What should I check?

Check the logs first to see whether virtual adapter creation failed, the system denied authorization, or the background service did not start. On desktop, if the client offers a service mode, install or repair the service according to that client’s documentation, then try TUN again. On mobile, grant VPN permission when prompted by the system and check whether another VPN is already using the connection. Contact your administrator before changing settings on a managed device. If TUN still does not work after permission is granted, turn it off to restore the previous settings, then check the logs for routing conflicts. Avoid reinstalling drivers repeatedly or repeatedly escalating permissions.

Imported successfully, but the configuration isn’t active. How can I check which one is in use?

Importing adds a configuration to the list; it does not necessarily activate it. On the Configurations page, confirm the intended entry is marked as active, then check on the Proxies page that the proxy groups match that configuration. If the old policies still appear after switching, check the logs for syntax errors, duplicate proxy group names, or rules that reference a nonexistent policy. After fixing the configuration, apply it again and verify it with a new connection. Existing connections may continue using the route they started with, so they cannot confirm whether the new configuration is active.

Using Clash

Check matched rules, proxy ports, and speed test results.

How can I see which routing rule a website actually matched?

First, make sure the client is in Rule mode. Send a new request from the target app, then filter the Connections page by domain or process. Expand the new connection to see the matched rule, proxy group, and final route. If it immediately matches a fallback rule, check whether the configuration covers the domain the request actually uses; the page URL may differ from the domains used for images, sign-in, and other requests. If a broader rule matches first, move the more specific rule above it and test again with a new connection.

How can I add custom rules without losing them when a subscription updates?

First, check whether the client supports overrides, configuration merging, or rule extensions. If it does, put your custom rules in a separate override configuration and enable it for the current subscription. Do not edit a file that subscription updates will replace. Check the merged rule order and proxy group names, and make sure your custom entries come before any broader rules that could match first. If overrides are not supported, save a local copy of the configuration and merge updates yourself; the local copy will not automatically inherit later subscription changes.

Where can I find the port when an app requires me to enter a proxy address manually?

Find the port the client is currently listening on under Settings or Ports. Do not copy a number from a guide. If the app and client are on the same device, the address is usually 127.0.0.1. Then choose HTTP, SOCKS, or a mixed port that supports both, depending on what the app accepts. Make a request from the app and check whether traffic appears on the client’s Connections page. The controller port is for the interface to manage the core; it is not a proxy port for forwarding requests. You do not need to enable Allow LAN for local use.

Why doesn’t a lower ping always mean faster downloads?

A client’s speed test measures the response time to a specific test endpoint; it does not measure sustained download throughput. The destination site, congestion on the exit route, and your local Wi-Fi can all affect download speeds. For a fair comparison, use the same source and file, keep the device and network unchanged, switch one route at a time, and start a fresh download. If only one site is slow, check whether it matched the expected rule. If every route is slow, test the same network without the client first, then decide whether to change the client settings.

Troubleshooting

Diagnose timeouts, apps that won’t connect, and domain issues.

View the full troubleshooting guide →
All nodes are timing out. Does that mean the entire subscription is broken?

Do not draw conclusions from speed test results alone. First confirm that your basic network works without the client, then check whether several different nodes report the same error. If the test endpoint is unreachable, multiple nodes may all show timeouts. Try the test endpoint recommended by your provider and verify with an actual request. If the logs show a DNS resolution failure, check DNS first. If they explicitly report an authentication failure, check whether the subscription has expired. If only a few nodes keep failing, note their names and when the issue occurred, then send those details to your provider.

System proxy is enabled. Why is an app still bypassing it?

First, use an app known to follow the system proxy settings to open the same destination, then check the client’s Connections page. If this test app appears but the problem app does not, check whether the latter has its own proxy settings, is set to connect directly, or is reusing an existing connection. Save the settings, fully quit the app, and reopen it. If neither app appears, check that the proxy address and port in your system network settings match the client, and make sure no other proxy tool has changed the system settings.

Browser works on Windows, but a UWP app can’t connect. What should I do?

Some apps isolated by AppContainer cannot access a local loopback proxy directly. First, confirm that the affected app is subject to this restriction, then check the client’s Connections page to see whether it has generated any request entries. If the client provides a UWP loopback management tool, enable an exception only for trusted apps that you have confirmed need to use the local proxy. Then fully quit and reopen the app. If connection entries are present, check the matched rules and logs first; do not assume every connection failure is caused by a loopback restriction.

Only some domains fail to open. How can I tell if it’s a DNS issue?

Retry the failing domain in the same app while checking the client logs. Determine whether DNS resolution failed or succeeded before the connection timed out. For a resolution failure, first check whether the configured DNS upstream is reachable from your current network, and identify whether the app, system, or client is handling DNS. An app’s own secure DNS may use a different route. For a timeout after successful resolution, check the matched rule, exit route, and connectivity to the destination site. Change one thing at a time, retry the same domain, and keep the working configuration so you can revert. Do not change DNS, mode, and node all at once.