Configuration handoffKnow the difference between the core, client, and subscription. The core handles traffic, the client manages it, and the subscription provides configuration.
First check how traffic reaches the core, then see how rules select an outbound. These snippets explain individual settings; they are not a complete subscription. The ports and control address shown above are examples, not defaults for every client.
Check routing rules in order
Rule mode sends different destinations through different outbounds. The core checks rules from top to bottom and uses the outbound for the first matching rule. Put specific domain exceptions before broader rules, then use MATCH to catch the remaining traffic. This example demonstrates syntax only, so the fallback is set to DIRECT. To test it, open a new request in the client’s connection list and check the matched rule and actual outbound; an existing connection may not reflect your changes.
Common pitfall: Put MATCH first and none of the rules below it will get a chance to match.
Separate rule targets from group outbounds
A rule can point to a specific outbound or a proxy group. Groups put commonly used outbounds behind one selection point, so you can switch members without editing each rule. Use select for manual selection. Consider url-test when you need automatic comparisons; it measures response time to a specified test URL, not download throughput. This example uses two built-in outbounds to show the syntax: select a member in the interface, then check whether a new connection uses the selected outbound.
Common pitfall: Changing a group member has no effect if the rule doesn’t point to that group.
Check which DNS resolver handles queries
In Fake-IP mode, the core returns mapped addresses for some domains and uses them to associate connections with the original domain when traffic passes through the core. Seeing a mapped address does not mean DNS resolution failed; check that both the query and the subsequent connection follow the expected path. If a LAN app relies on real addresses, first check the domain it uses locally, then consider adding it to fake-ip-filter. Add exceptions only when needed, and retest after each change.
Common pitfall: Enabling the core’s DNS does not automatically route every system query through it.
Route traffic through the system
A system proxy works only for apps that read the system settings; apps that ignore them may still connect directly. TUN uses a virtual network adapter and system routes to capture traffic, covering cases the system proxy may miss. Before enabling it, make sure the client has the required permissions, then test access to both regular websites and local devices. If you lose connectivity, restore the previous traffic-handling method first, then check routes, other virtual adapters, and DNS one at a time.
Common pitfall: Seeing TUN enabled in the interface doesn’t guarantee that routes were added to the system.
Check the proxy protocol and listening address
mixed-port lets a single listening port accept both HTTP and SOCKS5 proxy connections. For local use only, leave allow-lan set to false. If you need to share the proxy, other devices should use the LAN address of the machine running the core and a proxy protocol they support. Share access only with trusted devices. If a device on the same network still can’t connect, check the active port, firewall, and whether Wi-Fi client isolation is enabled.
mixed-port: 7890
allow-lan: false
Common pitfall: Using the local control API address as the proxy port on another device.
Three things to check after startup
Configuration: Importing successfully doesn’t mean it’s active
Check which file is selected in the configuration list, then open the proxy groups page and confirm the target group is there. If a subscription refresh changes group names, check any local rules that still refer to the old names. To learn where these names come from, start with the glossary.
Traffic entry: A running core doesn’t mean app traffic is routed through it
Open an ordinary webpage in your browser, then check whether a new connection appears in the connection list. If there’s no record, confirm that the browser uses the system proxy or test whether its traffic goes through TUN. Changing proxy groups usually won’t help yet because the request hasn’t reached the core.
Outbound: Once a connection appears, check its rule and proxy group
Check the matched rule first, then the outbound actually used. If the result is unexpected, note the test destination and matched rule, change one setting, and retry with a new request. Comparing the two results makes troubleshooting easier than simply noting that something won’t connect.
02 / CLIENTS
Choose a Clash client for your operating system
For everyday use, choose a client with a graphical interface. Consider running the core separately only if you already have a way to manage services and maintain configuration. Confirm your operating system and processor architecture first, then test with just one traffic-handling method enabled.
Windows
On desktop, check the system type in the About page. When switching from an older client, quit its process before enabling the new client’s system proxy to prevent both clients from competing for the same port or repeatedly changing system settings.
Check About This Mac to see whether your device has an Apple silicon or Intel processor, then choose the matching package. Start by testing the system proxy; grant TUN permissions as prompted by the client if you need to cover more traffic.
Choose a package that matches your device’s supported architecture. After importing the configuration, approve the system VPN permission when prompted. If the connection drops when the screen locks, check whether the client service has stopped, then see whether the system restricts background activity.
Open the App Store from the download page and choose a client that supports your subscription format. When connecting for the first time, follow the system prompt to add a VPN configuration. Desktop client menus and override files may not transfer directly.
On desktop, filter packages by distribution and architecture, and don’t mix package formats. Whether a desktop proxy works depends on how each app reads system settings; on headless machines, managing the core process separately may be a better fit.
Before switching devices: Keep separate copies of your subscription URL, local configuration, overrides, and any extra rule files. Subscription URLs may contain access credentials, so don’t include them in shared screenshots or public posts. If you need help troubleshooting, share only configuration snippets with sensitive details removed. On the new device, first confirm that the subscription loads, then restore overrides one at a time. For permission or package-selection issues, check the relevant platform section in the complete installation guide.
Clash Core Hub collects download links and Chinese configuration resources; it is not an upstream project publisher. For core source code, licensing, and change history, refer to MetaCubeX’s public repository. For client installation and interface behavior, consult each client’s release notes.
Project history: Clash Meta and mihomo
Older guides often refer to the core as Clash Meta. When you see that name, check whether the article covers core configuration or a specific client’s interface. Older guides can still help explain rules and proxy groups, but menu paths, supported fields, and default behavior may differ. For a safe migration, start with a configuration containing only essential settings and confirm it launches. Then restore old rule sets, DNS exceptions, and local overrides in stages. If an error occurs, you can narrow it down to the latest change.
Open-source ecosystem: Troubleshoot with source code, docs, and issues
The mihomo repository makes its source code and GPL-3.0 license public. To check whether a configuration option is supported, read the relevant documentation, then review the public change history. If behavior differs, search the issue tracker for the error text to see whether anyone has reported it in a similar environment. When filing a report, include your operating system, traffic-handling method, minimal configuration, and logs that are safe to share. Never submit raw subscription links, control API credentials, or full configurations containing private domains. Core-level issues are worth prioritizing when they can be reproduced consistently across multiple clients.
Configuration flow: The client builds the final configuration
A subscription file is input; it may not be the file the core actually reads. The client may also merge local overrides or add ports, DNS settings, and a control address based on its interface options. For example, the mixed port shown here is 7890; if your local setting differs, use the port that is actually listening. When troubleshooting, compare the effective configuration or startup log before deciding whether to change the subscription, an override, or a client option. A setting available only in the client interface may not transfer with the subscription. Conversely, the core supporting a key doesn’t mean every client offers a corresponding control.
Updates: Check the app, core, and subscription separately
A client update may replace the core as well as the interface, or change only the interface and integration logic. Refreshing a subscription usually updates configuration content only. When something changes, note what you did last and identify which layer it affected. Before updating, keep a working copy of your configuration and overrides. Afterward, test one direct connection and one proxied connection in the same app, using the same destination. If both fail, first check whether the traffic entry point is still listening. If only one fails, check rule order and proxy groups. There’s no need to change clients, reload the subscription, and enable TUN all at once to diagnose a single issue.
04 / NOTES
Clash configuration and migration notes
Find guidance for the task at hand: replacing a discontinued client, sharing a proxy with LAN devices, or importing a subscription on iOS for the first time.
Before migrating, distinguish configurations you can import directly from override scripts specific to the old client. Use a checklist to restore your subscription, proxy mode, and local rules one at a time. Remove the old settings only after confirming the new client works on its own.
Learn how devices on your network should enter the host address and port, then check the listening address, firewall, and network isolation. For anyone setting up an explicit proxy on a phone or TV and unsure which address to use.
Start by choosing a compatible client, then check subscription import, configuration activation, and system VPN authorization in order. If the import completes but you can’t connect, identify which step failed before changing the relevant settings.