Clients / Core / YAML
Clash User Guide
From choosing a client to maintaining proxy groups. Each chapter explains what a feature does, then walks through setup and verification.
If you just want to get connected, start with the Clash Quick Start Guide. Follow the shortest path: import a subscription, choose a mode, connect, and verify. This manual explains what each step changes. If something goes wrong, use the guide to find the relevant chapter. After reading the first four chapters, you can also return to the guide and follow the steps on your device.
1. Clash Clients, Cores, and Configuration
The client provides the interface; the core handles connections
First, understand the difference between the client and the core. The client displays configurations, provides settings, and manages the system proxy or background services for its platform. The core handles connections, matches rules, and chooses an outbound route. In graphical apps, both are usually installed together, but they may not always run at the same time. An open window does not mean the core has started, and closing the window does not necessarily stop its background service. Check core logs, listening ports, and connection records to confirm its status; don't rely on the tray icon alone.
Clash is best understood as an umbrella term for this ecosystem, not as a version prefix shared by every app. Clash Meta is now maintained under the name mihomo. Configurations commonly use YAML, but a shared format does not mean every feature behaves the same way. When migrating from an older client, check which core the current client actually loads, then confirm that it supports the protocols, rule types, and DNS fields in your old configuration. Interface labels also vary: a configuration may be called a profile, subscription, or config. Before migrating, see the comparison of the original Clash, Meta, and mihomo cores.
Subscriptions, nodes, proxy groups, and rules each serve a different purpose
A subscription is one way to obtain configuration updates. It may provide a complete configuration or just node data for the client to convert or reference. A node describes an available proxy exit; a proxy group puts multiple candidate exits behind one selection; a rule sends matching connections to a proxy group or built-in destination. These are not interchangeable. Adding a node does not automatically change routing, and selecting a subscription only sets the active configuration—it does not select an exit in every proxy group.
Also distinguish the local entry point from the remote exit. When a browser connects to a local proxy port, it is talking to the local core. The node selected in a proxy group determines how the connection proceeds remotely. If another device on your LAN cannot reach that port, the cause may be the listen address or a firewall rule; that does not mean the remote node is down. Likewise, a reachable local port only proves that the core received the request. Whether the destination returns content also depends on rules, DNS resolution, and the outbound connection.
Trace a connection in three steps
Break the path into three questions: Did the request arrive? Which rule matched? Which exit did it use? After making a request, find it on the Connections page by domain or app. If there is no record, first check the system proxy, the app's proxy settings, and which traffic is being captured—don't start by reordering rules. The request may also have failed during DNS resolution or ended too quickly to appear in the list. In that case, check the logs for the same time and retry with a request you can reproduce.
If there is a record, check the rule first, then the route or exit. Some interfaces show the proxy group name rather than the final selected node. Groups can also reference other groups, so expand them to see the actual route. A Direct result does not mean the client was bypassed: if the core received the traffic and then chose Direct based on a rule, it will usually still leave a record. Distinguishing “never reached the client” from “reached it and went direct” keeps later installation and mode troubleshooting on track.
Keep existing connections in mind. Apps may reuse established connections, and one webpage can send parallel requests to several domains. Seeing an old record after changing configuration does not mean the new settings failed. For the first check, use one easy-to-retry address, close the previous test, and then inspect the timestamp and result of the new connection. Explain the route for a single address before assessing multiple apps; otherwise, cached connections, background refreshes, and actual routing can get mixed up.
2. Choose a Clash Client for Your Platform
Choose one primary client per device
Clash Plus is the first option to consider for Windows, macOS, Android, and iOS. On Linux desktops, start with Clash Verge Rev, then compare FlClash based on your distribution and preferences. Check the platform, architecture, and package type on the downloads page. If rule editing, connection details, or migration effort matters to you, see the client comparison. Start by deciding what you need: do you just want to import a subscription and switch exits, or do you also need local overrides, logs, or per-app traffic control? Focus on essential features; a more elaborate interface is not necessarily a better fit.
| Platform | Start with | Check before choosing |
|---|---|---|
| Windows | Clash Plus | System architecture, standard proxy support, and service permissions |
| macOS | Clash Plus | Apple silicon or Intel, and the system permissions required to run |
| Android | Clash Plus | Supported app architectures, system VPN support, and background restrictions |
| iOS | Clash Plus | System requirements listed in the store and VPN authorization |
| Linux | Clash Verge Rev | Distribution, package format, and processor architecture |
For a desktop client with detailed configuration and log views, consider Clash Verge Rev. For a comparison across desktop and mobile platforms, consider FlClash. Clash Nyanpasu is also available for Windows. Clash for Windows and ClashX Meta on macOS are discontinued archive entries. They can help identify an older setup or migrate settings, but are not recommended as the default for a new deployment. An older version launching on one device does not prove it will keep up with system updates or new subscription fields.
On Android, you can also compare Clash Meta for Android, FlClash, and Surfboard. First check whether your subscription is a complete configuration or data that needs to be converted, then confirm the import format supported by the client. Don't assume clients are interchangeable just because they can all establish a VPN. On mobile, also check whether per-app routing, background operation, and notifications meet your needs. Try one familiar network and one commonly used app before importing every subscription.
Decide whether you are changing the interface or the way traffic is handled
For routers, servers, or machines managed only from a terminal, start with the mihomo core section on the Linux downloads page. With a standalone core, you need to choose the configuration path, run-as account, log location, and startup method yourself. Downloading a runnable binary does not mean it can take over the device, or that it includes a graphical client's subscription management. If you just need a desktop proxy, start with a graphical client. Consider a standalone core once you are comfortable managing system services.
Before switching from an old client, note the configuration source, selected proxy group, and local overrides, then quit the old client. Import only what you understand; don't copy the entire app data directory. Window layouts, credential storage, service registration, and core working directories are usually app-specific. Copying everything may fail or carry over old ports and DNS settings, making the new client look faulty.
When comparing two clients, test them one at a time; don't let both capture traffic at once. After quitting the first client, confirm that the system proxy is restored, no VPN session remains on mobile, and no background process is listening on the same desktop port. Use the same compatible configuration in the second client, visit the same address, and note the actual exit. This compares features and real-world behavior—not which app reports an error first after two background processes compete for a port.
Before settling on a client, make sure you know how to stop it and restore the previous setup. Know where to disable traffic capture, switch back to the original configuration, and find error details. On a shared or organization-managed device, first check which network tools are permitted and whether background services can be installed. Missing administrator permissions cannot be fixed with configuration settings. Follow the device management requirements instead of repeatedly switching clients and hoping one works.
3. Install the Client and Launch It for the First Time
Choose the right package before granting permissions
On Windows, open Settings → System → About and check the system type against the labels on the Windows downloads page. Don't confuse 32-bit and 64-bit systems with different processor architectures. If the client does not offer a package for your architecture, return to the selection table and choose a suitable alternative. After installation, open the app normally and check that the configuration and log pages work. Request the required permissions only when a feature needs a background service or virtual network adapter, and follow the client's instructions.
On macOS, open About This Mac to identify the chip or processor and distinguish Apple silicon from Intel. After opening a disk image, move the app to Applications if the publisher instructs you to, then launch it from there. Don't use the mounted image as your everyday app location. If macOS asks for permission, check which feature needs it: launching the app, changing the system proxy, and installing a helper are separate steps. If macOS blocks an untrusted app, return to the download source and verify it rather than disabling system-wide protections just to launch it.
On Android, choose a package for an architecture supported by your device. If you start the installer from a browser or file manager, Android may ask you to allow installs from that source; you can revoke this permission afterward. The first time you start a proxy, the system will usually ask whether to allow a VPN connection. Installation permission and VPN permission are separate. On iOS, use the iOS download link to open the App Store, then confirm the system prompt when you connect from the client. If you haven't imported a configuration yet, a connection that cannot be established is not an installation failure.
On Linux desktops, check the package formats supported by your package manager, then verify package dependencies and architecture. Being able to extract a file does not mean the desktop components, network permissions, and library dependencies are ready. If a graphical app does not open on the first try, check its installation using your distribution's tools, then launch it from a terminal to see error output. For a standalone core on a server, confirm the executable and configuration paths so you don't edit the wrong copy when files with the same name exist in multiple directories.
Use the first launch to verify the local setup
On first launch, leave the system proxy and TUN disabled. Check that the app can switch pages, the logs don't repeatedly report startup failures, and no other tool is using the local port you plan to use. Some clients start the core only after a valid configuration is loaded, so no listening port may be expected yet. Check for a listener after importing and enabling a configuration. If the logs say an address is already in use, identify the process and what it does; don't terminate an unfamiliar system process.
If mihomo runs standalone and is available in your terminal, you can test a configuration from its directory with the command below. If it uses relative data-file paths, use the same working directory and core data directory as the actual run; specify the actual data directory with -d if needed. The test attempts to load the configuration, and referenced external resources may also affect the result. Passing only confirms that this environment can load the file. It does not prove a remote service is available or that the system proxy is enabled.
mihomo -t -f ./config.yaml
Keep a note of the local setup: client name, configuration directory, entry port, and whether a background service is enabled. If a port remains occupied after the window closes, this information can help identify the component still running. If the app exits immediately after installation, check whether the error occurred while reading the configuration, opening a listener, or loading a dependency. If a newly imported file caused the failure, try restoring the previous configuration first; there's no need to uninstall the app and delete its data right away.
4. Import Subscriptions and Manage Local Overrides
Add, update, and enable are three separate actions
Open the client's configuration or subscription page and find the add option. Paste the full URL for a remote subscription, or use the import option to select a local YAML file. Button labels and locations vary; recognizing the action matters more than memorizing the wording. After importing, check that a configuration entry appears and that its proxy groups are available. Whether a new entry is enabled automatically depends on the client. If it isn't active, apply it manually, then return to the proxy page and confirm that the displayed groups come from the new configuration.
Updating a subscription fetches new content for an existing entry; enabling it changes which configuration the core uses. A successful background update does not guarantee that the active core has loaded the new content. The client may reload automatically or require you to apply the update manually. Check the active indicator and update history on the configuration page, then confirm the expected groups appear on the proxy page. Don't repeatedly delete and re-add a subscription just to check for updates; that can remove its history and reset saved group selections.
Subscription URLs may contain access credentials. When pasting one, check that no spaces or line breaks were added. Don't share the full URL, complete response, or unredacted screenshots when asking for help. To report a download problem, note when it occurred, the client's message, and any error type that is safe to share. The current network may also be unable to reach the subscription service. Check connectivity and DNS first rather than sending the URL to an unfamiliar conversion service.
Break import errors down by stage. If the request fails, check the network, system time, and subscription authorization. If the request succeeds but parsing fails, the response may be a login page, an error message, or a format the client does not support. If parsing succeeds but the core rejects the configuration, check the specific field or syntax error. The interface may label all three simply as an import failure. Expand the error details; that's usually faster than switching networks and retrying repeatedly.
Keep local changes separate from remote configuration
A remote subscription is upstream content. Editing its downloaded copy directly may mean your changes disappear at the next update. Put small local rules in an override or merge feature explicitly supported by the client. If you maintain a complete configuration yourself, save it as a separate file and import it as its own entry. Override names and merge behavior vary by client. Check whether entries are prepended, appended, or replace existing content—especially for rules. A new rule placed after the final catch-all will never have the intended effect.
After an update, check two things: whether the previous proxy group selection is still available, and whether rules that referenced that group still work. If the upstream provider renames a node, the client may reset its saved selection. If a group itself is renamed, local rules may refer to a group that no longer exists. Don't switch all traffic to one exit in global mode as a permanent workaround. Check which groups are actually in the active configuration, then fix the override or temporarily switch back to the previous configuration.
If the old configuration works but the new one doesn't, keep the network, destination, and capture method fixed. Test the old configuration and note the exit, then switch to the new one and make a fresh request to the same address. If the new configuration fails to load, fix that first instead of guessing about node status. If it loads but uses a different exit, check rule order and group selection. If the details show the same exit but the result differs, narrow the cause down to DNS or node settings. This keeps subscription updates, exit changes, and network fluctuations from being lumped into one problem.
Keep a recoverable local baseline, but limit what you back up. Save only the configuration and overrides needed for rollback in a protected location; create a redacted copy before sharing. If the client offers sync, check whether subscription URLs are included. Once a subscription is revoked, an old configuration may still parse, but that does not prove the remote service still works. Update the configuration source rather than relying on a stale cache.
5. System Proxy, Rules, Global, and Direct Modes
Keep traffic capture and outbound mode separate
The system proxy controls how apps hand requests to the client. Desktop apps must follow the system setting or specify a proxy in their own settings to send traffic to the local entry point. Some apps have their own network settings, and some services don't read proxy settings from the desktop session at all. An enabled system proxy only means the setting is on; it does not prove every app is using it. On phones, a VPN status indicates that a system-level session is established, not that every app can reach its destination.
Rule, Global, and Direct modes control where a request goes after reaching the core. Rule mode matches conditions in the configuration and routes different destinations to different exits. Global mode is useful for briefly comparing exits; with mihomo, also check the selection in the GLOBAL group. Direct mode sends connections that reached the core directly, but the system proxy or TUN may still be enabled. Turning off the system proxy and switching to Direct are not the same action. Direct mode does not automatically restore the system's original routing state.
For a first connection, use one primary capture method and test in Rule mode. If the system proxy covers your usual browser, check which rules it matches before enabling TUN. If an app has its own proxy settings, confirm whether your test uses those or the system settings. For example, a terminal tool that uses proxy environment variables may keep sending requests to the local port even after the system proxy is disabled. Stick to one entry point during each test to avoid misleading results.
Use connection records to tell entry problems from exit problems
If the browser has no connection records at all, confirm that it follows the system proxy and that the port matches the active configuration. If the browser has records but another app doesn't, investigate how that app sends traffic. If both have records but only one destination fails, check the rules matched by each domain. A page may load its basic layout while images or sign-in fail because they use different domains. The domain in the address bar alone may not explain what happened across the page.
An explicit proxy entry can also help with desktop diagnostics. The command below applies only if the client is listening locally on the mixed port 7890; replace it with the port shown in the interface if yours is different. It sends this request through the local HTTP proxy entry so you can inspect the connection and logs. Avoid running other tests at the same time, so the corresponding record is easy to find. A successful command proves only that this path works—not that every app follows the system proxy.
curl --proxy http://127.0.0.1:7890 --noproxy "" --head https://example.com/
If a destination works only in Global mode, compare the logs from both tests to see which exit each used. If the rule chose the wrong exit, switch back to Rule mode and fix that rule or group selection instead of sending all traffic through one group indefinitely. If Rule mode works but Global mode fails, the default global group may have selected an unsuitable candidate. In either case, make a new connection; existing connections may not switch routes when you change modes.
When testing is done, restore the settings you recorded at the start. Remove any temporary browser proxy settings and restore proxy variables added for a terminal session. If the client quits unexpectedly but apps keep trying to connect to its stopped local port, check whether the system proxy still points to the old address. Don't remove a proxy set up by your school or employer; undo only the entries added for this test. Cross-check other common settings in the FAQ.
6. YAML Routing Rules and Match Order
Specific rules first; the catch-all last
In Rule mode, mihomo typically checks the configuration from top to bottom. The first matching rule determines the target, so order is part of how the configuration works. Use DOMAIN for an exact domain and DOMAIN-SUFFIX for a domain suffix; use MATCH as the catch-all. To route a subdomain differently, put the exact exception above any suffix rule that would also match it. Otherwise, the list may look orderly, but the exception will never be reached.
The example below is a standalone local test configuration that needs no remote nodes or external rule providers. Save it as a separate file and import it into a client that supports mihomo configurations. Choose a listen port not already in use, and don't run it alongside your regular client if both would use the same port. This test uses rejected connections to show rule order. Don't mistake it for an everyday subscription or rely on a test domain loading a webpage; verify which rule a new request matches.
mixed-port: 7890
allow-lan: false
mode: rule
log-level: info
proxy-groups:
- name: LAB
type: select
proxies:
- DIRECT
- REJECT
rules:
- DOMAIN,example.com,LAB
- DOMAIN-SUFFIX,example.com,REJECT
- MATCH,DIRECT
First, set LAB to DIRECT. Use a proxy request that sends the target domain to the local core to visit example.com, then check whether the log shows a match on the first rule. Next, switch LAB to REJECT and request the same destination again. The first rule should still match; only the outcome should change. Finally, visit a test address that does not match the suffix and confirm that it hits the last rule. This tests rule matching and group selection separately, instead of relying only on whether a webpage opens.
Troubleshoot missing domains, mismatches, and override placement
Domain rules need the core to receive or recover the target domain. If an app connects directly to an already-resolved address, the connection record may show only an IP. Don't change every DNS setting just to make one domain test work. First try a test request that clearly sends the domain through an HTTP proxy and compare the target details in both connections. Then decide whether the difference comes from the entry point or whether a suitable IP rule is needed for a known address range.
IP rules match address ranges, not website names. Multiple services sharing an address may match the same rule. An IP rule that supports no-resolve can avoid actively resolving a domain for that rule, but it does not disable all client DNS queries. If an address rule doesn't seem to match, first check whether an earlier domain rule already matched, then check whether the current destination has an address the core can evaluate. Moving the rule to the top won't solve both problems.
YAML is sensitive to indentation and nesting. Rules belong as list items under rules, and group names must match those defined under proxy-groups. Don't paste a translated display label into the configuration. Copy the original file first, use spaces for indentation, and make changes in small sections. If an error points to a line, check that line and the list item above it for a missing dash, colon, or correct indentation. Once the file loads, test the actual behavior.
When adding a local override to a subscription, the order shown in the editor may not be the order the core ultimately uses. Check the effective rules after applying the override, or use a new connection to confirm the match. If the new rule lands after the catch-all, change the merge position rather than the domain. If the catch-all overrides other rule types too early, narrow the patch. Make only the changes needed for the target in your production configuration, and keep a baseline you can restore immediately; fixing one site shouldn't disrupt LAN services or other apps.
Test with at least one positive and one negative case. The positive case should be a destination the new rule is meant to handle. The negative case could be another destination under the same suffix that should take a different route, or an internal address that must remain direct. Passing the positive test alone doesn't prove the rule is narrowly scoped. After editing, make fresh requests for both and check the destination, matched rule, and exit. Keep the change only if all three are correct.
7. TUN Mode, Routing, and DNS
Identify which apps need capture before enabling a virtual adapter
TUN receives traffic routed to a virtual network adapter, so apps don't need to read the system proxy themselves. It can help with apps that don't support a standard proxy entry, but not every kind of traffic necessarily behaves the same way. Route exclusions, destination protocols, platform permissions, and core settings all affect the result. Don't treat TUN as a way to speed up nodes. If the problem is that an app's traffic never reaches the core, the first check is whether a new connection record appears for that app.
On desktop, first verify the standard proxy path and record its settings, then remove any temporary proxy settings in the app. For comparison, disable the system proxy, enable TUN on its own, and repeat the same request. If the client asks to install a service or grant permission, find out whether it needs that to create an interface, add routes, or start a background component. On mobile, follow the client's approach to managing the system VPN rather than copying desktop virtual adapter settings. If another VPN is already active, check whether the system allows both to run at once.
The snippet below shows top-level mihomo settings; it is not a complete configuration. Merge it under the existing tun section only if your client supports custom TUN fields, and avoid defining that section twice. stack selects the network stack used to handle traffic; mixed combines the system stack with a user-space implementation. auto-route sets routes for traffic capture automatically; it does not handle every exception automatically. Some graphical clients generate these settings in the interface, so check what actually takes effect rather than setting conflicting values in two places.
tun:
enable: true
stack: mixed
auto-route: true
Check routing, resolution, and exit in that order
If common apps leave no records after you enable TUN, first check whether the virtual adapter and routes were actually created, and whether an app is still using a different proxy entry. If most traffic works but domain-based access fails, check whether DNS requests reach the expected resolver. TUN capture for regular connections does not mean every app's DNS request follows the same path. Browser encrypted DNS, system caches, and organization-managed resolvers can all change the result. Record the current behavior before deciding whether to change DNS.
If external sites work but a printer or internal service doesn't, test access by internal IP separately from access by internal domain name. If both fail, check routing or firewall settings. If the IP is reachable but the domain isn't, check whether internal DNS is still available. Before adding route exclusions for a subnet, verify its range and purpose. Don't treat every private subnet as the same network: the meaning of an internal address may change when you switch to a guest network or hotspot.
Compare against the setup before enabling TUN. Turn TUN off and check whether regular and internal access recover, then turn it back on and retest just one failing case. If the TUN toggle reports success but connectivity doesn't change, check the service logs for failures creating the adapter, adding routes, or binding an interface. If you're maintaining a server over a remote session, don't change capture routes without local or backup access; you could cut off the connection you're using to manage it.
Switching between Wi-Fi and Ethernet, waking from sleep, or connecting to a company VPN can change interfaces or the default route. A successful first test is only the starting point. If these situations matter in daily use, test each one to confirm that destinations and internal services remain reachable after reconnecting. Note which networks need TUN and which only need the system proxy. The more clearly you define the scope, the easier it is to judge whether a DNS or routing exception is actually necessary.
8. Updates, Log Troubleshooting, and Rollback
Separate app upgrades, subscription refreshes, and local changes
Change one layer at a time. When switching clients, keep the known-good configuration. When refreshing a subscription, leave the system proxy and TUN alone. When editing local rules, don't upgrade the app at the same time. Before each change, save a baseline you can restore and note the current configuration, key group selections, and important toggles. Test the change before moving on. If the client, core, and subscription all change at once, it can be difficult to trace a new failure back to its cause.
Keep backups small but usable. At minimum, save the local configuration, separate overrides, and the group selections and capture settings you'll need to restore manually. You don't need to save caches, databases, or logs every time; back them up only if a migration requires them. Treat subscription URLs and service details as credentials, and keep them out of public sync locations. Try restoring from a redacted copy to make sure you know the recovery steps, rather than just confirming that a compressed file exists on disk.
Choose logs based on the symptom
| Symptom | Check first | Leave unchanged for now |
|---|---|---|
| Core fails to start | Configuration parsing, file paths, port conflicts | Remote node selection |
| No record for the test request | Entry point, capture scope, DNS errors | Rule order |
| Connection appears, but the exit is wrong | Matched rule, current mode, selected group exit | System network routes |
| Some webpages show a certificate error | System time and the domain in the certificate warning | Browser security settings |
When reproducing an issue, note the time, app, destination, and capture method, then check the Connections or Logs page for that request. If the logs are noisy, narrow them down by time and domain rather than leaving verbose logging enabled. Errors can come from different stages: a configuration load error means the new settings did not take effect; a resolution error occurs before an address is found; and a connection timeout needs further investigation using the matched rule and exit. Similar-looking messages do not necessarily call for the same fix.
If your browser shows a certificate warning, check the system time and address bar first, then see whether the same site warns under the original network settings. Don't ignore the warning or install a root certificate from an unknown source. If it happens with only one exit, stop using that exit and keep a redacted copy of the error type for troubleshooting. If several sites and apps show similar warnings, investigate the system or network environment before editing rules one by one. For more, see how to troubleshoot certificate errors when using a proxy.
If a terminal tool and browser behave differently, check how each one is configured to use a proxy. Environment variables, separate browser settings, and app-specific exclusion lists can explain the difference. Test the same destination once in each; don't combine multiple apps, domains, and exits in one test. If the problem appears only after waking from sleep or switching networks, collect logs from before and after the change, not just the part after restarting the app.
Verify at least two paths after rollback
If a configuration change breaks things, first disable the override you just added, switch to a configuration that has already been tested, and check whether proxy group selections were reset. If the problem came from traffic capture, undo the new TUN or system proxy settings and confirm the background status. After restoring, test both an ordinary website and an internal service you use regularly. Checking only external access may miss leftover routing changes; checking only internal access does not confirm that the original proxy path is back.
Write the fix as a repeatable instruction. For example, “After a subscription group is renamed, disable the old override, reference the new group, and apply it again” is more useful than “Restart the client.” If restarting is the only way to clear the issue, collect the state before the next restart. Keeping evidence helps distinguish a temporary resource conflict, a network change, and a persistent configuration error. Good maintenance means the issue can be reproduced and the change can be undone—not that you have a long list of settings.
9. Proxy Groups, Rule Providers, and Advanced Configuration
Define what a proxy group should do before adding automatic selection
Start with select. Manual selection is straightforward, and the actual exit is easy to confirm when checking a connection. Point rules that need the same exit to one group, but don't put different use cases together just because node names look alike. If one type of work needs a stable session while another is just for casual browsing, separate the two instead of adding exceptions for every site later. Get manual selection working first; add probes only where automatic selection is genuinely useful.
url-test selects automatically based on probe results, but a probe measures how a candidate performs against one specific URL—not its quality for every use case. Choose a stable, reachable URL that returns a lightweight response. interval controls how often to probe, while tolerance can reduce frequent switching over small latency differences. Don't set an extremely short interval just to chase a better number in the interface. If the probe succeeds but your app fails, test the actual service and check the exit instead of treating the probe result as proof.
fallback suits setups with a clear priority order: candidates are considered in order, subject to availability. It does not seamlessly migrate existing sessions; after a connection drops, whether the app reconnects depends on the app itself. load-balance distributes separate connections; it does not split one file download across multiple paths to combine their throughput. For services that need a consistent session exit, verify with manual selection or an appropriate distribution strategy. Don't mistake random changes for improved stability.
Define what counts as failure before making changes. For example, can each candidate open the same test address? Can a new connection use the next choice when the primary is unavailable? Does behavior return to normal when it recovers? To compare two group types, change only the type and its required settings; leave the rules unchanged. Test repeatedly over a short period on the same network and destination. See the comparison of Clash proxy group types for field differences and selection behavior.
Add external rule providers, then plan deployment
Once you have enough rules to justify it, move repeated rules into a rule provider. In mihomo, a rule provider defines where rule data comes from, how it is updated, and what type of content it contains. The main rules list uses RULE-SET to choose where to apply it. Like inline rules, providers are still affected by order. Even a perfectly valid rule set won't route traffic as intended if it comes after the catch-all. Confirm that the content matches the declared type, then decide how it should be ordered relative to local exceptions.
Remote rule sets and subscriptions don't have to be updated together. A rule update changes what matches; a node update changes the available exits. The resulting failures can look similar. Record each rule set's source and purpose, and check whether the client keeps using cached content or fails to load the configuration when an update fails. For each external dependency you add, know how to restore the previous setup if it becomes unavailable. If you only maintain a few precise rules, keeping them in the configuration may be easier to verify.
When moving from a graphical client to a standalone core, treat local testing, long-running service operation, and remote management as separate steps. Test the configuration without elevated permissions first, then configure a service only if needed. Restrict access to local listeners and the control interface; don't expose a control port to untrusted networks just to check status from a phone. A LAN proxy entry and a control interface serve different purposes and need separate access controls. If nobody else needs access, keep them bound to localhost.
Write a short maintenance note for your configuration: which entry point it uses, the rule order, which groups are selected manually, and which destinations to test after updating rule sets. Include a rollback path. After saving, check that the configuration loads, verify rules and exits, and then confirm the client shuts down cleanly. Being able to explain real behavior from the logs and restore a failed change is the foundation for adding automation, deploying across devices, or using more complex DNS policies.