FAQs / Configuration and Connections
Clash Troubleshooting
From subscription import to connection checks: identify whether the issue is with the configuration, traffic entry point, or node, then follow the relevant steps by category.
Getting Started
Learn how to read client, core, and connection log policy names.
Explore rule syntax and proxy groupsWhat’s the difference between a Clash client and the mihomo core?
A client provides the interface for importing configurations, selecting nodes, switching modes, and viewing logs. mihomo is the core used by some Clash clients to read configurations, match rules, and establish connections. If you see a message that a configuration field isn’t supported, check the client’s About or Core page to identify the core and version actually in use, then consult the documentation for that version. Client and core versions are maintained separately, so updating the interface doesn’t necessarily update the core.
When should I use Rule, Global, or Direct mode?
For everyday use, choose Rule mode. The core matches each destination against the current configuration and applies the corresponding policy. To troubleshoot, temporarily switch to Global mode, select a working node in the GLOBAL group, and reload the destination. If Global works but Rule doesn’t, check the matched rule and policy group in the connection log. Direct mode sends traffic entering the core directly; it doesn’t disable the system proxy or exit the client. Switch back to your original mode when you’re done.
What are subscription links, nodes, and proxy groups?
A subscription link is the address a client uses to periodically fetch a remote configuration or proxy list. A node is an endpoint used to establish a proxy connection. A proxy group collects nodes, other groups, or built-in policies for manual selection or automatic switching according to the configuration. A successful subscription update only means the client retrieved the data; it doesn’t mean every node can connect. Before switching nodes, check the connection log to see which group handles the request, then adjust that group. Changing another group may not affect the connection.
What do DIRECT, PROXY, and REJECT mean in the connection log?
DIRECT means the connection goes directly to its destination; REJECT means it’s blocked. PROXY is often a name chosen by the configuration author for a proxy group, not a specific node. Expand the connection details to see the final outbound node. In Rule mode, rules are generally evaluated in order, and the first match applies. A broad rule placed above a more specific one may match first. Note the rule that actually matched, then check the rule order and where the final MATCH rule routes traffic.
Setup and Installation
Make sure the configuration loads, then choose the system proxy or TUN as the traffic entry point.
See how to import subscriptions and test connectionsSubscription update failed or the link is invalid. What should I check first?
Open the update details on the configuration page and note the error type and time. For a 401 or 403 response, check your account status and access permissions with the original provider. For a 404 or 410, confirm whether the address has changed. If the request timed out, first check that your network can reach the subscription service, then see whether the client is trying to update through an unavailable node. Keep a working local configuration before updating so you’re not left without one if the update fails. When asking for help, share only a redacted error message—never post the full subscription URL.
How do I troubleshoot a YAML parse error after importing a configuration?
Start with the line number and field name in the error. If the file begins with a login page, error page, or other HTML, the downloaded content isn’t a configuration file. Get a valid subscription in the correct format from the original provider. If it is YAML, check indentation, colons, and list hyphens on the reported line and the line above it. Use spaces to align fields at the same level. Make a copy before editing. If a field is reported as unknown, check whether the current core supports it instead of deleting entire sections to see what works.
TUN reports insufficient permissions. How do I fix it?
Turn off TUN first and confirm that a regular proxy connection works. If the desktop client offers a service mode, install or start it in the client settings and approve any system prompts. On mobile, approve the system’s VPN connection request the first time you enable it. If your device is managed by your organization or another VPN is controlling routes, check whether adding a virtual network adapter or switching connections is allowed. Enable TUN only for apps that don’t use the system proxy. Test it with one specific app; there’s no need to change DNS and routing rules at the same time.
Do I need to enable the system proxy and TUN at the same time?
Usually not. For apps like browsers that use the system proxy settings, start with the system proxy alone. If an app ignores those settings, test TUN separately to see whether it can capture that app’s traffic. Note the original settings, change one traffic entry point at a time, then close and reopen the app and check for a new connection entry. Some apps have their own proxy settings, which may override system settings. If both options are enabled, test them separately to identify how the traffic is actually entering the client.
Usage Tips
Test rules with new connections and keep local changes separate.
Explore configuration maintenance tipsHow can I tell whether a connection matched the expected routing rule?
In Rule mode, open the Connections page and revisit the destination. Filter for the new connection by domain and time, then check the destination, matched rule, proxy group, and final outbound node. A webpage may load resources from several domains, and the main site and static assets using different policies isn’t necessarily a problem. First identify which request failed. After changing a rule, create a new connection to test it; existing long-lived connections won’t automatically switch to a different outbound node.
How can I add custom rules without losing them when a subscription updates?
If your client supports overrides, extensions, or local rules, keep custom rules in a separate local layer instead of editing the downloaded subscription file. Check whether the layer is merged before or after the subscription. Rules that should take priority must go above broad rules and the final MATCH rule, and must reference a proxy group that exists in the original configuration. After updating the subscription, check the active configuration and create a test connection to confirm that the group names and rule order are still correct.
Should I use info, warning, or debug for logging?
Use info for routine monitoring. It helps you follow connection setup, rule matching, and configuration loading. Switch to warning if you only need to see warnings and errors. If you can reliably reproduce an issue but need more detail, temporarily use debug, reproduce it once, then restore the previous level to avoid generating excessive logs. When reporting the issue, include a few lines before and after the error and note when it occurred. Redact subscription URLs, internal domains, and account details; the last line alone rarely shows where things went wrong.
How do I troubleshoot local network access to a printer or NAS?
First, make sure your device and the printer or NAS are on networks that can communicate, then try connecting to the device’s local IP address. If only the system proxy is enabled, check its bypass list. If TUN is enabled, check whether the core is capturing traffic to that address and whether the current rule routes it directly. If the IP address works but the local hostname doesn’t, investigate local name resolution. Allow LAN is for letting other devices connect to the proxy’s listening port; it isn’t required to access a printer or NAS.
Troubleshooting
Check whether the request reaches Clash, then see which rule and outbound node it uses.
Find out what’s using port 7890All nodes time out. Does that mean every node in the subscription is down?
Not necessarily. Bulk latency tests may use the same test URL, so if that URL is unreachable, every node can appear to time out. Check that your device is online and complete any public Wi-Fi sign-in first. Then select a node, open a regular webpage, and check the logs. If the logs show a name resolution error, check DNS. If the connection times out while reaching the node’s address, compare results on another trusted network. If tests fail but browsing works, check the test URL before replacing the entire subscription.
The system proxy is on. Why isn’t my browser using Clash?
Check that the proxy address and port in your operating system match the client’s active HTTP or mixed port. Don’t enter the dashboard port as the proxy port. Disable browser extensions that manage proxy settings, check the system bypass list and any browser-specific proxy settings, then fully quit and reopen the browser. If the visit still doesn’t appear on the Connections page, troubleshoot how traffic enters the client. If it appears as DIRECT, check the current mode and matched rule instead of repeatedly toggling the system proxy.
My browser works on Windows, but why can’t a UWP app connect to the local proxy?
Some Windows apps running in an AppContainer are subject to loopback restrictions. Even when the system proxy points to the local machine, the app may not be able to connect to a local listening port. First confirm that only this app fails and that its requests don’t appear in the client logs. If the client offers a UWP loopback exemption screen, and system policy permits it, enable the exemption only for that app. Then fully close and reopen it. If there’s still no log entry, check whether the app uses the system proxy. You don’t need to enable exemptions for every app.
Websites won’t load after I quit Clash. How do I restore my connection?
Check whether the system proxy still points to a local port that’s no longer listening. If the client left the setting behind, restart it, turn off the system proxy and TUN, then exit normally. You can also restore the original proxy settings in your system network settings. On organization-managed devices, preserve the original proxy address and management policies. Reopen your browser and test again. If the problem persists, check for other VPN or proxy apps and note the specific error. Don’t reset the entire network as a first step.