Before You Start: Platform, Subscription, and Traffic Routing
Choose an installer for your device—not a client based on a configuration name
Check your device’s operating system, version, and CPU architecture before visiting the downloads page. For Windows, macOS, Android, and iOS, start with Clash Plus. For Linux desktops, start with Clash Verge Rev. Similar app names don’t mean their installers are interchangeable. CPU architecture and operating system are separate requirements: even with the same ARM64 architecture, phones, desktops, and servers may need different installation files. If an installer doesn’t specify the architecture it supports, check the client’s release notes instead of relying on its name or file extension.
Keep the client and core distinct. The client provides the interface, manages configurations, and controls system settings. The core parses configurations, matches rules, and establishes connections. The mihomo core version on the downloads page is better suited to users who want to manage processes, services, and configuration directories themselves. When setting up a desktop for the first time, a graphical client makes it easy to see which configuration is active and how traffic is being routed. Clients share some configuration syntax, but menu names, extra fields, and subscription conversion features can differ. Recheck key settings when switching apps.
Keep subscription URLs, configuration files, and proxies separate
A subscription URL fetches a configuration; the configuration contains proxies, proxy groups, rules, or references to rule sets. If you receive a web address, first confirm it’s a Clash subscription URL provided by your service—not an account page or purchase page. To move to a new device, keep the subscription URL from a legitimate source and any local configurations you maintain. Don’t treat a runtime configuration generated by an old device as an installer for the new one. A local file may also reference remote rule sets or proxy providers; copying it doesn’t mean those references have been downloaded.
After importing, return to the configuration list and select the new entry, then check whether its proxy groups show available options. Seeing a subscription name confirms only that an entry exists—not that its contents downloaded or that it’s active. For your first test, manually select a known working proxy and verify that a regular web request succeeds before enabling automatic testing or changing rules. Automatic groups have their own test URLs, intervals, and switching conditions. Letting one switch repeatedly from the start makes problems harder to reproduce.
Choose what traffic to route, then set up a baseline test
| Method | What It Covers | Check First |
|---|---|---|
| System proxy | Desktop apps that use the system proxy settings | System proxy address and local listening port |
| App-level proxy | Apps or commands configured to use a proxy explicitly | Proxy protocol, host, and port |
| TUN or mobile VPN | Traffic routed through a virtual interface and routing settings | System permissions, app scope, and routing settings |
Start by testing a desktop browser with the system proxy. Consider TUN only if you also need apps that ignore the system settings to follow the same rules. Mobile apps usually route traffic through the system VPN feature, but a VPN-connected status only confirms that the routing interface is active—not that the remote proxy works. On any platform, note whether a familiar test site loads with the proxy off, then compare using the same app and URL. If you encounter a captive portal, sign in through the network provider’s usual process before connecting the client.
On managed work or school devices, first confirm whether installing a client, changing proxy settings, or enabling a virtual interface is allowed. Ask your administrator about restrictions. If a company proxy, VPN, or custom DNS is already configured, record the original settings so you can restore them accurately. Change one variable at a time: don’t switch clients, proxies, and DNS in the same test. Before sharing screenshots, hide full subscription URLs, account details, and internal domain names. Include the operating system, client name, and the step where the error occurred.
Windows: Installation, System Proxy, and TUN
Check your system type and preserve existing network settings
Open Settings → System → About and check “System type.” Don’t use the Windows edition name to determine CPU architecture. On the Windows downloads page, start with Clash Plus. If you’re already familiar with Clash Verge Rev, FlClash, or Clash Nyanpasu, choose one based on the supported options listed there. Clash for Windows is archived and no longer maintained, so it’s not recommended as the default for a new device. Before installing, turn off automatic traffic routing in any old proxy client and note the existing manual address or setup script on the system proxy page.
After installation, launch the client normally. Confirm that its main window or notification-area icon is available, then open configuration management. If installation is blocked by policy, check that the package came from the expected source and that your account can install apps. On a managed device, contact your administrator. Don’t run the client as administrator by default. A regular browser proxy usually doesn’t require the core to run with elevated privileges; only a TUN service or other system-level operation may prompt the client to request permission.
Import a configuration and check which proxy port the system uses
Add a remote subscription from the configuration list, or import a local YAML file. Once the update completes, select the configuration you want to use. Manually choose a test proxy in its proxy group, then turn on the client’s system proxy. Open Settings → Network & Internet → Proxy and check the active proxy source and address; the exact settings depend on the client. If entering details manually, use the loopback address and HTTP or mixed-port listener shown by the client. Don’t enter a SOCKS-only port where an HTTP proxy is required. Some apps read proxy settings only at launch, so restart the app after making changes.
Load a familiar webpage, then look for its domain on the Connections page. This test passes only when the request appears and the matched rule and outbound proxy are as expected. If the page loads but no request appears, try an uncached page and check whether the browser has a separate proxy setting or extension. Command-line tools may not use the desktop system proxy. If the browser works but a command times out, check that tool’s proxy options before replacing the subscription.
Enable TUN only when needed, and restore the proxy settings before exiting
TUN is useful for apps that ignore the system proxy. Follow the client’s prompts to install or enable the required service, and confirm that any permission request comes from the app you’re using. Test TUN separately. To identify how requests enter the client, turn off the system proxy during the test and keep the same test proxy selected. Check whether new entries appear in the connection list. If enabling TUN takes down the whole network, turn it off to restore connectivity, then check whether the virtual interface was created successfully, another VPN is routing traffic, or the local network uses an overlapping address range.
If only corporate or local network devices are affected, note whether you access them by hostname or IP address. If only hostnames fail, check DNS first. If a known local IP address also fails, check the routes being captured. When remotely managing another machine, don’t enable TUN or change the default route if you have only one management connection. On devices with a corporate VPN, keep its deployment configuration and don’t change network interface priority yourself. At home, switching back to the browser’s system proxy is usually a quicker way to spot conflicts than repeatedly reinstalling the client.
If the client crashes or is force-quit and all webpages stop loading while other devices on the same network work, check the system proxy page for a leftover setting pointing to a loopback address. Once the process exits, nothing is listening on the local port, so traffic sent there fails. Restore the system settings you recorded before testing. If your organization provided a proxy script, don’t simply clear it. Before closing the client normally next time, turn off its traffic-routing switch to prevent stale settings.
macOS: Chip Selection, Proxy Services, and Waking from Sleep
Identify whether your Mac has Apple silicon or an Intel processor
Open About This Mac to see whether it lists an Apple chip or an Intel processor, then choose the matching version from the macOS downloads page. For a new installation, start with Clash Plus. Clash Verge Rev and FlClash are also available; ClashX Meta is archived and no longer maintained. Prefer a package built for your Mac’s chip. If an app won’t open or quits immediately, check its architecture, system requirements, and installation steps. A downloaded file appearing in Finder doesn’t mean the app is installed.
If you downloaded a disk image, follow the window instructions to drag the app into Applications, then launch it from there. Don’t keep running it from the mounted disk image. If you downloaded an installer, follow the system prompts. If macOS can’t verify the app or an organization policy blocks it, confirm the download source and check the client’s release notes. On managed devices, ask your administrator for approval. Don’t weaken system-wide security just to open an app. Before upgrading, quit the old version so you don’t leave two instances in the menu bar.
Import a subscription and check the active network service
Open the configuration list from the menu bar or main window, import a subscription URL or local file, and confirm the new entry is selected. After it updates, leave global routing unchanged, use Rule mode, and choose a test proxy. With the system proxy enabled, open System Settings → Network, select the active Wi-Fi or Ethernet service, and check Details → Proxies. Labels may vary slightly between macOS versions. If an automatic proxy configuration script is already set up, note its purpose; don’t overwrite managed settings just to test the client.
Proxy settings are tied to a network service. A successful test over Wi-Fi doesn’t guarantee the same settings will apply when you connect Ethernet or a dock. After switching networks, check the active service, confirm the proxy is set, and look for new connection entries. A working browser doesn’t mean terminal apps inherit its proxy settings. For testing, specify the local port in the command. If only commands without a proxy fail, check how that app connects instead of changing system DNS first.
TUN Permissions, Waking from Sleep, and Local Services
Enable TUN only when you need to route apps that don’t follow the system proxy. Some clients ask to install a helper service or approve a network component; the prompts and steps vary by version. Approve only requests that match the app you’re using. After setup, check connections and logs rather than relying on the toggle alone. If another VPN is active, first confirm whether both can run together. For a VPN required by your organization, keep its original settings and ask your administrator which traffic-routing method is appropriate.
If the network occasionally stops working after waking from sleep, first check that the device reconnected to the right Wi-Fi network and that the client is still running. Then confirm that the system proxy or TUN became active again after the network changed. If only new connections fail while old pages still appear, test with a fresh, uncached request. Compare the same test page with routing off, with only the system proxy enabled, and with only TUN enabled. This often reveals whether the network is slow to recover or a specific routing method failed to resume.
If only a network printer, file share, or development loopback service fails, test its known address before routing the whole local network through a remote proxy. Note whether the failure occurs during name resolution, connection setup, or app authentication. Adjust only the affected destination and its relevant rules. After restoring local access, test a regular webpage again to make sure the change didn’t alter other routing. If traffic still goes to the local port after you quit the app, restore the settings on the active network service—not just by disconnecting once in the current window.
Android: Installation, VPN Permission, and Background Connections
Choose a package supported by your system architecture
On the Android downloads page, start with Clash Plus. You can also consider Clash Meta for Android, FlClash, or Surfboard based on package type and configuration compatibility. A 64-bit-capable processor doesn’t guarantee the device runs a 64-bit operating system. Before choosing ARM64, check which app architectures the installed system supports. If you’re unsure, see whether the client offers a universal package. Don’t infer the supported architectures of one download from another client’s filename.
When installing manually from a browser or file manager, Android may ask you to allow installs from that source. First confirm that the file came from the expected download page, then follow the system prompts. Revoke source permissions you no longer need after installation. If an upgrade fails due to a package conflict, check that it’s from the same distribution channel as the installed app and that your system meets its requirements. If you need to uninstall and reinstall, keep a copy of any subscription and configurations you maintain. Uninstalling usually removes the app’s stored data and preferences.
Import and select a configuration, then set up the system VPN
Add the full URL on the configuration or subscription page, and check that you didn’t copy extra spaces or line breaks. When importing YAML through the system file picker, select the file itself—not a sharing page or archive. Wait for the initial download to finish, then make the configuration active and choose an outbound policy. Don’t post a subscription URL that grants access in public chats or use an unfamiliar online conversion site to transfer it to another device.
When you first connect, Android usually displays a system VPN request. Confirm it comes from the client you’re using, then allow the connection. This uses Android’s VPN interface; it’s not the system proxy switch used by desktop browsers, and you don’t need to enter a proxy address in your Wi-Fi settings. After connecting, check both the system VPN indicator and the client’s connection list. Test a browser and a regularly used app that actually needs a proxy. If the browser works but the target app has no connection entry, check the client’s app list: does it include only selected apps, or exclude them?
Fix Background Disconnects, Private DNS, and Network Switching
If the connection works with the screen on but drops a few minutes after locking, first check that the client’s service is still running. Then check system battery settings, background data limits, and device management policies. Adjust background permissions for this client only if needed, then retest after the same amount of time with the screen locked. A missing persistent notification can be a clue, but the system may hide notifications, so it doesn’t prove the process has stopped. If the issue occurs only when switching from Wi-Fi to mobile data, check mobile data permissions and whether the proxy can reconnect over the new network.
If another app is already using the system VPN interface, such as a corporate VPN or security app, a new connection may replace the existing one or be blocked by device policy. Check which app currently owns the connection in system VPN settings. If Always-on VPN or blocking connections without a VPN is enabled, the network may be blocked by design when the client stops. Before changing these settings, distinguish personal preferences from organization-managed policies. Restore the original connection and permission settings after testing.
If most apps show connection entries but some domains still won’t load, check whether Private DNS, the client’s DNS policy, and the current network are compatible. Don’t change DNS, update the subscription, and switch proxies at the same time. First try the same domain on another reliable network, then check the logs for DNS timeouts. If a public Wi-Fi sign-in page won’t open, pause the client to complete sign-in. After reconnecting, verify with a fresh webpage request instead of relying on a cached page.
iOS: App Store Installation, Subscription Import, and VPN Configuration
Check the app and device requirements in the App Store
Choose Clash Plus from the iOS downloads page, then check the app name and device requirements in its App Store listing. Once installed, open the app from the Home Screen and find subscription or configuration management. When switching devices, don’t assume migration is complete just because the app icon appears on the Home Screen. App restoration, configuration restoration, and system VPN permission are separate steps. If the device is managed by your organization, App Store installation and VPN setup may be restricted; check deployment requirements with your administrator.
Product information linked from the downloads page can help you learn the client interface, but use the subscription URL provided by your service. Before copying it, make sure you’re signed in to the provider’s account page and have the client subscription link—not the account page URL. If you backed up a local configuration on another device and the current app supports importing from Files, save it somewhere accessible in the system file picker. Remote rule sets or proxy lists referenced by that configuration still need to be updated on the new device.
Check the active configuration and system connection status
After adding a subscription, wait for the client to load it. Return to the list, confirm the entry is selected as the active configuration, and check whether its proxy groups expand. If you see only a default name and no available proxies, check the update result before connecting. If the subscription returns a sign-in page, pasting it again won’t help; get a valid URL from the provider. For testing, use a familiar webpage and a specific outbound proxy. If the app provides connection logs, check the matched rule and proxy for a new request.
The first time you connect, iOS usually asks to add a VPN configuration and may require authentication based on device settings. Verify the app name shown in the prompt, then approve it. iOS routes traffic through a system-managed VPN configuration. This is different from setting an HTTP proxy for a desktop browser, and you don’t need to add a proxy manually for each Wi-Fi network. The system’s connected status only confirms that the tunnel is up; subscription availability, rule matching, and the remote connection still need separate checks.
Distinguish On-Demand Reconnection, Network Changes, and App Issues
If the VPN disconnects manually but reconnects on its own shortly afterward, check whether On Demand is enabled for that VPN configuration and whether its rules come from the client or device management. Adjust personal settings in the relevant app or system menu. Don’t delete organization-installed profiles to troubleshoot. Another VPN already on the phone may also be using the routing interface. During testing, note the connection name shown in iOS so you don’t mistake traffic handled by the old VPN for a test of the new app.
If Wi-Fi works but cellular data doesn’t, first check that mobile data works and that the app is allowed to use it. Wait for the network switch to finish, then make a new request. If only subscription refresh fails while existing connections still work, check whether the client fetches the subscription directly or through the active proxy. That’s a configuration download issue, not necessarily a tunnel failure. If only one website or app fails, distinguish an app service outage from a rule mismatch. One timeout doesn’t mean the entire subscription is invalid.
When you’re done, disconnect in the client first, then check the VPN’s owner and status in system settings. If webpages still won’t load after you close the client, check whether On Demand rules remain active and whether the network requires captive portal sign-in, then restore the network settings you changed for testing. On public Wi-Fi, try opening the sign-in page again on the same device. When moving to a new device, verify that it connects independently before disabling the old one. This helps avoid mistaking a migration issue for an account or proxy problem.
Linux: Distribution Packages, Desktop Proxy, and Command-Line Tests
Check both your distribution and package architecture
Check your Linux distribution and machine architecture in the terminal, then choose a package from the Linux downloads page. For desktop use, start with Clash Verge Rev; FlClash is another option depending on the available package type. Debian and Ubuntu commonly use DEB packages; distributions with RPM package management should use an RPM option. Matching package formats don’t guarantee compatible dependencies, especially on older systems. If installation reports missing dependencies, check the exact packages named by the package manager. If the downloads page doesn’t offer your architecture, don’t rename a different package. Choose a compatible client or an appropriate core deployment instead.
cat /etc/os-release
uname -m
Common mappings include x86_64 to AMD64 and aarch64 to ARM64. In a container or multi-architecture environment, check the userspace of the actual installation target too. For example, on Debian-based systems, run dpkg --print-architecture to see the package manager’s target architecture. Install local files with your distribution’s supported installer or package manager. If the system reports a version or dependency mismatch, don’t copy system libraries from another distribution. You don’t need to run a core and a graphical client at the same time unless you’ve explicitly assigned separate ports and traffic-routing paths.
Import a configuration, then test the desktop proxy and a single command
In a graphical client, import the subscription from the configuration page and select it as active. If running the core directly, prepare the configuration file it reads and confirm the working directory and data file locations. In either case, start with a manually selected proxy to verify the setup. Whether the desktop proxy switch covers an app depends on the desktop environment and how the app reads proxy settings. If a graphical browser works through the proxy but a terminal tool doesn’t, the two processes may simply use different settings—especially if they were launched from different sessions.
The commands below compare a direct request with one that accesses the same HTTPS URL through a local proxy. Replace the port with the HTTP or mixed port shown by the client. If the local proxy requires authentication, follow the client documentation and don’t put credentials in shell history. A successful command proves only that this request worked; check the client’s connection list to confirm the actual outbound proxy. If it fails, first determine whether the local port is unreachable or the request fails after connecting to it.
curl --noproxy '*' --max-time 10 -I https://example.org/
curl --noproxy '' --proxy http://127.0.0.1:7890 --max-time 10 -I https://example.org/
Resolve Port Conflicts, TUN Permissions, and Network Differences
If the startup log reports that a port is already in use, check whether another client or core process is still running. Use ss -ltn to see TCP listening addresses and ports, then compare them with your service settings. If you change the listening port, update the desktop proxy, apps with explicitly configured proxies, and test commands too. If the client listens only on the local loopback address, a VM or container can’t reach it through its own loopback address. That’s a different issue from a configuration syntax error; don’t expose the port to your whole local network just to troubleshoot.
Linux TUN requires support for virtual network devices and permission to change routes. On a regular desktop, use the service installation steps provided by the client. In a container, on a restricted host, or on a managed network, first confirm that the host grants the required permissions. Don’t give every process elevated privileges just to make a toggle work. If enabling TUN disrupts local network access, turn it off to restore the original state, then start with the app-level proxy and check route coverage as needed. For setups that separate a persistent core from a gateway, see Using OpenWrt as a Side-Route Gateway. Don’t copy desktop settings directly to a router.
Common Configuration Issues: From Import Errors to Connection Timeouts
No configuration? Check the response. No requests? Check the routing path.
First identify whether the problem occurs during import, activation, or connection. If import reports a syntax error, confirm the provider returned a format supported by your client—not an account sign-in page, expiration notice, or web error. When editing local YAML, use spaces for indentation and align fields at the same level. Start at the line number reported by the client and check the line before it for a missing colon or quote. If one client loads the file but another reports an unknown field, check the differences between the original Clash core, Meta, and mihomo. Changing the file extension alone won’t make it compatible.
If the configuration activates but the test request never appears in the logs, check the app’s proxy entry point or system routing method first—not the proxies. Check the local listening port, active configuration, system service, or VPN ownership, then make a new request to an uncached URL. If you updated the subscription but the old file is still in use, check whether the client imported the update as a separate configuration. Put custom rules in a supported override or maintain them in a separate file. Changes to a local copy of a remote subscription may be overwritten the next time it refreshes.
Rule Order, Proxy Groups, and a Minimal Configuration
Rules are matched in order. Specific domain and domain-suffix rules usually belong before catch-all rules. If MATCH appears too early, later rules won’t be checked. Multiple rules can point to the same proxy group, but the group name must match its definition in the configuration. The example below is a local direct-connection test configuration that mihomo can read. It provides mixed HTTP and SOCKS listening without routing system traffic or including remote proxies. Use it only to isolate the local listener and rule-matching layers; don’t replace your everyday configuration with it.
mixed-port: 7890
allow-lan: false
bind-address: '127.0.0.1'
mode: rule
log-level: info
rules:
- DOMAIN,example.org,DIRECT
- MATCH,DIRECT
Before testing, stop any old process using the same port, or change the port in a copy of the configuration. Then use the proxy request from the previous section and check whether a domain-specific rule or the catch-all rule matched. Both rules connect directly, so use the connection log—not whether the webpage loads—to tell them apart. After returning to your everyday configuration, if a manually selected proxy works but an automatic group is unstable, check whether its health-check URL is reachable, whether the check interval is too short, and whether its priority suits your use case. See Proxy Group Types Compared for the differences between URL testing, failover, and load balancing.
When a Rule Matches: Check DNS, the Proxy, and Certificates in Order
If the logs show a DNS resolution failure, first identify what failed to resolve: the subscription server, the remote proxy hostname, or the destination website. They may use different DNS paths. With Fake-IP, the client may return an internal mapped address to identify the domain later; seeing one doesn’t mean DNS is broken. If the issue affects only local network domains, check whether they need local DNS resolution and whether they should be excluded from Fake-IP mapping. Don’t route every domain through the same resolver because of one DNS error.
A timeout doesn’t mean the rule failed. Check the matched rule and outbound proxy in the connection log, then test the same destination with another known working proxy. If one proxy keeps failing, check its connectivity on your current network first. If certificate warnings appear only on HTTPS sites, check the system time and website address, then compare what happens without the proxy. Don’t bypass browser certificate warnings. For more detail, see Common Clash Log Errors and Why HTTPS Certificate Errors Occur with a Proxy.
If the cause is still unclear, keep a short reproduction: platform and client, routing method, the first step where the error appears, and how the same test behaves with the proxy off. Include only the log lines for that request, and remove subscription URLs and private network details. Restore the original system settings, then repeat the basic setup in the getting started guide. For specific issues such as failed updates or port conflicts, check the Help Center troubleshooting guide.