mihomo / Configuration Reference
Clash AdvancedConfiguration Guide
From rule matching, DNS resolution, and traffic routing to subscription maintenance and local control.
For a first install, subscription import, or connection check, start with the Quick Start Guide. This page is a reference: each chapter explains where settings take effect, how to verify them, and what to undo if something goes wrong. If you haven't installed a desktop client yet, visit the downloads page for our recommended Clash Plus client and other options by platform. The examples below are for the mihomo core; client interfaces and settings may differ.
rulesWhich rule matched the request?proxy-groupsWhich outbound was the group actually using?dnsWhich resolver handled the query?tunDid the connection reach the core?
mihomo -t -d .Test the configuration in the current directory
Test baseline: Back up a working configuration first, then confirm which file the client loads and which directory the core uses. Each code sample demonstrates standalone fields. When merging one into your config, edit existing keys rather than adding duplicate top-level keys. Example domains illustrate matching syntax; replace them with your own test targets when verifying real traffic.
01 / Outbound Selection
Proxy Group Types in Practice
Rules choose the group; proxy groups choose the outbound
A proxy group selects an outbound; it does not identify traffic. In rule mode, the core checks rules in order and uses the first matching target. That target can be a built-in action, a proxy, or a group name. If a rule selects a group called "Work Traffic," that group then picks an outbound from its candidates. Changing the group's selection does not change the rule, so connections that never match the group are unaffected. When troubleshooting, find the matched rule in the connection log, inspect the outbound chain, and only then change the group's selection.
Keep a manual selection layer in your everyday configuration. Have domain rules reference stable group names, with automatic selection, backup routes, and direct connections one level below. This lets you swap routes or temporarily pin an outbound without editing domain rules one by one. Decide explicitly whether DIRECT belongs in a candidate list: include DIRECT for traffic that may need a temporary direct connection, but don't use it as an implicit fallback for traffic that must use a specific outbound. Different types of traffic can use different groups; file uploads and general browsing, for example, have different tolerances for route changes.
Choose an automatic group for the job, not a global ranking by probe latency
| Type | How It Selects | Best For |
|---|---|---|
select | User selects a candidate | Reproducing issues; pinning traffic to an outbound |
url-test | Selects based on probe latency and switching tolerance | Everyday browsing with interchangeable routes |
fallback | Selects the first available candidate in order | Traffic with a defined primary and backup route |
load-balance | Distributes connections across available candidates according to a policy | Independent connections that can use multiple outbounds |
Use url-test to choose among routes with similar purposes. tolerance is measured in milliseconds and helps prevent switches caused by minor latency fluctuations. fallback follows candidate order and availability; it won't skip an available first candidate just because the second is faster. Load balancing doesn't split a single file download across routes, nor does it guarantee that every connection from one account uses the same outbound. For logins, payments, or admin tasks that depend on a consistent outbound IP, use a manually pinned route or a primary/backup group suited to the task.
Use a stable probe URL with a small response that each candidate can reach. A dedicated endpoint that returns an expected status code can work, but reaching that endpoint doesn't prove the service you care about is available. Probe time doesn't measure sustained throughput, and a successful probe doesn't mean the destination accepts that outbound. If every probe fails, first check whether the probe domain resolves and whether requests are being redirected; then investigate the routes themselves. Probe intervals are in seconds. Shorter intervals detect changes sooner but increase wake-ups on mobile devices, route requests, and log noise.
Keep a manual route you can use to verify automatic selection
The examples below refer to the local route collection created in Chapter 6. Add valid proxy entries to that file and confirm there is at least one candidate before merging the group settings. The manual group below prefers the automatic group but also lets you choose individual routes from the same collection. Put real traffic rules before the catch-all rule; the direct catch-all here is only to ensure the example domain doesn't affect other traffic during testing.
mode: rule
proxy-groups:
- name: Auto Select
type: url-test
use: [Primary Routes]
url: https://www.gstatic.com/generate_204
interval: 300
tolerance: 80
- name: Work Traffic
type: select
proxies: [Auto Select]
use: [Primary Routes]
rules:
- DOMAIN-SUFFIX,example.org,Work Traffic
- MATCH,DIRECT
For the initial check, start a new connection to the same test domain and note the matched rule, group, and actual outbound. Point the group to automatic selection, then switch it manually to a verified candidate. Close existing long-lived connections and try again. Browser connection pools, ongoing uploads, and persistent messaging connections may keep using an old connection; comparing results without reconnecting can make connection reuse look like a setting that didn't take effect. If the runtime panel's selection differs from the file's default, check whether the client restored a previously saved group choice.
Narrow the issue down to one layer before changing settings. If the automatic group keeps switching while a manually pinned route is stable, compare probe fluctuations and the switching tolerance. If probes fail but the pinned route can reach the service, investigate the probe target first. If the rule never matches the group, there's no need to adjust probe settings. If every candidate is unavailable, confirm the provider loaded, its filters didn't remove all candidates, and each route can establish a connection. For a comparison of primary/backup and load-balancing behavior, see How Automatic Proxy Groups Work.
02 / Matching Data
Manage Rule Sets with Providers
Maintain match criteria separately from actions
Rule sets are a good place to keep changing match criteria; the main config should still control rule order and what happens on a match. rule-providers defines the data source, matching behavior, and format. rules references a set with RULE-SET and specifies the action. A set named "Local Exceptions" doesn't automatically send traffic direct; the action comes from the rule that references it. Keeping the two separate lets you change a data source without losing your traffic policy and makes it easier to tell whether a list's contents or rule order changed.
Maintain your own exceptions separately; don't edit cached copies of remote rule sets. The cache may be overwritten on the next update, and local edits are hard to trace in the final configuration. Start with narrow exceptions whose effects are clear, then add broader, frequently updated sets, and put catch-all rules last. If a subdomain must use a proxy, put its exact-domain rule before a broader direct-connection set. Once a broad rule matches, a correctly written exception later in the list won't be used. When adding a set, prepare one domain that should match and one that shouldn't.
Match the behavior to the file format
| Behavior | List Contents | Common Mistake |
|---|---|---|
domain | Domain patterns, such as +.example.org | Putting complete routing rules in a domain list |
ipcidr | IP ranges, such as 192.0.2.0/24 | Expecting it to match domains directly |
classical | For example, DOMAIN-SUFFIX,example.org | Adding a proxy group name to each entry |
behavior describes how entries in the list are matched; format describes how downloaded or on-disk data is decoded. One doesn't replace the other. Plain text usually has one entry per line. For YAML, write a payload list as required by the rule provider instead of copying the rules section from a full config. For binary rule files, make sure the producer's output type is supported by the core; changing the file extension won't convert the format. Don't add an outbound name to the rule set itself; outbounds belong in the main config where the set is referenced.
Verify a local file before enabling remote updates
Create rules/local-domains.txt in the core's working directory, add the first snippet, then merge in the second configuration block. The example deliberately uses different actions for a match and the catch-all so you can verify them in the connection log. Use the reject catch-all only in an isolated test config; when merging this into your everyday config, keep your existing rules and catch-all, and insert local exceptions where they belong. Once the local set works, declare remote lists with type: http, provide the actual source in url, and give each set its own cache path and update interval in seconds.
+.example.org
mode: rule
rule-providers:
local-domains:
type: file
behavior: domain
format: text
path: ./rules/local-domains.txt
rules:
- RULE-SET,local-domains,DIRECT
- MATCH,REJECT
A cold-start test tells you more than manually refreshing an existing list. A cache may still appear in the panel even if its source is unreachable; loading it for the first time in a clean test directory checks domain resolution, download access, write permissions, and format. If the remote source must use a particular outbound, don't make that outbound's availability depend on a rule set that hasn't been downloaded yet. First ensure basic resolution, a working outbound, and a clear update path; then use the remote list for traffic routing. If the file downloads but its entries won't load, check whether the response is actually a login page, error page, or data in a different format.
Treat failed updates and unmatched rules as separate issues
When a rule appears not to work, first check whether the running provider contains entries, then check which rule matched the request. If the provider is empty, investigate the file, permissions, and update logs. If the set has entries but doesn't match, check whether the input is a domain or an IP address and whether an earlier rule caught it. IP-based rules may trigger extra resolution when no destination IP is available. Where matching shouldn't trigger a DNS lookup, consider adding no-resolve to applicable IP-based references, keeping in mind that they can't match an address that hasn't been resolved.
Keep a working copy before updating rule sets in bulk, and record each set's source, behavior, format, and priority. After an update, test a narrow exception first, then a broad match, and finally a request that should hit the catch-all. If only one business domain regresses, you don't have to roll back every subscription right away. Restore that traffic with a precise local rule first, then confirm whether the remote set actually changed. Find the difference before removing the temporary exception so patches don't accumulate until no one knows which rule controls the traffic.
03 / Name Resolution
Optimize DNS Configuration
Find out who answers queries before changing upstreams
The system resolver, a browser's secure DNS, and mihomo's built-in DNS can all be active at once. Enabling DNS in the core doesn't mean every query goes through it: an app may send its own encrypted queries, while the desktop OS continues to use a resolver provided by the network. Start with one test app. Confirm whether its traffic enters the core through the system proxy or a virtual adapter, then query the core's listening port directly at a specific address and port. A working website only confirms that particular traffic path; it doesn't prove the system DNS setting changed.
Keep a working upstream as your baseline and change one variable at a time. First fix the resolution mode and interception method, then check whether the upstream is reachable on the current network, returns the expected records, and handles local or corporate domains correctly. Don't change the upstream, enable TUN, and turn on Fake-IP all at once. If something breaks, it'll be hard to tell whether the upstream is unreachable, queries aren't reaching the core, or the app received an unusable virtual address. Private names used by LAN services shouldn't share an untested forwarding path with public domains.
Separate bootstrap, proxy endpoint, and ordinary DNS queries
default-nameserver resolves the hostnames of other DNS upstreams during startup. Use addresses that don't depend on the same DNS resolution chain. proxy-server-nameserver is specifically for resolving proxy server hostnames, so the core can find a proxy endpoint before establishing an outbound connection. nameserver provides the usual upstreams; add nameserver-policy when specific domains need a different resolution view. These fields aren't interchangeable options in a round-robin list. Check each one against the type of query it handles.
A common startup loop looks like this: the proxy server's address needs DNS resolution, but the resolution request is supposed to go through that same proxy. Don't start by shortening timeouts or adding more backup addresses. Give the proxy endpoint its own reachable resolution path. If you later enable respect-rules, confirm that the DNS upstream connection itself matches the expected rule. With this option on, traffic rules also affect upstream requests, potentially rerouting an address that could previously be reached directly. For initial troubleshooting, establish a clear, independent path, then add constraints one at a time.
dns:
enable: true
listen: 127.0.0.1:1053
enhanced-mode: redir-host
respect-rules: false
default-nameserver: [223.5.5.5]
proxy-server-nameserver: [223.5.5.5]
nameserver:
- https://dns.alidns.com/dns-query
nameserver-policy:
'+.example.org': [223.5.5.5]
This snippet listens only on the local machine and uses real IP answers as a baseline, making it easy to inspect the upstream records directly. If dig is available in your test environment, use the command below to query the specified listening port. The example upstream isn't recommended for every network; choose a service that's reachable locally and meets your requirements. You don't need to change system or browser DNS settings for this test. Querying the specified port lets you test the core's DNS independently.
dig @127.0.0.1 -p 1053 example.org A
dig @127.0.0.1 -p 1053 example.org AAAA
Cross-check the response, address family, and connection
If a query times out, first distinguish a local listener that never started from an upstream that didn't respond. For the former, check whether the config loaded, whether another process is using the port, and whether the test address matches. For the latter, check bootstrap resolution, upstream connectivity, system time, and certificate validation. If you get a response indicating the domain doesn't exist, note which upstream answered and compare it with the expected DNS view; don't confuse that response with no response at all. If a corporate domain resolves only through an internal resolver, route its suffix to an internal upstream that's reachable on the current network.
If you get an address but the service is still slow or unavailable, separate successful resolution from successful connectivity. Check A and AAAA records individually and see whether the app actually uses a reachable address family. Disabling IPv6 DNS answers can be useful for comparison, but it doesn't disable IPv6 in the operating system. Cached answers, direct IP connections, and app-level resolution can still produce IPv6 connections. After changing networks or domain policies, query again and establish a new connection. If needed, clear the relevant caches at the app, OS, or core level rather than clearing everything at once and losing track of the source.
Don't assume a certificate error is a DNS issue: Check the target domain, system time, and certificate actually returned, then compare behavior with and without the proxy. For a step-by-step guide, see Troubleshooting HTTPS Certificate Errors.
04 / Traffic Capture & Address Mapping
TUN & Fake-IP
TUN captures traffic through a virtual interface; Fake-IP maps domains to virtual addresses
TUN creates a virtual network interface and passes packets that match routing conditions to the core. It can cover apps that ignore system proxy settings, but it doesn't automatically capture every interface or protocol in the same way. Fake-IP is a DNS response mode: the core returns a virtual address for a domain and stores the mapping, then recovers the domain when it receives a connection to that address. The two are often used together, but they're separate settings. Enabling a virtual interface won't automatically send a browser's encrypted DNS queries through the core.
A common failure occurs when an app receives a virtual address, but its later connection doesn't reach the same core that stored the mapping. For example, an app may keep a previous virtual response after you switch back to the system proxy; another client instance may not have the same mapping. It can look like DNS answered correctly but the site is unreachable. Check the address the app received, where routing sends it, and whether the connection log recovers the expected domain. One DNS query alone can't confirm that the mode is working.
Test traffic capture first, then change the DNS mode
For your first TUN test, keep the DNS upstream and real-IP response mode that you verified in Chapter 3. Enable traffic capture, then use a new connection from an app that normally ignores system proxy settings. Confirm the traffic appears in the core's connection log and that LAN services remain reachable. If the app still doesn't appear, check OS permissions, the default outbound interface, routing, and any other active VPNs first. There's no need to adjust the Fake-IP filter yet; virtual addresses aren't part of the test.
Once your TUN baseline is stable, change enhanced-mode to fake-ip and verify the address mapping. auto-route configures routes according to platform capabilities, while auto-detect-interface identifies the outbound interface. With multiple adapters, hotspots, or corporate VPNs, check the actual outbound route. The example intercepts traditional UDP and TCP DNS ports; it doesn't treat arbitrary HTTPS traffic as DNS. If the client manages these settings through a system service, driver, or VPN permissions, trust the runtime interface and routing state rather than a Boolean in the config file.
tun:
enable: true
stack: mixed
auto-route: true
auto-detect-interface: true
dns-hijack:
- any:53
- tcp://any:53
dns:
enable: true
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
fake-ip-filter:
- '+.local'
- '+.lan'
Merge the example DNS fields into your existing dns section and keep the upstreams you've already verified. The virtual IP range should not overlap with existing interface addresses, routes, or test network ranges. If it does, check which network owns the range before changing it. The example filter covers common local domain suffixes; those domains won't receive virtual addresses, but that doesn't automatically match them to a direct-connection rule. Multicast discovery, internal domain resolution, and ordinary unicast DNS are different things. If discovery stops working, separately check whether the OS and app are still sending and receiving on the right interface.
Fix the smallest exception first; roll back only if needed
If only a printer, shared folder, or specific login service fails, first note the actual destination the app uses. Add an exact domain or suffix to fake-ip-filter only after confirming the app needs a real IP address. If that address is still unreachable, investigate routing and traffic rules instead. A filter entry often won't help if the app bypasses the core's DNS and resolves names in its own process. For devices discovered via multicast, try connecting to a known address first to distinguish device discovery failure from connection failure.
Roll back one variable at a time: keep TUN enabled, switch to real-IP responses, then query again and establish a new connection. If the issue persists, disable traffic capture and check whether the system proxy and routes have returned to baseline. Retest after switching Wi-Fi, mobile networks, or a corporate tunnel; the default interface, internal DNS view, and network policies may have changed. If you plan to move traffic capture to a gateway, also verify forwarding, device gateways, and query sources. See OpenWrt Deployment and Network Topology Overview.
05 / Target Identification
Domain Sniffing
Add routing context only when a connection lacks a domain
Domain sniffing addresses a specific case: a connection has arrived, but its routing metadata contains only an IP address. The core can extract domain names from recognizable HTTP headers or TLS handshakes, and can also try to identify them in supported QUIC initial packets. It doesn't decrypt HTTPS content or reverse-resolve an existing IP address. If a domain is already known through an explicit proxy or a Fake-IP mapping, sniffing every connection usually isn't necessary. Check the connection log first and confirm that the missing domain is causing a request to fall through from a domain rule to an IP rule or catch-all.
Not every protocol provides a usable domain. When an app connects directly to an IP address, its handshake may contain no hostname. Encrypted Client Hello can hide the inner name, and the visible outer name may not be the service's domain. If an app uses a private protocol or doesn't send a recognizable initial packet on the expected port, broadening the sniffing scope usually adds noise. Start with a known TLS domain as a positive test and a service that genuinely connects by IP as a negative test. Judge the result by whether the matched rule and destination are expected, not by whether some string was captured.
Limit protocols and ports before considering destination overrides
The example below starts with common HTTP and TLS ports and tries to sniff connections that have only IP metadata. parse-pure-ip allows attempts to identify connections made directly to an IP; leave it off if you don't need it. override-destination is a separate decision. Keep it disabled initially so you can verify domain-rule matching without globally replacing the actual destination with a sniffed value. Enable overrides for a protocol only when the service needs a changed dial target, and verify the impact on both the original address and any re-resolution path.
sniffer:
enable: true
parse-pure-ip: true
override-destination: false
sniff:
HTTP:
ports: [80, 8080]
TLS:
ports: [443, 8443]
skip-domain:
- '+.local'
- '+.lan'
Use skip-domain for exceptions that can be identified by domain. For devices accessed at fixed IPs with no private domain in the handshake, use a comparison test to decide whether to add the supported destination-address exception skip-dst-address instead of adding more domain suffixes. A reverse proxy for private services may map multiple names to one address; a sniffed hostname and the original dial address aren't always interchangeable. Test internal services and custom ports to ensure sniffing adds routing context without changing an explicitly specified connection target.
Measure success by the matched rule, not by whether a webpage opens
Run an on/off comparison with the same test domain. First turn sniffing off, close existing browser or app connections, and open a new session. Record the observed domain, matched rule, and outbound. Then turn sniffing on and repeat the same steps. If the request moves from an IP catch-all to the expected domain rule, sniffing is working. If both results are the same, the domain may already be available from the incoming metadata, or the app's protocol or port may be outside the sniffing scope. Check the entry point and transport before enabling destination overrides.
If a browser sometimes matches a TLS rule and sometimes shows only an IP, check whether each connection uses TCP or UDP. Reused browser sessions or QUIC-based protocols can make the two tests incomparable. If you confirm that QUIC sniffing is needed, declare QUIC and the required ports separately under sniff, then repeat the same comparison. Expanding the TLS port list doesn't turn UDP traffic into TLS sniffing. If the required metadata isn't available, use an appropriate IP rule or the app's native proxy settings instead of assuming the domain can always be recovered.
Fix routing errors caused by sniffing
If an internal service starts using a business outbound after sniffing is enabled, first determine whether a newly identified domain matched an earlier rule or a destination override changed the connection target. In the first case, review rule priority and add a narrowly scoped exception. In the second, disable the override, keep domain identification enabled, and check whether the connection recovers. If sniffing only helps a few apps, restrict it to the protocols, ports, or traffic that need it instead of treating it as a universal fix.
Record sniffing changes separately from DNS changes. In real-IP mode, a request may rely on sniffing to recover its domain; after switching to Fake-IP, the domain may come directly from the mapping. When leaving Fake-IP, rules that previously relied on the domain may lose that input. Keep a set of test targets for both modes so you can tell whether a routing change came from different metadata at the entry point or from an updated matching rule.
06 / Configuration Lifecycle
Local Overrides & Subscription Merging
Subscriptions provide routes; the main config provides shared policy
Don't combine multiple subscriptions by concatenating full YAML files. Different sources may declare the same listening ports, DNS settings, rule lists, and proxy group names. Appending files can create duplicate keys without making it clear which settings should win. A safer approach is to keep one local main config and use separate proxy providers for each route list. Shared proxy groups draw candidates from those providers, and rules continue to point to business groups. Upstream updates then replace a route list without changing local listening addresses, traffic capture settings, or rule order.
First identify what the source provides: a complete app config, a proxy provider file, or another encoded format. A provider-compatible YAML file has a top-level proxies key, and its entries must be proxy definitions supported by the core. A list of share links or a subscription containing full client settings shouldn't be referenced as a provider without checking it first. If the source provides only a complete config, extract the proxy entries locally and preserve the parameters required by each protocol. Never copy real subscription URLs or proxy credentials into public notes, screenshots, or shared config repositories.
Create traceable route collections in separate files
Create the following two files in the core's working directory, each with a valid proxies list from its own source. The declarations below use local files and won't download subscriptions. Test the primary source on its own and add it to the proxy group from Chapter 1 before adding the backup collection. If both lists contain entries with the same display name, set different additional-prefix values in each provider's override. Keep file paths and provider names distinct. After renaming an entry, check whether any rules or manual groups still refer to its old name.
proxy-providers:
Primary Routes:
type: file
path: ./profiles/primary.yaml
override:
additional-prefix: 'Primary / '
Backup Routes:
type: file
path: ./profiles/backup.yaml
override:
additional-prefix: 'Backup / '
To see both route lists in one manual group, change the use value for "Work Traffic" in Chapter 1 to [Primary Routes, Backup Routes]. Keep the automatic group limited to candidates from the primary list. If you switch to remote type: http, use the actual source from your private config and give each provider a separate cache path. Check both provider statuses individually, including update intervals, loaded item counts, and distinct display names, before considering filters or automatic switching. Seeing a provider's name alone doesn't prove that it contains usable candidates.
Judge client overrides by the final generated config
Client override settings are client-specific features, not extra syntax supported by every mihomo config. Different clients may replace entire sections, merge keys, prepend rules, or run scripts during generation. The same input can produce different results in different override interfaces. When adding DNS settings, check whether previous upstreams remain. When adding rules, confirm they appear before MATCH. When editing proxy groups, check that the original candidates weren't replaced wholesale. Prefer a method that changes only the target fields and lets you inspect the final config.
Keep the upstream source file, local overrides, and generated config separately. Don't directly edit a file the client regenerates on startup. For a startup test, use a regular local test directory with a matching config.yaml and its dependencies, or specify the test file by its full path. Passing a syntax check doesn't prove the client will load that file, or that subscriptions, network permissions, and every candidate will work. After refreshing subscriptions, verify rule order, group candidates, DNS mode, and the controller address in the runtime interface.
mihomo -t -d . -f ./config.yaml
Roll out in stages and keep a separate rollback point
Start by adding only the primary provider. Verify its nodes appear and can connect. Then add the backup provider and check for duplicate names or filters that remove every candidate. Merge overrides and business rules last. Keep the previous working state at each step so you can restore the most recent stable combination of files and overrides instead of deleting every subscription at once. Keep provider identifiers stable to avoid having to restore references during rollback. Group and rule names can be in any language, but their strings must match exactly.
If candidates disappear only after an automatic update, first check whether the upstream list changed its naming, then review local filters and the group's actual candidate list. If rule order changes after an update, compare the final config before importing the same subscription again. The client may also restore a manually selected group when reloading the config. Before testing defaults, note the current selection and establish a new connection. When migrating old config fields, see mihomo and Original Clash Field Reference to avoid mistaking a compatibility issue for a failed override.
07 / Runtime Status
External Controller
Keep proxy ports, controller ports, and dashboard files distinct
Proxy ports carry application traffic. The external controller port provides an API for viewing status, changing proxy group selections, and managing runtime config. A browser dashboard is an interface to that API; it isn't the proxy service itself. Entering the controller address in system proxy settings will usually result in a failed connection. Adding a mixed proxy port to a dashboard won't show core status. Before deployment, note the system proxy port, controller listening address, and source of the dashboard's static files. If they conflict, troubleshoot each of these three resources separately.
If another client is already running on the same machine, check whether it manages the controller settings. A GUI may bind the port or generate authentication credentials itself, so manually adding fields may not override its behavior. If the dashboard shows old rules or groups, first confirm that it's connected to the intended core instance rather than another background process. Especially after updating or switching clients, check local listeners, the file actually loaded, and the group names in the runtime interface before assuming a reload failed.
Verify the loopback interface before loading a local dashboard
When running the core independently, use the listener settings below to verify the local controller interface. allow-lan: false is a proxy setting; it doesn't restrict the address the controller binds to. Bind the controller explicitly to a loopback address. Don't switch to listening on all interfaces just to rule out a connection problem. If the client doesn't need external control, leaving it off is simpler. If you need it for everyday use, set an authentication secret stored only in a protected local config and use it with a trusted dashboard.
mixed-port: 7890
allow-lan: false
external-controller: 127.0.0.1:9090
Run the following request locally to tell an unreachable interface from one that requires authentication. The request doesn't include credentials; if the core has authentication enabled, an unauthorized response is expected and doesn't mean the port is wrong. If the connection is refused, check that the process is running, the port is bound, and the address is correct. If the response isn't from the core API, check whether another app is using the port. Verify the interface before opening the dashboard to avoid troubleshooting the network, page, and authentication at the same time.
curl -i --max-time 5 http://127.0.0.1:9090/version
To have the core serve the dashboard, put trusted static dashboard files in the dashboard directory under the working directory and confirm the entry file is directly inside it. Then add external-ui: ./dashboard and open the /ui/ path on the local controller address. If the page is blank or static files return not found, check whether the files are nested one directory too deep and which working directory the client actually uses to resolve the path. If the page loads but the lists are empty, check the API address, authentication, and browser network log; don't reinstall the entire core.
Don't loosen the listening address to fix browser issues
If the dashboard and API have different origins, the browser may block cross-origin requests. An HTTPS page accessing an HTTP controller can also run into browser security restrictions. Prefer serving a local dashboard from the same controller address to avoid cross-origin configuration. Don't enable access from every origin, disable browser protections, or expose the controller to the public internet. For remote management, use an existing controlled access channel and keep authentication and access restrictions in place. If the dashboard saved an old connection address or credential, update the connection settings in its interface; don't put credentials in a shareable URL.
Use the dashboard to diagnose, not as the source of truth for config
To troubleshoot a connection, start with its entry in the connection log and check the inbound, matched rule, and actual outbound. Then review provider status and group selection. Changing a proxy group in the dashboard is useful for a short comparison, but whether that change persists after restart depends on how the client and core save state. It doesn't replace editing the production config. If you need a clean test state, note the original selection and start a test instance in an isolated working directory instead of repeatedly clearing all state in the production config.
For a useful incident record, capture the smallest set of conditions needed to reproduce the issue: test target, inbound type, matched rule, business group, actual outbound, and failure layer. Remove subscription URLs, credentials, and private host details before sharing logs. If the interface shows connected but traffic still fails, check the FAQ or the step-by-step checklist for fixing internet access after connecting, covering system proxy settings, ports, rules, DNS, and outbounds. If the inbound never received the request, changing the selected proxy group won't affect that connection.