FLCLASH / SETUP & TROUBLESHOOTING
The Complete FlClash Guide
From installation and subscriptions to routing rules, TUN, and routine maintenance. Each chapter ends with a verifiable result you can build on in the next step.
The Quick Start Guide walks you through your first connection. This guide explains what each step changes and where to go back if a check fails. If you already have a working setup, jump to the FAQs, then find the chapter that matches what you’re seeing.
Core Concepts: Entry, Decisions, and Egress
The Interface, Core, and Configuration Each Have a Role
FlClash is a Flutter-based client that manages configurations and displays settings and connection logs. The mihomo core receives traffic, matches rules, and establishes outbound connections. If the interface opens, that only confirms the app started. If the core loads a configuration, that only confirms it passed the current load process. Check connection logs to see whether an app’s request reached the core, and check the request result to see which route it took. Don’t treat one green status indicator as proof that the entire path works.
Configurations can come from local files or subscription updates. It helps to distinguish three types of objects: proxies define how to connect to a service, proxy groups determine which members can be selected for egress, and rules assign requests to policies. For example, a rule may send requests to a group named “Manual Selection,” with a particular proxy selected in that group. Changing the group member won’t change the rule; changing the group a rule points to won’t alter the proxy’s connection settings.
Trace a Typical Web Request
A browser may follow the system proxy settings or use a proxy configured directly in the browser. The core can choose an egress route only after a request reaches its local proxy port. If an app connects directly, the core can’t select a policy for it. By contrast, DIRECT in the core’s logs means the request did reach the core, which then connected to the destination directly. Both paths can show the same public IP, but DNS handling and troubleshooting differ. A public IP alone can’t confirm whether an app is using the client.
Desktop clients may also use a TUN virtual adapter to route traffic through the core when it meets the system’s routing conditions. TUN changes the entry point, not the definitions of rules or proxies. For your first check, use the narrowest entry point available: send a request from an app known to support proxies, then find that same destination in the connection view. If it fails, you only need to check whether the app used the right port and whether the core received the request—not diagnose system routes and virtual adapter status at the same time.
Separate DNS Resolution from Connectivity
DNS maps domain names to IP addresses, but resolving an address doesn’t mean the server is reachable. Conversely, successfully connecting to an IP doesn’t prove DNS is working or that a domain-based rule matched. If an app resolves a domain first and sends only the IP to the core, whether a domain rule can match depends on whether the core can recover the domain through mapping or another mechanism. When documenting a failure, note the domain or IP used, the test app, the entry point, and the mode—not just “the site won’t load.”
A reusable baseline works like this: with the virtual adapter off, confirm your regular network can reach a known-working site. Then connect through the client, repeat the same request, and check that it appears in the connection view. If you only see an old entry, close the test page and make a new connection; browsers can reuse existing connections, so refreshing may not trigger a new rule check. Once the baseline works, expand testing to apps that need a proxy rather than routing every app through the client right away.
Choosing a Client: Platform, Architecture, and Configuration Needs
Check Installation and Runtime Requirements First
For a platform with a supported installer, or if you want a graphical client on desktop and mobile, Clash Plus is the top pick. Choose FlClash on a supported platform if you’re following this guide’s FlClash steps or already manage configurations with FlClash. On Linux, you can also start with Clash Verge Rev, recommended in the download center. For a server or router, consider the standalone mihomo core. It requires you to manage the configuration, process, and traffic entry point yourself; it isn’t a lightweight installer for a graphical client.
On desktop, check your system information to confirm the architecture. Apple silicon uses ARM64; Intel Macs use x64. On Windows, check System Information for the system type rather than relying only on “64-bit.” On Linux, check the package format as well as the architecture: renaming a Debian-based package won’t make it compatible with another distribution. If the download center doesn’t list a build for your architecture, revisit the client comparison and choose another option. A file being available for download doesn’t mean it’s compatible.
| Platform | Recommended path in this guide | Check before choosing |
|---|---|---|
| Windows | Top pick: Clash Plus; FlClash is another option | System architecture and local permissions |
| macOS | Top pick: Clash Plus; FlClash is another option | Apple silicon or Intel |
| Android | Top pick: Clash Plus; FlClash is another option | Processor architecture and VPN authorization requirements |
| iOS | Clash Plus; install from the app store | System requirements and subscription compatibility |
| Linux | Recommended: Clash Verge Rev; FlClash is another option | Distribution, package format, and desktop environment |
File extensions alone don’t establish configuration compatibility
Proxy and rule definitions in the same YAML file may be portable, but the selected group, autostart setting, and permissions in a client’s interface are often stored in that app’s own data. Even if two clients use the same core family, confirm that the subscription format is supported, required rule sets can be read in the new environment, and referenced local files exist. Start by importing the main configuration and verifying a simple rule match, then restore overrides one at a time. Don’t copy the old app directory over the new client’s data.
When migrating from Clash for Windows or ClashX Meta, treat the old client as an archive: save local configurations and custom rules you’re entitled to keep, note the selected groups and proxy ports, then turn off the old client’s system proxy and autostart. Keep the old configuration until you’ve confirmed the new client works on its own. Don’t let both clients change system settings at the same time. For migration steps, see the migration guide for Clash for Windows after its discontinuation.
Verify Your Choice with Two Apps
First, use a browser to check a web request you can see in the connection view. Then test an app you use regularly and see whether it follows the system proxy. If the second app has no connection log, look into its proxy settings and protocol requirements rather than assuming every app can use the same entry point just because the browser works. On mobile, also check how many VPN connections the system allows at once. If your device already has a work-managed network service, confirm the management requirements before changing the existing connection.
Installation and First Launch: Keep the Test Setup Simple
Record Your Current Network Settings Before Installing
On a device that has used proxy software before, note whether the system proxy is enabled, whether a manual proxy address is set, and whether another VPN is running. A work network may require an existing proxy or security tool; don’t clear those settings as your first troubleshooting step. On a personal device with an old client, use it to turn off the proxy or virtual adapter it configured, then exit normally. Open a browser and visit a site that usually works without a proxy. Record the result as your pre-install baseline.
On desktop, install the package for your chosen platform. On first launch, open the interface but don’t enable autostart, the system proxy, or TUN yet. If Windows requests permission, determine whether it’s for installation, authorization of a virtual adapter service, or simply opening the app. A regular proxy listener doesn’t need administrator privileges just because a port is in use. If the address is already in use, identify the existing process or choose an unused port for both the client and the test app. If security software raises an alert, read the details, verify the download source, and follow your device’s management policies. Don’t disable protection across the board just to complete the installation.
On macOS, if the installer opens but the app won’t launch, first check that the package matches your chip. Then read the specific system prompt and follow the normal authorization process; don’t turn off system security globally. On Linux, if the graphical client starts but changing the system proxy has no effect, check whether your desktop session supports that setting and whether the target app reads desktop proxy settings. Terminal apps, graphical apps, and background services may use different network paths, so one can’t stand in for another during testing.
Confirm Mobile Permissions as Needed
On Android, install the package that matches your device’s architecture and confirm that the configuration screen opens. The first time the client takes over traffic, Android may ask you to approve a VPN connection. You can still browse the interface if you deny it, but that doesn’t mean traffic is being routed through the client. If the connection keeps dropping, check whether another always-on VPN is enabled or whether work-profile network restrictions apply. Only consider background operation after the rules and configuration are working, so you don’t confuse an installation issue with battery optimization.
Check the Listener via Loopback
On desktop, load the minimal local configuration from Chapter 6 and start the core. Then use the command below to test the HTTP proxy entry point. On Windows, if your shell maps curl to another tool, call curl.exe explicitly. The example assumes the mixed port is 7890; if the interface shows a different port, change only the port in the command. The request is expected to go DIRECT through the core and is useful when your regular network can reach the test domain.
curl --proxy http://127.0.0.1:7890 --connect-timeout 5 --max-time 15 --head https://example.com
If you immediately get a local connection refused error, check that the core is running and the port matches, then check the listening address. If the request times out, don’t assume the proxy node is at fault. Check the connection view to see whether the core received the request and whether it failed at the proxy entry point, while connecting to the destination, or while waiting for a response. If the command gets a response, verify the corresponding log entry too—that confirms the response came through the local entry point you just enabled.
Importing Subscriptions: Identify the Format and Active Configuration
Distinguish the URL, Its Response, and the Configuration Source
A subscription URL is an endpoint for retrieving content, not a proxy itself. Similar-looking URLs may return Clash-compatible YAML, encoded proxy text, or a regular web page if authorization has expired. Don’t judge importability by whether the URL ends in a file extension. On the provider’s management page, look for an endpoint explicitly labeled Clash or a compatible format. If the provider gives you a proxy list, the client may support only certain formats. Renaming arbitrary text to .yaml won’t turn it into a complete configuration.
A full YAML configuration usually includes proxies, proxy groups, and rules. A proxy provider file may contain only a proxy list, while a rule provider file contains standalone rule data. The first can be imported as a complete configuration; the latter two generally need to be referenced by a main configuration using the appropriate type. Base64 is an encoding, not a way to turn a proxy list into a complete policy configuration. A single URI usually describes one proxy, not a subscription with routing rules. To compare response types, see the guide to subscription URLs and formats. Never paste a real subscription URL into an online converter or public Q&A.
Follow Three Steps: Import, Select, Verify
In FlClash, add a remote configuration from the configuration page, enter the subscription URL from your provider, and wait for it to load. For a local file, use the file import option instead of entering a disk path in the remote URL field. After import, return to the configuration list, make the new entry active, then open the proxy page and confirm the group names and available members belong to that configuration. To tell similar entries apart, label their source and purpose if the client allows it—but don’t include the subscription URL or its access credentials in the name.
Next, select a group member and make a new request using the same browser and proxy entry point. Check the connection view for the matched rule, then compare the final egress. If the old group is still in use, return to the configuration page and confirm that the active selection changed. If the group changed but an old connection is still open, close that test connection and try again. Don’t change modes and proxies or clear system settings just to confirm an import; that turns a simple configuration-selection issue into a hard-to-reproduce problem.
Troubleshoot Subscription Updates by Stage
A timeout while fetching may mean the client hasn’t received any data yet. Check whether your current network can reach the subscription service, whether the URL was copied in full, and whether accessing it depends on the old configuration—creating a loop. If the logs show an authorization failure, check the subscription status with your provider. For a parse error, check the response type and configuration format. If the error points to a proxy group, also confirm that every referenced member exists; fixing indentation on the reported line alone may not be enough.
After an update, first confirm that the expected group member is still selected. The provider may have renamed groups, removed old proxies, or reordered rules, so a previously saved selection isn’t proof that it’s still valid. Keep your overrides separate from the upstream configuration. If you must edit a subscription copy directly, save it as a separate local configuration and clearly note which changes you’ll need to merge manually later. For the interface steps, see the subscription import section of the tutorial.
Proxy Modes: Compare Rule, Global, and Direct
Set the Entry Point Before Comparing Modes
The system proxy is one way for apps to connect. It tells apps that honor system settings where to find a proxy, but it can’t force every process to use one. Manually specifying a proxy affects only the target app, which is useful for narrowing down a problem. Rule, Global, and Direct modes describe how the core handles requests it receives; they’re separate from the system proxy toggle. Even in Global mode, traffic that never reaches the core won’t use a different egress route.
For an initial comparison, use an explicitly configured proxy: first set it in the browser and confirm the request appears in the connection log. Then remove the browser’s manual setting, enable the system proxy, and test again. If the first test works but the second produces no connection log, check whether the browser uses system settings and whether a proxy bypass list applies. Don’t change the same outbound rule. Before testing, record the original system proxy settings. When finished, let the client restore them or put them back yourself so they don’t point to a local process that has already exited.
| Mode | How the core handles routed traffic | Best for |
|---|---|---|
mode: rule | Matches rules in order and uses the policy from the first match | Checking the actual route for each destination |
mode: global | Sends requests using the current Global policy selection | Ruling out mistakes in regular rule-based routing |
mode: direct | Connects directly to the destination through the core | Keeping the same entry point while comparing direct and proxied results |
Compare One Method at a Time
Start in Rule mode, make a new connection, and note the matched rule, policy group, and final member. Then switch to Global mode and confirm the Global policy has the intended proxy selected. Selecting a member in a group in Rule mode doesn’t mean the same member is selected for Global mode. Close the original test page and make a new connection. If Global works but Rule doesn’t, compare the actual egress in Rule mode, then check earlier rules and the fallback policy instead of blindly updating the entire subscription.
If the same proxy can’t reach a destination in either Rule or Global mode, but Direct can, first investigate the proxy’s outbound connection and how it handles that destination. If needed, test with just one other group member. Direct mode still routes through the core and may be affected by its DNS settings; it isn’t the same as fully disconnecting the client. To test the system’s direct network path, turn off the test app’s manual proxy, disable client traffic interception, and retry on the original network.
A Latency Test Doesn’t Prove a Site Is Reachable
A proxy latency test uses a specific test address and method; it shows only that the probe completed within a certain time. A target site, long-lived connection, and real download may use different paths, so a successful quick probe doesn’t guarantee access to the site you need. Checking your public IP can help confirm the egress route, but multiple proxies may share one IP, so an unchanged address doesn’t necessarily mean the proxy didn’t change. The more reliable check is to correlate a new app request, the core’s connection log, and the destination’s response from the same test. For the limits of latency tests, see First Connection and Verifying That It Works.
Routing Rules: Match Conditions, Order, and Fallbacks
Read Rules from Top to Bottom
In Rule mode, the core checks rules in configuration order and uses the policy from the first match. If you need an exception for a specific domain, put the exact match before a broader suffix rule. A more specific rule lower down won’t skip an earlier match. Don’t rely on unspecified behavior when no rule matches; include an explicit MATCH fallback so it’s clear where uncategorized requests are expected to go.
DOMAIN matches an exact domain and is useful for a single exception. DOMAIN-SUFFIX matches the suffix and its subdomains; it doesn’t search for a substring anywhere in the name. IP-CIDR and IP-CIDR6 specify IPv4 and IPv6 ranges, respectively. Before writing an address-based rule, check whether the app sends a domain name or an IP address to the core. Some IP rules may trigger a DNS lookup; no-resolve prevents the rule from actively resolving a domain. It doesn’t mean domain traffic can never match a known address.
Practice with a Configuration That Doesn’t Depend on a Subscription
Save the content below as a local test configuration. It listens only on the loopback address for testing on this device and uses no proxies, external rule sets, or geodata. Point the test app explicitly to the mixed port. A request to example.com should match the exact rule and go DIRECT; a request to www.example.com should match the suffix rule and be rejected. Verify the rejected request using the rules and egress shown in the client—not the web page returned by the test domain. When you’re done, switch back to your original configuration; don’t use this test setup for everyday routing.
mixed-port: 7890
allow-lan: false
bind-address: '127.0.0.1'
mode: rule
log-level: info
rules:
- DOMAIN,example.com,DIRECT
- DOMAIN-SUFFIX,example.com,REJECT
- MATCH,DIRECT
If another app is using the port, change the first field and update the test app to match. Don’t resolve a conflict by exposing the listener to your local network. If a subdomain still appears to load, check whether the test app is actually using the proxy, whether the page came from cache, and whether Rule mode is still active. Then swap the exact and suffix rules and reload. The suffix rule should now reject both the root domain and the subdomain. This confirms the core loaded the configuration you changed.
Move from a Local Example to Real Policy Groups
When adding a rule that points to a proxy group, copy the exact group name from the active configuration to avoid differences in spaces or punctuation. Then check the matched rule, selected group, and final proxy in the connection view. If the configuration contains RULE-SET, distinguish the reference name in the main configuration from the content fetched by the provider, and confirm the provider type matches the data format. If a rule change affects more traffic than expected, undo it and test again. Then retest in this order: one domain, a neighboring subdomain, and one unrelated destination.
A web page may load its main document, images, login flow, and static assets from different domains. The main document matching the expected policy doesn’t mean the entire app uses the same egress route. If a page loads but one feature fails, don’t immediately add an overly broad suffix or IP range. Identify the destination involved in the failure, then decide whether it should be added as an exception and which group it belongs in.
TUN Virtual Adapter: Route More Traffic
Decide Whether You Need a Broader Entry Point
Consider TUN when a target app doesn’t support manual proxy settings and doesn’t follow the system proxy. TUN uses a virtual adapter and system routes to send some traffic to the core. Whether it captures a particular destination depends on the platform implementation, routing scope, and app behavior. The selected egress mode still applies; switching to a virtual adapter won’t fix a bad rule. Before enabling TUN, make sure you have a configuration that worked with an explicitly configured proxy. Otherwise, it’s hard to tell whether traffic interception failed or the outbound route was already broken.
On desktop, note the current system proxy and the state of other network tools. If the device has a managed VPN or enterprise security component, confirm that simultaneous use is allowed. Don’t uninstall drivers, delete routes, or change firewall policies yourself. In a personal test setup, first turn off the system proxy configured by the client and remove any manual proxy from the app, leaving TUN as the only entry point for comparison. If you later use both entry points, verify each traffic path separately. A browser log from the system proxy doesn’t prove that TUN is working.
Know Which Setting Addresses Which Problem
tun.enable controls whether the core’s TUN configuration is enabled. tun.stack selects the network stack; common values include system, gvisor, and mixed. Keep the client’s default unless you have a reason to change it; switching stacks isn’t a substitute for checking permissions. auto-route controls automatic route configuration. Even if the virtual interface is created successfully, a destination may fall outside its routes. The client may generate or override these parameters from its interface, so troubleshoot using the active settings, not just the subscription source file.
dns-hijack can direct eligible DNS requests to the core, but that doesn’t mean it will intercept every app’s built-in encrypted DNS. If only domain-based access breaks after enabling it, first check whether the app uses its own resolver, then determine whether the core’s upstream DNS lookup failed. If local network resources stop working, confirm that the system can still route to the target subnet, then check the core’s logs for a corresponding request. Don’t treat “Allow LAN connections” in the dashboard as the fix. That setting controls whether other devices can access this device’s proxy listener; it isn’t the route from this device to a LAN destination.
Test Three Destinations and Keep a Way Back
After enabling TUN, use the target app to request, in order: a site that normally works directly, a site that should match a proxy policy, and a local network resource you’re authorized to access. Make a new connection each time and note whether it reached the core and which egress it used. If all destinations fail, check for permission, virtual interface, or routing errors in the interface, then turn off TUN to restore the entry point you already verified. If only the target app fails, check whether it produced no connection log or a log with the wrong egress, and compare the result with a browser.
On mobile, the system VPN icon means the system established a VPN connection; it doesn’t mean every app is within its traffic scope. If problems start only after changing networks or locking the screen, run the same test in the foreground and after resuming use. Record the system VPN status and client logs. If a work profile or always-on VPN restriction applies, keep the management settings intact and follow the device’s supported procedures.
Routine Maintenance: Updates, Rollback, and Common Issues
Make Updates Reversible
The client, its core, subscription content, and external rule data can all be updated, but you don’t need to change them all at once. Save a known-working configuration first. Record the current mode, manually selected group member, system proxy and TUN status, and where custom overrides are stored. A screenshot of the dashboard alone isn’t enough to restore these settings. Configuration files may contain access parameters or service credentials, so keep backups somewhere secure and don’t attach them to public support requests.
Before updating a subscription, note one destination that should connect directly, one that should use a proxy rule, and the current traffic entry point. Repeat the same tests after updating and confirm that the new group names, members, and default egress behave as expected. If something breaks, save the update as a separate configuration and switch back to the previous one for testing; don’t rush to clear the app’s data. If the old configuration no longer works or the update changed the data format, don’t overwrite the original directory. Preserve the current state and import a usable copy through a supported interface.
Record Where the Failure Starts
Troubleshoot in order: entry point, core, egress, destination response. If the app has no connection log, check the browser’s proxy settings, loopback port, or virtual adapter status. If the wrong rule was selected, check the mode, rule order, and active configuration. If the expected egress was selected but there’s no response, try another destination from the same app to see whether the problem is with one site or one proxy. Write down a reproducible sequence, such as: “Turn off TUN, keep the app proxy enabled, reopen the test page; the connection log matches the specified group, but the request times out.”
Collect logs around a single new connection. Note the local test time and network, then gather only a small number of entries from around that time. Before sharing, remove subscription URLs, proxy credentials, private domains, and unnecessary local network addresses. Keep only the error category, match type, and test steps. Don’t leave verbose logging on indefinitely. An error that appears after a network switch shouldn’t be treated as the same evidence as a connection log from before the switch.
Frequently Asked Questions
Why Does My Browser Lose Internet Access After I Exit FlClash?
Check whether the system proxy or the browser’s own proxy settings still point to a loopback port that’s no longer open. If you used a virtual adapter, confirm the client released traffic interception normally, then check the system’s network status. Restore the settings you recorded before installation. Don’t disable every proxy on a network that depends on a work proxy.
The Subscription Updated Successfully. Why Am I Still Using the Old Egress?
An updated entry isn’t necessarily the active configuration, and existing connections may keep using their previous egress. Confirm the active configuration and selected group member, then close the test connection and retry. If the rule set was updated too, check which rule the new connection actually matched instead of comparing group names alone.
Where Should I Start If Things Break Only After Switching Wi-Fi Networks?
First disable traffic interception and confirm the new network works and any required sign-in is complete. Then restore the same verified configuration and test the entry point and egress. If only domain names fail, move to the next chapter to distinguish app DNS from core DNS.
Wrap up routine maintenance with a short record of the device, test entry point, result of the new connection, and the configuration you can restore. There’s no need to reinstall or repeatedly change settings every day. When a new issue comes up, first reproduce a known-working path from your notes, then expand testing to the app that’s actually failing.
Next Steps: DNS, Overrides, and Sharing Across Devices
DNS and Fake-IP: Find Out Where Resolution Happens
For advanced troubleshooting, map the resolution path first. An app may use the system resolver, its own encrypted DNS, or pass the domain to a proxy. A terminal lookup doesn’t necessarily show what the browser used, and seeing a domain in the browser doesn’t mean the system resolver handled it. Fix one test app and one entry point, then check whether the core received the relevant DNS request, knows the domain, and applied a rule. If you use different apps before and after a test change, you can’t attribute the result to the configuration alone.
When core DNS is enabled in fake-ip mode, eligible queries can return a mapped address that the core uses to associate later connections with the domain. Don’t treat that address as the destination service’s real IP when troubleshooting. If an app bypasses the core and tries to reach the mapped address over the system network, it may not reach the destination. By contrast, redir-host returns the resolved IP address, but it doesn’t guarantee that the core can recover the domain for every later connection. Choose a mode based on the app’s DNS path and the rules it actually matches.
Printers, storage services, and local discovery protocols shouldn’t be handled the same way as public domains. First confirm that the name resolves on the network responsible for it. Then check whether the destination belongs in fake-ip-filter or should use a specific resolver. A filter entry doesn’t change which upstream server is responsible for resolving a domain. Verify upstream selection and whether a mapped address is returned as separate steps. After making a change, have the test app send a new query. Restart it or clear the relevant cache if needed; don’t judge the result using a response from before the change.
Split the Configuration Before Reusing It Across Devices
Keep shareable proxies, groups, and rules in the main configuration; leave listening ports, local paths, virtual adapter settings, and permissions to each device. Even if a computer and phone use the same subscription, verify the active mode and group member on each. If you use proxy-providers or rule-providers, confirm each device can access the source and that the path, format, and parsing behavior are supported by its client. Don’t copy desktop file paths directly to a phone or assume both platforms use the same persistent storage location.
Overrides are useful for a small number of clearly defined local changes, such as adding a controlled domain exception before upstream rules. Add one change to a working copy, load it, and check the resulting rule order before comparing test results. Clients may replace, append, or insert arrays; matching field names alone don’t tell you which behavior applies. If the entire rule list was replaced, restore the previous configuration first, then use the merge method supported by the client. Don’t keep adding exceptions while the fallback policy is unclear.
Define Acceptance Criteria for Configuration Changes
For each advanced test, use the same set of checks: one request that should go direct, one that should use a specified group, one that reproduces the issue, and one local service request if needed. Record the entry point, domain or IP, matched rule, and egress. If a test fails, roll back only that change and try again. If it passes, apply the change to a second device and verify it there too. Being able to predict and explain each request’s path is more useful than keeping a larger configuration that you can’t reproduce.