reference / faq
Clash FAQ
Haven’t imported a configuration yet? Start with “Setup.” If the configuration is active but requests fail, go to “Troubleshooting” and check whether traffic reaches the core.
Clash Basics
First distinguish the client, core, and configuration file to pinpoint which layer is causing the problem.
What do the Clash client and mihomo core each do?
The client imports configurations, displays connections, switches proxy groups, and uses system interfaces to configure the proxy or start services. The mihomo core reads the effective configuration, handles incoming connections, matches rules, and forwards traffic. If the interface won’t open, check the client startup log first. If the interface opens but the configuration fails to apply, look for the first error in the core log. A working interface does not mean the core loaded the configuration successfully. Clients may bundle different core versions, so whether a field is supported depends on the core currently running.
What’s the difference between a subscription link, a complete YAML file, and a provider file?
A subscription link is an address used to retrieve content; its file extension alone doesn’t tell you the format. A complete YAML configuration can include inbound ports, nodes, proxy groups, and rules. A node-only list cannot replace a full configuration. A proxy provider is a node source referenced under proxy-providers in the main configuration, then used by a proxy group through use. Before importing, check whether the service provides a complete configuration or just a node source. If the download succeeds but no proxy groups appear, check the format and import method before deleting a configuration that still works.
When should you use Rule, Global, or Direct mode?
Rule mode selects an outbound based on rules, checked from top to bottom, and is best for routing traffic by domain or IP range. Global mode uses the outbound currently selected in the global proxy group; switching to it briefly can help compare rule-based routing with a specific outbound. Direct mode sends traffic entering the core directly, but does not close the client or undo the operating system’s proxy settings. Changing modes alone does not determine whether an app sends requests to the core. After testing, switch back to Rule mode and use a new connection to confirm which rule and outbound were selected.
Should mixed-port be set in the client or in the app?
mixed-port is the local listening port configured to accept both HTTP proxy and SOCKS requests. For example, when mixed-port: 7890 is active, apps on the same computer can use 127.0.0.1 as the proxy address and 7890 as the port, then select a supported proxy type. Check the port the client is actually using; don’t enter a remote node’s port here. If you change the port, update any apps where you set the proxy manually, or they’ll keep connecting to the old port.
Setup
A successful import, an active configuration, and system authorization are three separate things. Check them in that order.
How can I tell if a subscription is active after importing it for the first time?
Add the remote configuration from the Config or Subscription page, paste the full URL, and update it. Once the update finishes, set that configuration as the active one; seeing it in the list doesn’t mean it has been selected. Open the Proxies page, confirm the configuration includes the proxy groups you need, and select an available outbound. Then make a new connection and check that its proxy group and outbound match your expectations. If you’re unsure where to find these options in your client, see the subscription import guide. Subscription URLs may contain access credentials, so don’t share them in screenshots, logs, or help posts.
Did the subscription update fail because the link expired?
First determine whether the request failed or the response couldn’t be parsed. For a 401 or 403, check authorization and subscription status in the provider’s dashboard; the status code alone doesn’t prove the link expired. For a 404, check whether the URL changed. For a timeout, see whether your current network can reach the subscription service. A login or error page isn’t valid YAML, even if it returns a 200 status. Also distinguish the old configuration in the local cache from the newly retrieved content. Verify the new URL before replacing the old one, and keep the working configuration until then.
TUN mode reports insufficient permissions. What should I check?
TUN mode creates a virtual network interface and may modify system routes. If your desktop client offers a service mode, install the service and confirm it’s running before enabling TUN. On Linux, check that /dev/net/tun is available and that the process has permission to create interfaces and configure routes. On mobile, check system VPN authorization and make sure another VPN isn’t already running. Use the first error to distinguish interface, permission, and routing problems. Don’t loosen security settings across the entire system as a first step.
Why did my manual YAML edits disappear after a subscription update?
Remote configurations are usually downloaded again when updated, so editing a cached file only changes the current copy. Back up the configuration, then make lasting changes through the client’s supported override or merge feature. Clients handle lists differently; adding one rule may replace the entire list. After updating, check the effective rule order, proxy group names, and references, and make sure the fallback rule is still at the end. If your client doesn’t support overrides, maintain a local copy and merge upstream changes manually when needed.
Tips & Usage
After editing rules, switching proxy groups, or changing DNS, check the result with a new connection.
How do I make a custom rule match before the fallback rule?
In Rule mode, rules are checked from top to bottom, and the first match determines which outbound handles the traffic. For example, DOMAIN,example.com,DIRECT matches example.com only. To match its subdomains too, use DOMAIN-SUFFIX. Place your custom rule before any broader rule that would match the same request first, and leave MATCH at the end. After applying the configuration, use a new connection to check which rule matched; an existing connection won’t tell you whether the change worked.
How does a manual select group differ from a url-test group?
A select group lets you choose the active outbound. A url-test group probes candidate outbounds using a test URL, then selects one based on the results and tolerance. Choose a test URL that responds reliably and is reachable through every candidate; otherwise, the test may reflect that site’s reachability rather than the overall health of a node. Probe time doesn’t indicate actual download speed or guarantee access to every site. To compare using a fixed outbound, select it in a manual group and send a new request to the same destination.
Why does a DNS lookup return a reserved address when fake-ip is enabled?
When dns is set to enhanced-mode: fake-ip, the core can assign a virtual address to an app and use address mappings to recover the domain when handling the connection. Seeing this address doesn’t mean DNS resolution failed. Connections may fail if traffic isn’t sent back through the same core, or if an app requires a real address. First check whether the DNS request and connection use the same core. If needed, add only the affected domains to fake-ip-filter instead of changing the entire DNS mode for a few exceptions.
Why do existing connections still use the old outbound after I switch proxy groups?
Switching a proxy group usually affects new connections. A browser may reuse an existing connection, and an active download won’t automatically switch connections, so old records may still show the previous outbound. Confirm the rule points to the group you changed, then close the relevant connection or restart the app and make a new request. Check the new record’s start time, destination, rule, and outbound. If the outbound is still unchanged, another rule may be matching first, or a different proxy group may determine the actual outbound.
View rule syntax → View proxy group fields → View DNS fields →
Troubleshooting
Start with the connection log, then narrow down the issue in this order: inbound traffic, DNS resolution, rules, and outbound connections.
Why isn’t an app using Clash even though the system proxy is on?
Make a new request in a browser that respects the system proxy, then check whether it appears in the client’s connection list. If the browser appears but the target app doesn’t, the app may ignore the system proxy, be on a bypass list, or have its own proxy settings. Check whether it lets you enter a local listening address and port manually, and make sure you select the right proxy type. The system proxy doesn’t automatically capture all traffic. If you need TUN, first confirm system support, permissions, and routing scope, then test the target app separately.
How do I troubleshoot timeouts on all nodes versus just a few?
If all nodes time out, check that the subscription has been updated and selected, the system clock is correct, and node domains resolve. Then verify the test URL is reachable and check the core logs for port binding or firewall errors. If only a few nodes time out, keep the network and test URL unchanged and compare them with working nodes in the same group. Use an actual request to distinguish a failed probe from a failed outbound connection. If the logs show a DNS resolution error, check DNS. If the remote host refuses the connection, verify the node address and port. A single timeout doesn’t prove the subscription has expired.
Why might a Windows UWP app fail to connect when the browser works?
Some UWP apps run in an AppContainer, which restricts local loopback by default. If the system proxy points to 127.0.0.1, a desktop browser may reach that port while a restricted app can’t. First confirm the local proxy works in a desktop browser and that the issue affects only specific apps. If your client offers a UWP loopback setting, add an exception only for the affected apps if device management policies allow it, then restart the app and test again. Remove the exception when it’s no longer needed; don’t enable loopback for every app.
The client says it’s connected, but webpages won’t open. How do I find the problem?
Note the current proxy mode and make a new request. If there’s no connection record, check the app’s system proxy settings or TUN routes to confirm traffic reaches the core. If a record shows a DNS error, check the DNS mode and upstream resolver. If the domain resolves but won’t connect, check the matched rule, where the final MATCH rule points, and whether the selected outbound works. Change one setting at a time and retest with a new connection to the same destination. For more specific symptoms, see the connected but no internet troubleshooting checklist.