MIHOMO / FAQ
Clash Meta FAQ
Troubleshoot subscription imports, node timeouts, TUN permissions, and system proxy issues.
When troubleshooting connection issues, first check whether the request reaches the core, then inspect the matched rule and final outbound. If a configuration update or startup fails, start with the first error in the logs.
CORE
Getting Started
Understand what the core, client, and system network each handle.
How are Clash Meta, mihomo, and GUI clients related?
mihomo is the current project name for Clash.Meta. The core reads YAML and handles rule matching, DNS, and outbound connections. GUI clients handle tasks such as importing subscriptions, managing the system proxy, and displaying logs. A setting may not have a corresponding toggle in every client, or the client may generate a value that overrides it. If a setting has no effect, first check the core version on the About page or in the logs, then inspect the effective configuration actually loaded by the client—not just the original subscription.
What do Rule, Global, and Direct modes change?
These three modes only determine how connections that have reached the core are routed. Rule mode matches rules in configuration order, usually with MATCH as the final catch-all. Global mode uses the outbound currently selected in the GLOBAL policy group. Direct mode bypasses proxy nodes. Switching to Global does not route every app on your system through the proxy. If a new browser connection does not appear in the logs at all, check the system proxy or TUN routing scope before changing your routing rules.
Do mixed-port and external-controller use the same port?
No. mixed-port is the mixed proxy port that apps connect to; it accepts HTTP proxy and SOCKS connections. external-controller is an API that a dashboard uses to read status or change policies. When setting a proxy manually in a browser, the address is usually 127.0.0.1 with the mixed-port from your current configuration—not the controller port. If you change the listening port, update any manually configured system and app proxies too. Bind a controller interface used only locally to the loopback address.
Why do DNS logs show addresses in the 198.18 range? Is DNS resolving incorrectly?
This is usually normal when DNS uses Fake-IP and the address falls within the configured fake-ip-range. The core maps the synthetic address to a domain name and uses that domain for routing. If an app caches the synthetic address and later connects outside the core, the connection may fail. Check that both the DNS query and subsequent connection pass through the current core, then restart the affected app. If only a particular local domain is affected, check whether it needs an entry in fake-ip-filter.
SETUP
Setup
Work through subscription responses, configuration syntax, and system permissions.
How do I fix subscription update errors 401, 403, or 404?
A 401 usually means credentials are missing or expired; 403 means the request was denied, and 404 may mean the subscription URL has changed. Check the subscription status in your provider’s account page, copy the full URL again, and make sure no spaces were added at the end. If an update fails, the previously imported configuration may still work—back it up before replacing the URL. If the update reports success but parsing fails, check whether the response is actually a login or error page. When asking for help, share only the status code and redacted logs; never post your full subscription link.
YAML import reports a syntax error. What should I check first?
Start with the line number in the log, then inspect a few lines above it. Use spaces for indentation and align fields at the same level. Start list items with a hyphen, and include a space after each colon. A YAML file can parse correctly and still fail to load in the core—for example, if a rule references an undefined policy group or the file uses a field the current core does not support. Try importing the original configuration, then restore local overrides one at a time, reloading after each change. This helps distinguish problems in the subscription from those introduced when configurations are merged.
TUN reports insufficient permissions. What should I do?
Check the client logs first to determine whether virtual interface creation failed, route setup failed, or the interface is already in use. On Windows and macOS, desktop clients typically need a supported service mode or system authorization. On Linux, check that the TUN device is available and that the core process has network administration permissions. Mobile devices usually require system approval for a VPN connection. If another VPN is running, disconnect it and try again. If authorization does not resolve the issue, keep the first error message and avoid repeated reinstalls or changing multiple network settings at once.
What settings need to be redone when switching clients?
Back up the original subscription URL, local YAML files, and any rules you maintain yourself. Before switching, turn off the system proxy and TUN in the old client, then exit it to prevent old ports or routes from lingering. After importing the configuration into the new client, check policy group selections, ports, and ruleset paths. Recheck relative paths that point to the old client’s directories. Startup options, system proxy exclusions, dashboard selections, and local overrides are usually client-specific; don’t assume they will migrate with the subscription.
ROUTING
Usage Tips
Use new connections to verify policy changes, rule matches, and configuration overrides.
Does a timed-out node latency test mean the node is dead?
Not necessarily. A latency test usually accesses a specified test URL through the node. A timeout could be caused by the test site, DNS, the node connection, or the timeout threshold. Compare multiple nodes using the same test URL. If only one node fails, check the corresponding connection stage in the logs. If every node in a group times out, first confirm that your network and the test URL are available. A successful test only shows that the test request completed; it does not verify real-world traffic. To check whether an app works, make a real connection and inspect the outbound record.
Which policy group should I use: select, url-test, or fallback?
Use select to choose an outbound manually, which is useful for reproducing issues. url-test automatically picks based on test results and works well for choosing among available nodes. fallback selects the first available option in list order, making it a good fit when a primary and backup have clear priorities. Use a stable test URL and avoid testing too frequently, which can cause switches during brief network fluctuations. After switching, test with a new connection. Existing connections usually do not move immediately when the policy selection changes, so don’t use an old connection to judge whether the setting took effect.
Why does traffic still hit the fallback rule after I add a custom rule?
Check the destination domain or address in the connection details, then verify the order of the rules actually loaded. Rule mode usually uses first-match order, so MATCH belongs at the end and specific rules should come before broader rules that might override them. A domain-based rule cannot match if the connection only has a destination IP. If you use a RULE-SET, make sure it loaded successfully. Test again with a new request and record both the matched rule and final outbound to avoid mistaking a policy group selection issue for a rule-matching issue.
How can I keep custom rules from being overwritten by subscription updates?
Treat the remote subscription as input; don’t edit cached files that updates will overwrite. If the client supports local overrides or merging, keep custom rules in a separate local configuration and check whether they are prepended or appended. Rules appended after MATCH usually won’t take effect; replacing the entire list may remove upstream rules. After an update, check the rule order and policy group names in the generated configuration, then test with a new request. If the client does not support overrides, save a local copy and merge subscription changes yourself.
DIAGNOSTICS
Troubleshooting
Narrow down the issue by scope: one app, core startup, or access to your local network.
Why do browsers or command-line tools connect directly even when the system proxy is on?
First make sure the system proxy address and port match the client’s actual listener. Then check whether the browser has its own proxy settings, an extension, or an exclusion list. Command-line tools do not always use system settings; you may need to set proxy options or environment variables as documented by the tool. Make a new request and check the client logs. If no connection appears, troubleshoot the path from the app to the listening port. If it appears but the outbound is DIRECT, check the routing mode, matched rule, and policy group selection.
Why can’t a Windows UWP app connect when other apps can use the proxy?
Some UWP apps run in an AppContainer, which by default cannot connect to loopback addresses on the local device. Confirm that the affected app is in this category and that a regular desktop app can use the same local proxy port. If the client offers loopback exemption management, enable an exemption only for the apps that need it, if your device policy allows, then fully exit and reopen the app before testing. If a new request still does not reach the core, check whether the app uses the system proxy. A loopback exemption only allows access to a local port; it does not configure the proxy for the app.
The client crashes on launch. How can I tell a port conflict from a configuration error?
Start with the first error in the latest startup log. If it says address already in use, check whether an old client or background service is still using the listening port. Once you identify the process, exit it or change the port and update the system proxy as well. If the log points to a YAML line number, policy group, or ruleset, back up the current configuration and restore the last known-good version. If the client window will not open and there is no core log, check the operating system’s app error records and confirm that the package matches your system architecture.
Why can’t I access internal domains after enabling TUN?
On the same network, use the system’s DNS lookup tool to check the internal domain and compare results with TUN on and off. If resolution fails or returns the wrong address, check whether mihomo’s DNS configuration sends the domain to the correct internal resolver. With Fake-IP, also check whether the domain needs to resolve to its real address. If the result is correct but the connection still fails, check the route to the destination subnet and the matched routing rule. Keep a before-and-after record, and avoid changing DNS, routes, and policies at the same time so you can identify what fixed the issue.