Configuration Guide · Mihomo Field Reference
Clash config.yaml Configuration Guide
Use this page to look up fields, review examples, and troubleshoot configuration issues. For a first-time install or subscription import, follow the import steps in the user guide and verify your connection first. If you already have a working config and need to change ports or routing, jump to the relevant section below. Examples use Mihomo as a reference; supported fields depend on your installed client and core version.
YAML Structure and Field Hierarchy
Identify each section by its top-level key
A config usually has a mapping at its root: keys on the left, values on the right. “General settings” is a way to group fields for reading; it is not an outer object named general. Listener ports, operating mode, and log level sit at the top level. DNS is a nested mapping, while proxies, proxy groups, and rules are usually represented as three separate lists. The order of top-level fields is mainly for readability; rules do not need to appear at the end of the file to work. What matters for matching is the order within the rules list. Keep these two kinds of ordering distinct, and you won't need to move entire config sections just to change rule priority.
Use your editor to collapse the top-level sections, then expand the one you need. If a port field only appears under DNS after you expand it, check its indentation before changing the port number. Complex files may also reference external data through proxy-providers and rule-providers. In that case, the main file won't list every proxy or rule directly; that doesn't mean anything is missing. Follow the provider name to its definition and check its update status to determine whether the reference is misconfigured or the resource failed to load. For more on tracing the hierarchy from the top level, see how to read a Clash config by section.
Start with a minimal config to verify the structure
This complete baseline uses only the built-in DIRECT policy, so it needs no subscription or external proxies. It opens a local mixed-proxy port and sends connections received by the core directly to their destination. Use it to confirm that the file loads and the port listens—not to test a remote proxy. Import it as a separate config; don't overwrite an active subscription. Keep in mind that the client may rewrite the port. If another app is already using the example port, choose a free port in a test copy and connect using that same port.
mixed-port: 7890
allow-lan: false
mode: rule
log-level: info
rules:
- MATCH,DIRECT
A colon separates each key from its value, while a hyphen under rules starts a list item. A list is not a single string containing multiple rules, nor is it a set of YAML entries separated by commas; the core parses commas inside rule strings according to its own rule syntax. Use two spaces per indentation level for consistency, and never indent with tabs. Two spaces are a maintainable convention; the important thing is to align keys at the same level. When copying an example, select only the code—not the heading, description, or code fences on the page.
Tell syntax errors from field errors
Write ports as integers and switches as booleans. Quote text values when they could be mistaken for numbers, booleans, or null. An empty list can be written explicitly as []; a key followed only by a colon usually becomes null, not an empty list. Text containing a hash or a colon followed by a space should also be quoted to avoid being parsed as a comment or key-value separator. Don't add entries by declaring the same top-level key twice: some parsers report an error, while others may keep only one copy, making the result of later merges harder to predict.
When you get an error with a line number, check several lines above it too. A missing closing quote, a list item nested under the wrong object, or a key without a value on the previous line may not trigger an error until the parser reaches the next line. If YAML validation passes but the client still fails to start, check whether the core accepts the field types, enum values, and referenced names. A file opening in a general-purpose YAML editor doesn't mean every key is supported by your current core.
Some issues don't produce syntax errors: the pasted content remains valid YAML, but ends up under the wrong parent. For example, putting proxy group candidates in the top-level proxy list may leave the list shape intact even though its elements have the wrong type. Check each section in terms of “top-level key, container type, element type”: rules are strings, proxy list items are mappings, and the server value inside a proxy mapping is a scalar. Check the structure—not just the number of spaces.
Listener Ports, Connection Modes, and Logs
Find out where traffic enters
mixed-port is a local listener that accepts both HTTP proxy and SOCKS requests on the same port. If you need separate entry points for the two types of app, set port and socks-port individually. Don't assign the same port to multiple listeners on the same address. These are ports on the client device, unrelated to the server port in a proxy entry. The former is where a browser or another app connects locally; the latter is where the core connects to a remote server. One listener working doesn't mean the other port is reachable.
| Field | Example value | Where to check |
|---|---|---|
mixed-port | 7890 | The core's local listening port |
allow-lan | false | Whether devices on the local network can connect |
mode | rule | The client's current connection mode |
log-level | info | The core's log level |
The system proxy setting tells apps that honor it where to send requests; it doesn't guarantee that every app uses that entry point. Some apps have their own proxy settings, while other connections may be handled by a virtual network interface. To test a port, start with an app that lets you set a proxy explicitly. Set its address to the local loopback address and its port to the current listener, then compare the result with everyday browsing after enabling the system proxy. If the first test appears on the core's connections page but the second doesn't, check whether the app reads system settings before changing proxies. Don't change the traffic interception method at the same time, or you won't know which path produced the result.
mixed-port: 7890
allow-lan: false
mode: rule
log-level: info
Check the current mode before troubleshooting routing
Rule mode checks rules and uses the first matching rule. Global mode uses the global proxy selection instead of routing each destination through this rules list. It also doesn't mean every app must use the proxy: traffic that isn't picked up by the system proxy or another entry point never reaches the core. In direct mode, traffic that enters the core goes direct. If a domain rule you just added has no effect, check the mode shown in the running client—not just the mode value on disk. The client may restore its last UI selection or set its own mode when applying the config.
Keep the log window as small as possible when debugging. During normal use, start at info level to check startup and connections. If the problem is hard to pinpoint, temporarily increase verbosity, reproduce it once, and note the time. Restore the original level afterward. For a port issue, if the startup log says the address is already in use, first check whether an old core or another app is listening on that port. If you change the port, update the target address in your apps and system proxy settings too. A bind failure happens before requests reach the core, so more routing logs won't help explain it.
Configure local access separately from LAN sharing
If you're using one device, local access is enough; there's no need to enable LAN access just to turn on the system proxy. To share with trusted devices on your local network, configure allow-lan and bind-address for the appropriate interface, and check which network range your firewall allows. The other device must connect to the host's LAN address, not its own loopback address. The host's address may change when it switches networks or wakes from sleep. For details on ports and binding, see mixed ports and LAN sharing. Disable sharing listeners you don't need on public networks.
The control API and the proxy listener serve different purposes. external-controller is for dashboards and client control; it doesn't accept regular web proxy requests. Don't enter the control port in an app's HTTP proxy settings, and don't expose the control API to a shared network for convenience while debugging. If a graphical client manages the config, use its built-in connections and logs pages where possible. To choose your first desktop or mobile client, start at the download center. Clash Plus is the recommended starting point on supported platforms; then choose the package type and system architecture that fit your device.
On mobile, system-level traffic interception is often managed in the client UI. Some desktop clients also generate a separate config for interception. When moving a file between devices, don't assume the local entry point is set up just because interception is enabled on the other device. A config loading successfully on two devices only confirms that the fields are accepted; it doesn't mean apps use the same route on both. Check system permissions, the active port or interception status, and whether the test request appears in the connection log on each device.
DNS Upstreams and Address Mapping
Understand who makes the query and who returns the address
Enabling dns.enable turns on Mihomo's DNS feature, but it doesn't automatically route every system DNS query through Mihomo. An app may pass a domain to the core, or it may connect using an address resolved locally. Browser Secure DNS, the OS cache, and traffic interception settings can all change the path. First determine whether the failure is in name resolution or connection setup. A domain resolving to an address only means the lookup returned a result; it doesn't mean the address is reachable. Likewise, being able to connect to an address doesn't prove the app used the intended upstream.
The example below specifies a public resolver by IP address and shows a simplified set of fields. default-nameserver is used to bootstrap the resolution of DNS server hostnames. The regular upstream in this example is an IP address, so there's no need to resolve its hostname first. nameserver is the list of upstreams for ordinary queries. A public resolver may be reachable and return different answers depending on the network. On a managed network, use the upstream specified by the administrator where possible. For internal domains, make sure the chosen resolver has the relevant zone data.
dns:
enable: true
enhanced-mode: redir-host
default-nameserver:
- 1.1.1.1
nameserver:
- 1.1.1.1
Choose between redir-host and fake-ip
redir-host generally returns the real resolved address to the requester. With fake-ip, Mihomo can first assign a mapped address from a reserved range, then use the associated domain when the connection reaches the core. Seeing a mapped address doesn't mean the upstream record was changed; don't enter it into an app as though it were the service's actual address. This mode requires subsequent traffic to pass through the core that can recognize the mapping. If an app gets a mapped address but its connection leaves through a different route, you may see “resolves, but won't connect.”
Some apps compare addresses directly or rely on local discovery, internal domains, or other flows that need real addresses. First check whether fake-ip-filter is appropriate for the specific domain, then decide whether to switch the entire enhanced mode. A narrow exclusion is more useful for diagnosis than temporarily excluding every domain. After changing modes, make a fresh query and connection; you may need to restart the app to clear its in-process cache. Testing immediately after a change with an existing connection may use an address cached before the change.
Choose upstreams by query type
If regular websites work but proxy server hostnames don't resolve, troubleshoot the two types of queries separately. Use proxy-server-nameserver to configure a dedicated upstream for proxy hostnames, avoiding a startup dependency on a connection that isn't available yet. To choose a resolver for a particular domain, use nameserver-policy and check the matching domain scope. This controls which resolver receives the query; it doesn't choose the route for the destination connection. The connection's exit is still determined by the mode and rules. If internal domains are sent to a public resolver, they usually won't get useful answers, and their names may be exposed to an external service.
When using an encrypted DNS upstream with a hostname, first make sure the upstream hostname can be resolved during bootstrap and that its connection route is reachable. Then consider tuning. If resolving a domain requires a proxy, but resolving the proxy server address requires that same upstream, you have a startup dependency loop. Temporarily simplify the setup to an upstream that's reachable and has a clear purpose. Confirm that proxy hostnames resolve, then restore domain policies one by one. Don't clear every domain policy, switch the enhanced mode, and change the proxy all at once; even if service comes back, you won't know which change broke the dependency loop.
Different devices resolving the same domain to different addresses doesn't necessarily mean there's a config error. Cache lifetime, the upstream's network, the returned address family, and the app's query method can all affect the result. If only certain devices have issues, note whether interception is enabled, whether they have stale DNS cache entries, and which address family failed. Before comparing results, use the same entry point and test destination on each device, then compare DNS and connection logs. Don't disable an entire address family just because one upstream is unreachable; that can push otherwise reachable services onto a worse route.
Proxy Fields and References
Separate display names from connection settings
Each entry under proxies describes a connection. name is an identifier that can be referenced within the config; type determines how the other fields are interpreted; server and port specify the remote server address and port. They aren't the address and port of your local proxy listener. Proxy groups reference proxies by name; they don't find replacements based on server address. Two entries can use the same address with different protocols or settings, so give each a unique name that clearly identifies its purpose.
The example below uses another local HTTP proxy to illustrate the structure. Use it to test a connection only if a separate service is actually listening on the corresponding loopback port. Don't change the server port to the core's current listening port, or requests may loop back into the same listener. If no such service is running, use the direct-connection baseline in the first section to test the client. The example doesn't include credentials; don't assume every HTTP upstream allows anonymous access.
proxies:
- name: "Local HTTP upstream"
type: http
server: 127.0.0.1
port: 8080
Check additional fields against the protocol
Additional fields don't apply universally. HTTP and SOCKS upstreams, for example, use different handshakes; other protocols may require a server name, transport settings, or protocol-specific authentication. Use the parameters provided for the same server, and don't copy similarly named keys from another entry. With encrypted transport, the connection's destination address may differ from the hostname used for certificate verification. If identity verification fails, check the server name, certificate, and system clock first; don't make skipping verification a permanent fix.
A successful handshake doesn't guarantee that the connection can carry anything beyond web traffic. Browsing a website isn't a substitute for testing real-time communications or other services. Even if a protocol supports datagrams, that doesn't mean the server has enabled them, the current client entry will forward them, or the selected proxy group actually chose that proxy. When troubleshooting an app, note the protocol it needs, the network type shown in the core's log, and the destination port. Reproduce the issue with the same type of traffic. A successful latency check alone doesn't prove end-to-end support.
Working with external proxy lists and import formats
Defining entries directly in the main config and loading a proxy collection with proxy-providers are two ways to organize proxies. With a provider, a proxy group uses use to reference the provider name; don't add that name to the candidate list as though it were a proxy. If the main config loads but the group has no candidates, check the provider status, response format, and filters. A reachable service may return a login page or error instead of a proxy list. A filter expression can also reduce a valid list to nothing. Don't check only the update timestamp or request status—verify that candidates actually appear.
A full config, a proxy collection, and a share link are different kinds of data. A full config can include listeners, DNS, and rules; a proxy collection supplies candidates; a share link usually describes one connection. A client being able to import a share link doesn't mean you can use that text directly as an item in the proxies list. If changing the import method produces an unexpected layout or candidate list, compare the subscription formats. If the file looks valid but import fails, use the subscription parsing troubleshooting checklist to inspect the response.
Renaming a proxy changes references, not just its label in the UI. Search for the old name in proxy groups and rules, and watch for differences in capitalization, leading or trailing spaces, and full-width punctuation. If the client remembers the last selection, select the proxy again after renaming it. When sharing a troubleshooting snippet, keep the type, hierarchy, and relevant error lines. Remove server addresses, subscription query parameters, and authentication fields separately. Never paste an entire subscription response into a feedback form. A debug copy should not include a private subscription URL that will continue to sync.
If the config loads but a particular proxy doesn't work, select it explicitly and use another known-good exit to access the same destination. An error before the first connection is established usually points to the hostname, port, or handshake. If both connections establish but only one fails for a particular destination, distinguish between the remote service's response, differences in exit networks, and rules sending related requests elsewhere. Replace one candidate at a time to preserve a useful comparison.
Proxy Group Types and Candidate Selection
Separate the routing target from the actual exit
A proxy group binds a set of possible exits to a stable name. A matching rule sends the request to the group; the group then selects a candidate based on its type or current selection. This lets you change a proxy without editing each rule, but the connections page may initially show only the group name. Expand it to see the actual exit. Candidates can be defined proxies, other proxy groups, or built-in policies. Within a group, DIRECT means the core connects directly; it doesn't bypass the app's local entry point.
This working config uses only built-in policies and is useful for seeing how candidate selection changes after a rule matches. Switching to REJECT intentionally blocks new requests sent to that group; use it only for a temporary test, then switch back to DIRECT. If a rules list already exists, merge the target rule into it—don't paste a second top-level key. Give groups and proxies distinct names, and don't use the name of a built-in policy for a custom group.
proxy-groups:
- name: "Exit Selection"
type: select
proxies:
- DIRECT
- REJECT
rules:
- MATCH,Exit Selection
Manual selection, latency testing, and fallback solve different problems
select is for cases where you want to know the current exit and decide when to switch. The client may save the group's selection; changing candidate order may not change the active candidate if the previously selected one is still available. url-test selects a candidate based on measurements to a specified test URL. A tolerance can prevent unnecessary switches due to small fluctuations. It isn't a connection timeout or a guarantee of real-world performance. If the exit doesn't change after reordering candidates, check the group type and saved selection first.
fallback selects an available candidate in the configured order; it doesn't choose the one with the best latency. If you want one candidate to be preferred and the next considered only when it fails, read up on this group type. Automatic groups typically use url to set a test target and interval to set the interval in seconds. Don't probe too frequently, and don't assume that a test URL being reachable means your actual service will be reachable. If the probe succeeds but real traffic fails, keep the probe result and separately record the real request's exit and failure stage.
Before adding DIRECT to an automatic group, decide what “available” means. DIRECT reaching a test URL doesn't mean every routed request should go direct. If the service needs a fixed exit, don't include DIRECT as a candidate. If fallback is acceptable, consider the effect of switching on active login sessions and long-lived connections. Judge the change using new connections, not a connection that's still being reused. Verify the impact from the service's perspective; a single panel probe isn't enough to draw a conclusion.
Check nesting, filters, and the default selection
To understand nested groups, trace the path from the rule target through each group to a built-in policy or a specific proxy. If group A references group B, B must not reference A, directly or indirectly. Too many layers can also make one selection affect unexpected traffic. If multiple rules use the same manual group, changing its selection affects the exit for new connections from all of them. Create separate, clearly named groups only when you need independent control. If you only need to share an exit, there's no need for a group per domain.
With a provider, first confirm that its update succeeded. Then check whether name filters or exclusion rules removed the candidates. Seeing the group name without the expected proxies doesn't necessarily mean a connection problem; the filters may not match. In a test copy, start with one provider and one manual group, using the unfiltered candidate list, then restore filters one at a time. If a subscription update changed proxy names, check whether the previous selection still maps to a current candidate. An unchanged group name alone doesn't mean the same exit is still in use.
When maintaining proxy groups, name them for their purpose rather than a temporary state. For example, if a group lets you manually choose an exit for a work environment, name it for that role and leave the specific candidate to the group selection. Before adding a candidate, check whether you're editing the group's proxies list or the top-level field with the same name: the group list contains proxy references, while the top-level list contains proxy mappings. Define a proxy once and reference it in multiple groups; duplicate definitions increase the risk of name conflicts and inconsistent settings.
Rule Syntax and First-Match Behavior
Read each rule by asking three questions
When reading a rule, ask in order: what is being tested, what value is being matched, and where does a match go? A common rule has the form “type, match value, policy,” separated by commas. MATCH needs no match value; it takes a policy directly. DOMAIN matches an exact domain and is useful for handling a specific host. DOMAIN-SUFFIX matches a domain suffix and its subdomains, making it useful for handling multiple services under the same domain. Rules take domain names, not full web addresses; adding a path or protocol doesn't make them match URL paths.
The core checks rules from top to bottom and applies the policy for the first match. The example below rejects one subdomain and leaves other requests on the direct route, showing how a specific exception should precede a suffix rule. The example domains are for demonstrating rule order only. Move the suffix rule to the top, and the subdomain exception can no longer match first. Put the catch-all rule ahead of it, and every later entry becomes ineffective. When validating a custom rule, check its position in the effective config—not just that you can find the text in your editor.
rules:
- DOMAIN,blocked.example.com,REJECT
- DOMAIN-SUFFIX,example.com,DIRECT
- IP-CIDR,10.0.0.0/8,DIRECT,no-resolve
- MATCH,DIRECT
Domain visibility and IP matching
Domain rules require the core to receive a name it can match. Some apps send a domain; others resolve it first and send only an IP address. Two requests reaching the same server address don't necessarily give the core the same matching input. Check the target type in the connection log before deciding whether to add a domain or IP range rule. A domain in the browser's address bar doesn't prove the connection reached the core with its hostname intact. Images, sign-in requests, and API calls on the same page may also go to different destinations.
IP-CIDR matches IPv4 ranges; for IPv6, use IP-CIDR6. Supported IP rules can take no-resolve at the end to prevent the rule from actively resolving a domain that doesn't yet have an address. An existing destination IP can still match. This doesn't disable DNS for the whole config or make domain rules stop working. If a domain exception should take priority, put it ahead of a broader IP rule that might match the same connection first, and keep representative test requests for both rules.
Understand geodata, rule sets, and catch-all rules
GEOIP classifies an address using the current geodata; the result can't be inferred from a domain suffix. If the same domain resolves to servers in different regions, the match may change with the resulting address. When relying on geographic matches, record the test address and data source, then recheck edge cases after updating the database. For consistent handling of a specific service domain, an explicit domain rule is easier to maintain than a geographic classification.
For large rule lists, use rule-providers to define a rule set source and RULE-SET to reference its name. Check that the provider's behavior type matches the input format; a plain list of domains can't be used directly as a list of classic rule expressions. Whether a rule set contains one rule or a hundred, its position in the main list stays the same: an earlier, broader rule can still catch the request first. If an update fails, keep the resource name and failure stage from the log. Don't just remove the catch-all; another default behavior could hide the underlying problem.
Keep three test cases when writing exceptions: a request that should match the exception, one under the same suffix that shouldn't match it, and an unrelated request. After editing, check the matching rule and exit path for each. If the first case works but the second takes a different route too, the exception is too broad. If the rule is correct but the request still fails, check the actual candidate in the proxy group. If no corresponding request appears in the connection log, check the entry point. Adding more and more similar domains because a site won't load creates rule conflicts and makes future changes harder to regression-test.
Also check that the policy name used by a custom rule exists in the current config. When moving a rule from an old config, its domain condition may still be right even though the referenced group has been renamed or replaced during the new client's merge process. Verify the target reference before investigating priority. To determine whether the issue is in the group or the rule, point the rule temporarily to a built-in policy with an obvious result in a test copy, then observe a new request. Restore the original value after comparing.
Client Overrides and Config Merging
First identify which file you're editing
The original subscription, user overrides, and the core's running config may be three separate things. The subscription source is updated; overrides preserve local changes; the running config is generated after the client applies its import logic, UI settings, and overrides. Editing the subscription cache directly may be undone on the next refresh. Editing a generated file may be undone when you switch configs or restart the client. If the client offers a persistent override feature, use it for custom rules or local differences, and check whether it applies to the current subscription or all configs.
A client may also store runtime state separately, such as the mode, selected group candidate, or interception toggle. Seeing a new value in a file doesn't mean the running process has switched to it. After editing, confirm that the config is still active, apply or reload it using the client's controls, and check the runtime state. If the client doesn't provide predictable merging, a separate local copy is usually safer than editing a subscription cache by hand. The tradeoff is that you'll need to review changes manually when the source updates; don't assume the copy will stay current automatically.
Understand the result by scalar, mapping, and list
A scalar such as a listening port is often replaced by the later value. A mapping such as DNS may be merged by key or replaced entirely, depending on the tool. Before adding a DNS subkey in a patch, find out whether the original upstreams, mode, and domain policies will remain. Lists need extra care: rule order matters, while proxies and groups depend on name references. Even tools that support merging may not merge list entries by name. Simply concatenating two proxy lists won't turn duplicate names into a valid combined proxy entry.
The example below shows a section of the effective config after merging; it isn't a patch format for any specific client. Suppose the original has only a final catch-all rule and you add an exception for testing a domain. The exception must go before the catch-all, while the existing top-level key stays in place. If the UI only supports appending, don't append the exception after an existing catch-all. Use the client's prepend option if available. Otherwise, build the full rules list in a separate copy, keep the entries you need, and import it for testing.
mode: rule
rules:
- DOMAIN,blocked.example.com,REJECT
- MATCH,DIRECT
Track changes after subscription updates
Subscription updates can change proxy names, providers, group structure, or existing rules. If an override references a group that might be renamed in an update, note what the reference is for and where it came from. Before each change, save a working copy. Then compare at least three areas before and after merging: local listener settings, affected groups, and the rules around the catch-all. Confirm that the override took effect only after you see the expected order in the active config and the matched rules and actual exits agree.
When moving between devices, separate local values from shareable policies by purpose. Port conflicts, network interface names, system proxy toggles, and file paths vary by device; don't force them to sync alongside global rules. Rules and group names can be shared, but confirm that the target client supports the relevant fields and provider format. A list that suddenly fails on another device may simply refer to resources at different locations. First use a working local baseline to confirm startup and the entry point. Then move proxies, groups, and rules, and restore device-specific settings last.
When a merge fails, prioritize getting back to a working state. Disable the most recently added override and reapply the last known-good config instead of resetting several client settings at once. If disabling the override restores service, keep the failing copy and add its fields back one at a time in the order they changed. If switching to the original config still fails, check for an old process holding a port, another config loaded in the background, or a subscription that updated during testing. This helps distinguish merge behavior from runtime state and upstream changes instead of repeatedly guessing in one file.
Don't rely on YAML anchors as a cross-file override mechanism. Anchors and aliases are for reusing structures within one document; an alias won't find an object in a separate subscription file. Some parsers support mapping merge syntax, but it isn't a way to place rules in a list. If a config needs to work across different clients, prefer an explicit result that's easy to expand and inspect. A small set of separate patches with documented reasons is usually easier to troubleshoot than multiple layers of implicit references.
Config Testing, Log Triage, and Rollback
Check that the file loads before testing the actual route
Check the config on paper from the outside in: verify YAML structure and types, then references between proxies, groups, and providers, and finally rule order. If you have Mihomo available from the command line, save a test copy of the current config as config.yaml and run the command below from its directory. Make sure the command-line program supports the same fields as the core used by your client. If the config references relative resources, the test data directory must match the actual loading conditions. Copying a single file doesn't guarantee that its external dependencies are in place.
mihomo -t -f ./config.yaml
A passing config test only means the core can read the file under the current test conditions. It doesn't prove that every remote proxy is online, every port can bind, or every app uses the intended entry point. In a graphical client, start with a baseline to check startup and logs, then change only the section you're testing. Record the active config name, port, mode, and test time. Use a new connection to reproduce the issue. Apps with connection pools may reuse old sessions; close the existing session or use a separate test window so stale results aren't mistaken for the new config.
Narrow down the issue by where it occurs
| Symptom | Check first | Don't change yet |
|---|---|---|
| Import fails immediately | Hierarchy, types, and references near the reported line | System proxy toggle |
| Connections fail after startup | Actual listening address, port, and entry method | Rule order |
| Connected, but using the wrong exit | Mode, matched rule, and selected group candidate | Entire proxy definition |
| Correct exit, but requests still fail | DNS resolution, remote handshake, and service response | Catch-all rule position |
If import fails immediately, keep the first error reported by the client. Later startup errors may all be caused by the first failure, such as an unloaded provider leaving a group with no candidates. If the client window closes too quickly, distinguish a UI process exit from a core startup failure and check the corresponding logs. The troubleshooting guide for clients that close on launch walks through the checks. If the core is listening but no connections appear, test the entry point with a simple, explicit local proxy request, then check the system proxy, interception permissions, and whether the app honors those settings.
If a connection appears in the log but doesn't match the expected rule, note the actual match target and first matching rule. If the rule is correct but the exit isn't, trace which candidates were selected through each group and nested group. If the exit is correct too, check DNS, connection timeouts, protocol negotiation, and the server response. Distinguish between the core failing to reach the upstream, the upstream failing to reach the destination, and the destination returning a rejection. Once you know where the failure occurs, you can tell whether to change DNS, connection settings, or rules. Changing several at once usually just changes the logs.
Build a minimal regression test and rollback plan
Change one type of setting at a time, then test two representative destinations: one that should be affected and another that should remain unchanged. For a rule change, check the matched rule and final exit. For DNS, check where the address came from and whether the connection was established. For listener changes, verify both that “a local app can connect” and that “unauthorized network ranges cannot connect.” If the result differs from what you expected, undo the latest change, reload, and test again. Separating reproduction from changes helps prove that the rollback addresses the issue.
Record tests in order: read the file, start the process, receive a request, and route it through an exit. Keep a known-good config, and make sure you can switch back to it before changing a broad override. After restoring it, check whether the active port, system settings, and group selection were restored too. When asking for help, include the client name, operating system, steps to reproduce, a minimal shareable config, and redacted logs. Remove subscription URLs and credentials. If the entry point isn't working yet, return to the import and connection steps in the user guide. To review specific fields, return to this page's contents and jump to the relevant section.
Finally, record the conditions of a successful test instead of just marking it “fixed.” Note which local entry point you used, which group the rule selected, the final exit, and whether the test used a new connection. When the environment changes, repeat the same test before introducing new variables. A short record like this makes it easier to spot differences caused by client or subscription updates and gives troubleshooting on another device the same baseline to start from.