Configuration & Troubleshooting

Clash FAQ

Find answers about subscriptions, permissions, rules, and connections. When troubleshooting, first check whether the request reaches the core, then review the matched rule and outbound.

Basics

What’s the difference between the Clash client and the mihomo core?

The core reads the configuration, handles inbound connections, selects an outbound based on the rules, and records logs. The client provides an interface for importing configurations, switching proxy groups, and managing the system proxy. Different clients may bundle different core versions, and the client version number is not the same as the core version. Before migrating a configuration, check the core name and version in the target client’s About or Core page. If you encounter an unknown field, first confirm that the current core supports it, then check its indentation and location.

What do Rule, Global, and Direct modes control?

These modes only determine how connections that have reached the core are routed. Rule mode matches rules in order; Global mode sends traffic to the GLOBAL proxy group, and the actual outbound depends on the group’s current selection. Direct mode bypasses proxy nodes but still passes through the core. Switching modes does not automatically enable the system proxy or TUN. If an app does not send its connections to the core, changing modes will not affect its network path.

What’s the difference between proxy groups, nodes, and DIRECT?

A node is a proxy outbound defined in the configuration. A proxy group combines nodes, other groups, or built-in outbounds for rules to reference. A select group uses the currently selected option; a url-test group chooses an available option based on checks against a specified test URL. DIRECT is a built-in direct outbound, not a node. If a rule matches but traffic still goes direct, check the Proxy page to see whether the matched group has DIRECT selected before changing the rules.

Can I use a subscription URL in place of a local config.yaml?

A subscription URL is a remote source; a local config.yaml is a configuration file saved on your device. Successfully importing a URL does not mean it returned a complete configuration: it may return a node list, loadable YAML, or even a login page. You can import complete YAML as a configuration. If you receive a node list, import it using a subscription type supported by your client, or ask the provider whether a complete configuration is available. Subscription links may contain access credentials, so don’t share them in public logs or screenshots.

Setup

Subscription update failed? Check this first

Start by checking the HTTP status or connection error in the update log. For a 401 or 403 response, check your subscription access and expiry date in your provider’s account page. For a 404, confirm whether the URL path has changed. If the request times out or the domain fails to resolve, check connectivity from a network authorized to access the URL. If the request succeeds but parsing fails, verify the subscription format and make sure the response isn’t a login page. Keep your existing configuration and switch only after the new one loads successfully.

Should I choose a download by system architecture or device model?

Choose based on your operating system and the architecture listed for the installer, not the device model. On Windows, check System type under Settings → System → About. On macOS, check whether your Mac has Apple silicon or an Intel processor under About This Mac. On Linux, run uname -m to check the architecture, then choose a package format for your distribution. If the app won’t run, verify the supported OS version and architecture. x64 and AMD64 refer to the same architecture; ARM64 is a different one.

TUN says permission denied. What should I do?

Check the logs first to tell whether virtual adapter creation failed, route setup failed, or permissions are insufficient. If your Windows client offers Service Mode, install and start the service through the client, then enable TUN again. On macOS, follow system prompts to approve an auxiliary tool or network extension in the relevant settings. On Android, confirm the system’s VPN connection request. If your device is managed by an organization, check that its policies allow this operation; don’t bypass restrictions by disabling system security protections.

How can I test a new configuration and keep a rollback option?

Import the new file as a separate configuration instead of overwriting the current one. Check the import log, set the new configuration as active, and confirm that the core loads successfully. In the same browser, make two new requests: one to a site expected to connect directly and one expected to use a proxy. Check the matched rules and actual outbounds on the Connections page. Change only one setting at a time before retesting. If loading or connectivity fails, switch back to the old configuration and confirm that the original access path is restored.

Usage Tips

Why does a domain rule still match MATCH?

Check the destination recognized by the core on the Connections page. DOMAIN-SUFFIX can match only when the destination includes a domain name; if an app connects directly to an IP address, the rule may not match. Then make sure the mode is set to Rule and check the rules actually loaded. Rules are evaluated from top to bottom: put specific domain rules before broader ones and leave MATCH as the final fallback. Reconnect after making changes, then check the match result.

When should I use TUN if the system proxy already works?

If apps such as browsers follow the system proxy, you can keep using it. Some command-line tools, apps with their own network stack, and programs that send UDP may not use the system proxy. Consider TUN when you need that traffic to reach the core. TUN captures traffic through a virtual adapter and system routes; coverage depends on routing and exclusion settings. When comparing the two methods, enable only one at a time, make a new connection from the same app, and check the Connections page to see whether the request reached the core.

Why didn’t routing change after updating GeoIP data?

GeoIP matches based on the registered location of the destination IP, not the domain suffix. After updating, confirm in the logs that the data loaded successfully, then check the destination IP and matched rule for a new connection. If an earlier DOMAIN-SUFFIX rule has already matched, the connection won’t reach a later GEOIP rule. Domains served by a content delivery network may resolve to IPs in different regions. To keep a domain on a specific outbound, put its exact domain rule before broad geographic rules.

Why are downloads still using the old node after I switch proxy groups?

Switching proxy groups generally affects new connections; existing download streams won’t migrate automatically. Check the current request’s matched group and outbound chain on the Connections page, and make sure you switched the group referenced by the rule. If the app is reusing an existing connection, pause the task and reconnect, or close only the corresponding connection in the client and try again. Confirm the task supports resuming before testing so you don’t lose download progress.

Troubleshooting

Node latency tests keep timing out. How can I tell whether the node or test URL is the problem?

Test multiple nodes against the same URL, then try another known-reachable destination with the same node. If only one test URL times out, check its connectivity and DNS resolution first. If one node fails against multiple destinations, check its address, port, and service status. If all nodes time out, troubleshoot your local network and DNS first. Keep the first error message: a DNS resolution failure and a timeout after a connection is established point to different issues.

Why doesn’t an app appear in the connection list when the system proxy is on?

Make sure the core is running, then compare the address and port in your system proxy settings with the client’s listening mixed-port. Also check the system’s proxy bypass list. Make a new request in a browser: if it appears on the Connections page but the target app doesn’t, check the app’s own proxy settings and whether it uses the system proxy. If the browser doesn’t appear either, check whether another proxy app or an organizational policy has overridden the system settings.

How can I tell if a UWP app’s connection issue is caused by a loopback restriction?

First confirm that a regular desktop browser can use the same local proxy and that the issue occurs only in a specific UWP app. Some apps run in an AppContainer, where access to a local 127.0.0.1 proxy may be restricted by loopback rules. In Windows Terminal, run CheckNetIsolation LoopbackExempt -s to view existing exemptions. If device policy permits, use a client tool that supports loopback configuration to exempt only the affected app, then restart it and test again. If it still fails, check whether the app follows the system proxy.

The log says “no such host.” Should I switch nodes or check DNS?

Check whether the unresolved name in the log is the proxy server or the destination domain. If the proxy server name can’t be resolved, the node will fail before connecting to the destination; verify the server name and its resolution path. For the destination domain, check its spelling, the core’s DNS settings, and the upstream response. You can compare results with your system’s DNS tools, but a successful system lookup doesn’t mean the core uses the same upstream server. Change one related setting at a time, then retry the same domain and see whether the error changes from a resolution failure to an outbound connection failure.