Core Configuration Reference mihomo · YAML

Clash Config File Reference

Check the general settings for ports, groups and rules for routing, and DNS for name resolution. If you're new to Clash, start with the Getting Started guide to import a subscription, choose a mode, connect, and test it. This page explains the YAML fields behind those steps and where to verify changes.

YAML Structure and a Minimal Config

Understand a Connection Through Three Lists

A mihomo config starts with a root mapping: keys and values at the same indentation level. Ports and the outbound mode are scalar values; dns and tun are mappings with nested fields; proxies, proxy-groups, and rules are separate lists. Each list has a different job: proxies define how to connect to remote servers, groups choose among available outbounds, and rules route connections to an outbound. When reading a config, start with the rule's target, follow the group name to its members, then check the proxy settings.

The order of root-level keys usually doesn't determine processing order. Moving the entire rules section to the top of the file won't make rules take effect before other settings. But swapping two entries inside the rules list can send the same domain through a different outbound. Group members may be indented like rules, but they aren't conditions checked in sequence. It's more useful to distinguish root-key placement, list-item order, and how the core interprets each list than to memorize the layout of an example.

Start by loading a config with a direct-only outbound

mixed-port: 7890
allow-lan: false
mode: rule
log-level: info

proxy-groups:
  - name: Routing Outbound
    type: select
    proxies:
      - DIRECT

rules:
  - DOMAIN,example.org,DIRECT
  - MATCH,Routing Outbound

Save this as a separate config.yaml; don't overwrite the subscription currently in use. After loading it, point an app with its own proxy settings to the local mixed port, then visit a sample domain. That domain uses the built-in direct route; all other connections go through “Routing Outbound,” which also contains only a direct member. Neither path depends on a remote proxy, so this is a useful first check for whether the config loads, the app is using the proxy endpoint, and connection details show the expected rule. It won't confirm that a remote proxy works or test group failover.

Here, proxies is inside the group and lists member names; it isn't the top-level proxy definition. To add a proxy later, create a separate root-level proxies section, then add the new proxy's name to the group. Don't put a server address or port in the group's member list. The core resolves members by name, so group names referenced by rules and proxy names listed in groups must match their definitions. When renaming something, update every reference too, and watch for spaces or full-width characters introduced during copy and paste.

Check parsing first, then check whether the fields make sense

Use the same number of regular spaces at each indentation level; don't use tabs. Start list items with a hyphen and a space, and leave a space after each colon. Use a hash for comments, but quote the entire value if a string contains a hash or a colon followed by a space. Quote a proxy name if it looks like a number or boolean value. Conversely, keep ports and switches in their expected types—don't automatically quote every value.

Don't define the same key twice at the same level. To add rules, append entries to the existing rules list instead of adding another rules section at the end of the file. A parser may report a duplicate, or it may keep only one copy, making the old rules seem to disappear after replacement. If an error points to a line, check the one above it first: a missing colon, unclosed quote, or indentation mistake may not be caught until the next line. Passing a syntax check only means the document can be parsed as data; it doesn't mean the core accepts the field types, rule parameters, or references.

A client may show three different objects: the subscription source, the override draft, and the runtime config. Before inspecting a file, confirm which config is active and where it came from, then check whether the client has rewritten UI toggles into the text passed to the core. Make one change at a time to the same sample and record the result. Don't switch clients, change subscriptions, and add new fields all at once; even if the issue disappears, you won't know what fixed it.

General Settings: Ports, Mode, and Traffic Scope

Read Local and Remote Ports Separately

mixed-port: 7890
allow-lan: false
mode: rule
log-level: info
ipv6: false

These ports are local endpoints that apps use to connect to the core—not the server ports used by subscription proxies. If you need just one endpoint, use mixed-port to accept both HTTP and SOCKS connections. Set port and socks-port separately only when different apps need different endpoint types. Give each endpoint a different port, then check the addresses configured in your browser, system proxy, or command-line tools. If connections are still refused after a port change, first confirm the core is running, listening on the endpoint, and that the app isn't still using the old port. Then investigate the outbound route.

Ports, Access, and Mode
FieldWhat It AffectsWhere to Check
portHTTP proxy endpointThe app's HTTP proxy address
socks-portSOCKS proxy endpointThe proxy type selected in the app
mixed-portShared HTTP and SOCKS endpointRuntime config and port availability
allow-lanWhether other devices on the LAN can access the proxyListen address, access controls, and firewall
modeRule, global, or direct routing modeThe mode currently in use

For local use, leave allow-lan: false so apps can connect through the loopback address. There's no need to enable LAN access just to fix a local port conflict. Only consider sharing on a trusted LAN when necessary; restrict bind-address and access, configure authentication if supported by the core, and check the system firewall. The controller and proxy endpoint are different: the controller lets you inspect connections and change policies; it isn't an HTTP proxy address. If you only need to manage the client locally, don't expose the controller to other devices.

Mode applies to traffic handled by the core

rule selects an outbound according to your rules. It's suited to everyday routing and testing a specific rule. global sends traffic handled by the core through the globally selected outbound, which is useful for comparison; direct sends that traffic directly to help determine whether the selected proxy is involved. Global mode doesn't automatically capture traffic from every app, and direct mode doesn't stop the client from running. If edited rules don't seem to take effect, check the active mode in the UI, then see whether connection details show a rule match. The mode selected in the UI may differ from the config file.

Don't switch between multiple modes and endpoints while troubleshooting. If a website loads in global mode but not rule mode, the routes or handling differ; compare the matched rule and actual outbound for the same destination. If the request doesn't appear in the connection list in either mode, check the system and app proxy settings. Test with a new connection after switching modes: existing long-lived web connections may not be rerouted under the new rules.

System Proxy and TUN Are Different Traffic Entry Points

The client usually sets the system proxy in the operating system; only apps that honor that setting will use it. Apps with their own proxy options may ignore it. TUN captures relevant traffic through a virtual network interface and system routes. It may require extra permissions and can conflict with other network tools or DNS settings. For an initial test, use one entry point at a time rather than enabling both and relying on “the page loads” as your only check. Connection details showing the source, destination, and outbound chain tell you which path the test request actually took.

Start with log-level: info to see config loading and connection events. Raise the level briefly if you need more detail, then restore it. Top-level ipv6 and the field with the same name under DNS are in different sections; changing one doesn't change the operating system, browser, and remote proxy all at once. If networking works at home but fails on an office network, note differences in the entry point, permissions, and network policies first. Don't treat disabling a protocol as a universal fix. If the client isn't installed, choose a package for your OS from the Download Center, starting with the relevant Clash Plus platform page.

DNS Settings: Upstreams and Response Modes

First Identify Who Is Making the DNS Query

A single visit can involve three different names: the destination domain requested by the app, the proxy server's hostname, and the hostname of an encrypted DNS upstream. They may be resolved by different resolvers. An app may use the system resolver or its own encrypted DNS; a proxy connection may send the hostname to the remote server, or resolve it locally first. Enabling dns.enable turns on the core's DNS module; it doesn't automatically route every operating-system query through that module. Once you understand this boundary, you can decide whether to change a core setting or the app's DNS entry point.

dns:
  enable: true
  listen: 127.0.0.1:1053
  ipv6: false
  enhanced-mode: redir-host
  default-nameserver:
    - 1.1.1.1
  nameserver:
    - https://cloudflare-dns.com/dns-query

This config opens a separate listener on the loopback address for local tests with tools that let you specify a port. default-nameserver can resolve hostnames for DNS upstreams; the example uses an IP address as the initial resolver. Routine queries go to the upstreams listed under nameserver. On a managed network, use a resolver allowed by the administrator and reachable from your device. If querying this listener directly works but the browser behaves differently, first check whether the browser is bypassing it and using its own DNS service. Don't assume the upstream is misconfigured based on that difference alone.

Real Addresses and Mapped Addresses

redir-host uses real resolved addresses. fake-ip can return a mapped address to the app; the core then looks up the corresponding domain when handling the connection. Both the DNS query and the subsequent connection must follow a path that can handle the mapping. If the app receives a mapped address but the connection bypasses the core, it may fail; changing upstreams usually won't help. Service discovery, some LAN devices, and apps that require real addresses may need specific domain filters rather than broad exclusions for an entire domain category.

dns:
  enable: true
  enhanced-mode: fake-ip
  fake-ip-range: 198.18.0.1/16
  fake-ip-filter:
    - "*.lan"
  nameserver:
    - 1.1.1.1

Use this section to replace the previous example's dns block; don't paste two mappings with the same key side by side. The filter entries are domain patterns, quoted so a leading asterisk isn't interpreted as a YAML alias. Adjust them for your local domain suffixes, and first make sure the mapped-address pool doesn't overlap with your existing network. After changing modes, make a fresh DNS query and connection, and clear the app's cache if your tools support it. Old mappings or existing connections may still be reused, so don't draw conclusions from a single page refresh.

Choose Resolvers by Domain and Understand Fallback Conditions

nameserver-policy can assign an upstream to specific domains or supported domain sets—for example, routing internal domains to a resolver that can answer for that zone. With fallback and fallback-filter, selection isn't as simple as switching to a backup only when the primary is unreachable: domain matching and response filters may affect which resolver is chosen. For troubleshooting, start with one clear upstream path and confirm basic queries work before adding conditions. If you configure multiple policies, test each against a known domain and verify why it matched; a successful response alone isn't enough.

If a proxy definition uses a hostname, confirm it can be resolved before the proxy connection is established. To specify a separate DNS path for proxy hostnames, see proxy-server-nameserver. Avoid making the only resolution path depend on the proxy that hasn't connected yet. TUN's dns-hijack is a separate layer: it determines how matched DNS traffic is captured; it doesn't send every encrypted HTTPS DNS request to the core. See the DNS configuration notes and trace each step: who sends the query, who receives it, and who uses the result.

Proxy Nodes: Addresses, Protocols, and Connection Settings

Define Proxies Separately from the Rules That Use Them

The root-level proxies section is a list of proxy definitions. For each entry, start with name, type, server, and port. The name is used by groups and rules; it isn't a network-resolvable address. The type tells the core which protocol to use with the server. Set the server to a hostname or IP address and enter the port separately. Don't paste a subscription link, a URL with a protocol, or a path into server. Adding an entry only makes it available as an outbound; it doesn't route any traffic through it automatically.

proxies:
  - name: Local SOCKS Outbound
    type: socks5
    server: 127.0.0.1
    port: 1080
    udp: false

proxy-groups:
  - name: Outbound Selection
    type: select
    proxies:
      - DIRECT
      - Local SOCKS Outbound

rules:
  - MATCH,Outbound Selection

This example assumes a separate SOCKS service is running locally. If you don't have one, keep the DIRECT option to check whether the group and rule load; a failed connection after switching to local SOCKS is expected for comparison. Don't set the example port to the core's own endpoint, or outbound traffic will re-enter the local proxy and create a loop. If the service is running, first confirm it accepts local connections and can independently reach the destination before routing traffic to it through the core.

Check Fields by Protocol, Not by Guessing from Names

Proxy Types and Common Type-Specific Settings
TypeWhat to CheckCommon Confusion
socks5Address, port, and server-required authenticationDon't use the client's own endpoint
sscipher、passwordEncryption method must match the server
vmessuuid and transport settingsTransport options aren't interchangeable across proxy types
trojanpassword and TLS server nameThe server address may differ from the name on its certificate

When you receive a config from your provider, check each field against the proxy type. Don't infer fields from a node's name, region, route, or transport label. For a WebSocket-based proxy, for example, check the transport type alongside its corresponding options. The path must match the server settings, and a request-header name can't be replaced with an address. Before proxy authentication succeeds, the connection must also pass network reachability checks, TLS negotiation, and the transport handshake. So an open port doesn't guarantee a working proxy, and opening the same domain directly in a browser doesn't mean the proxy service is responding correctly.

For a TLS error, first establish whether it occurred during the proxy handshake or on the destination website; these involve different certificates. For the proxy handshake, check the server-provided name and your device's clock. For a website error, check the actual destination, certificate chain, and network. Don't disable certificate verification to make two different issues look like one. If the settings came from a trusted source but the config still fails, check whether the active core supports that protocol and transport combination. Similar import screens across clients don't mean every device has the same core capabilities.

Check UDP Support, Duplicate Names, and Update Sources

Whether a proxy can carry UDP depends on the protocol, server, and transport path. Enabling udp on a proxy type that supports the field only permits the core to try; it can't add UDP support to a server that doesn't provide it. First verify the TCP path used by ordinary web pages, then test UDP with the app in question. If pages load but voice calls fail, the outbound may be involved, or the entry point may not be capturing that traffic. A group's test results alone can't tell you which.

When combining sources, use distinct names for hand-written and subscription proxies; don't give two definitions the same reference name. Subscription updates may rename or remove entries, leaving groups that refer to the old name and causing config errors. For bulk sources, use proxy providers if supported by your client and core, then reference those providers from groups. When sharing an example, keep only the necessary structure and replace real server addresses with local test addresses. Don't include credentials, full subscription URLs, or private proxy details in a support request.

Proxy Groups: Manual Selection, URL Testing, and Failover

Separate Entry Groups from Outbound Groups

A rule can target a proxy directly or point to a group. For easier maintenance, have rules reference a stable group name and keep changeable proxy names inside the group; subscription updates then won't require editing each rule. A select group lets you choose manually. If one of its members is another group, the connection follows the selection chain until it reaches a final outbound. When runtime details show that traffic went through a group, keep checking: confirm which member is selected, especially when entry groups are nested with automatic groups.

proxy-groups:
  - name: Outbound Selection
    type: select
    proxies:
      - DIRECT
      - Automatic Outbound

  - name: Automatic Outbound
    type: url-test
    proxies:
      - Local SOCKS Outbound
      - DIRECT
    url: https://example.org/
    interval: 300
    tolerance: 80
    lazy: true

rules:
  - MATCH,Outbound Selection

Use this alongside the root-level proxy definitions from the previous section. Keep those definitions, and replace the existing groups and rules with this section rather than adding duplicate keys. DIRECT is included in the automatic group only to show that built-in outbounds can be group members. In a real setup, don't mix direct and proxy routes in an automatic group if certain traffic must always use a specific outbound. The core selects members according to the group type; it doesn't infer which members are fallbacks from the group name.

How Four Common Group Types Make Decisions

Choose a Group Type for Your Goal
Group TypeHow It ChoosesBest for Testing
selectUser selects a memberReproducing an issue with a fixed outbound
url-testSelects a member based on measured latencyComparing test results across available outbounds
fallbackUses the first available member in list orderTries a preferred outbound first, then a backup
load-balanceDistributes connections according to the configured policyDistributing different connections across a group of members

interval is measured in seconds and controls how often automatic checks run. A shorter interval creates more probe traffic; a longer one may take more time to detect route changes. tolerance is the latency margin, in milliseconds, used by a URL-test group to avoid switching for minor fluctuations. It isn't a connection timeout. lazy: true prevents continuous checks while a group is unused. When a group hasn't been used recently, don't treat its historical latency as proof that it's currently available. Choose a probe URL that's reachable in your environment and responds consistently. The ordinary website in this example illustrates the field; it isn't a universal benchmark for every service.

Failover prioritizes availability and member order, not the lowest measured latency, so put the preferred outbound first. Load balancing distributes different connections; a single download won't combine bandwidth just because the group has multiple members. If a service needs a consistent outbound, use a manual group to test with a fixed member before considering automatic distribution. If tests pass but a particular service still fails, the probe endpoint and service destination aren't interchangeable. Check the destination itself rather than simply shortening the interval.

External Sources, Candidate Sets, and Circular References

proxy-providers:
  Local Source:
    type: file
    path: ./providers/local.yaml

proxy-groups:
  - name: Source Selection
    type: select
    use:
      - Local Source

use refers to a proxy provider by name; proxies refers to proxies or groups. This example requires a provider file at the specified path, containing a proxy collection under a proxies list. Check the path relative to the core's working directory and its path restrictions; it may not be relative to the folder open in your editor. A subscription file managed by the client may not be a provider file of this type, so check its structure before using it here. If you apply filters, make sure the imported candidate set still has members, especially after upstream names change or proxies are removed.

Groups can reference groups defined later in the file, but a chain of references can't loop back to itself. For example, if an entry group includes an automatic group, that automatic group can't include the entry group as a candidate. Map the group relationships from the rule target down until you reach a proxy or built-in outbound. Break any branch that points back to a group already visited. See the proxy group type notes for more details.

Routing Rules: Match Syntax and Priority

Read Each Rule as Type, Condition, and Target

In rule mode, the core checks each new connection against the list from top to bottom; the first matching rule applies. A standard rule has a type, a match condition, and an outbound target. Some types also take extra parameters. DOMAIN matches an exact domain, DOMAIN-SUFFIX matches a domain and its subdomains, and DOMAIN-KEYWORD matches a substring in the name, which can catch more than intended. Enter the domain itself as the condition—not a protocol, page path, or query string. To make an exception for a subdomain, put the exact match before the broader suffix rule.

proxy-groups:
  - name: Standard Outbound
    type: select
    proxies:
      - DIRECT

rules:
  - DOMAIN,example.org,DIRECT
  - DOMAIN-SUFFIX,example.org,Standard Outbound
  - IP-CIDR,192.0.2.0/24,DIRECT,no-resolve
  - IP-CIDR6,2001:db8::/32,DIRECT,no-resolve
  - MATCH,Standard Outbound

A request to the root domain matches the exact rule first; requests to its subdomains continue to the suffix rule. The example uses a documentation-only address range and isn't intended for real connections. The group contains only a direct member, so you can observe match differences without relying on additional proxies. The final MATCH rule has no separate condition; it assigns the remaining traffic to a target. Move it to the top and it will mask every rule below. To route a particular category differently, put the new rule before existing broad matches rather than simply adding it to the end of the file.

IP Matching and no-resolve

Use IP-CIDR for IPv4 ranges and IP-CIDR6 for IPv6 ranges. The prefix length sets the range; use the full prefix length to match a single address. For an IP rule to match a connection that has a domain but no destination address yet, the core may need to resolve it first. The no-resolve option prevents this rule from triggering that lookup. If a comparable address is already available, the IP rule can still match. This option doesn't disable DNS globally, nor does it mean a later connection will never need name resolution.

If an app connects directly to an IP address, the core may not have the corresponding domain, so a domain rule might not match. Conversely, a domain request may skip an IP rule with no-resolve if no address is available. If logs show only an IP but your rules use domains, check whether the test app sent a hostname or an already resolved address to the proxy. Also verify the DNS response mode and traffic capture path. Don't add an overly broad keyword rule just to catch one connection; it may change routing for other traffic too.

Distinguish Rule-Provider Definitions, References, and Updates

You can store large sets of repeated conditions in a rule provider. Define it under the root-level rule-providers, then reference it in the rules list with RULE-SET. The provider defines match conditions; the reference rule determines the outbound to use when they match. Defining a provider doesn't add a rule automatically, and a reference placed after a broad rule may never be reached. Match the provider's behavior, file format, and source to its contents: a domain-only list isn't the same input as a list containing different rule types.

rule-providers:
  Direct Domains:
    type: file
    behavior: classical
    format: yaml
    path: ./rulesets/direct.yaml

rules:
  - RULE-SET,Direct Domains,DIRECT
  - MATCH,DIRECT

In this example, the local rule-set file uses payload as its root key. Its list can contain conditions such as DOMAIN-SUFFIX,example.org, without an outbound name at the end. For just two or three domains, inline rules are simpler. Move rules into a separate set when multiple configs need to share the same conditions. External updates may change the set's contents, so record sample domains, matched rules, and load status—not just the provider name. For more examples, see custom rules and match order.

Subscription Overrides and Config Merging

Separate the Upstream, Override Draft, and Runtime Config

The subscription source is updated by its provider; the override draft stores local changes you want to keep; the runtime config is the final output passed to the core by the client. Editing the subscription cache directly may mean your changes disappear at the next refresh. To keep specific ports, local rules, or group changes, first check whether the client has a separate override feature, which subscription it's tied to, and whether it applies to all subscriptions. Override syntax varies by client and isn't necessarily mihomo YAML. The core reads the processed config; don't assume it will interpret merge instructions from the UI.

A common misconception is that overrides are always appended to the original config. Scalar fields are usually replaced. Nested mappings may preserve other keys or replace the entire block. Lists have no universal merge behavior, and even when a client supports appending, check whether it inserts at the beginning or end. A new rule placed after MATCH is effectively ignored; replacing a group list can also erase its existing names and dependencies. The example below shows readable before-and-after core configs; it doesn't assume any client-specific patch keys.

Compare a Scalar Change with a List Insertion

The original config listens on a local port and uses a direct-only group as its fallback. Now the endpoint needs a new port, and a rule for the example domain should be placed first so you can observe it. Compare the final result: the old rules are still there, the group name is unchanged, and the only change in rule order is the new rule inserted at the top of the list.

# Before merging
mixed-port: 7890
allow-lan: false
mode: rule

proxy-groups:
  - name: Standard Outbound
    type: select
    proxies:
      - DIRECT

rules:
  - MATCH,Standard Outbound
# After merging: complete config passed to the core
mixed-port: 7891
allow-lan: false
mode: rule

proxy-groups:
  - name: Standard Outbound
    type: select
    proxies:
      - DIRECT

rules:
  - DOMAIN-SUFFIX,example.org,DIRECT
  - MATCH,Standard Outbound

After the new port takes effect, update apps that still specify the old port. If the client manages the system proxy, check the port registered in the OS too. A rule override changes outbound routing; it doesn't update the endpoint. Conversely, if apps can't connect at all after loading the config, that doesn't prove a domain rule is wrong. Keep the same test app and destination. First confirm the connection appears in the connection list, then make two fresh requests to compare the example domain with a different one.

Check Preserved Mappings, Duplicate Names, and Subscription Refreshes

When changing dns.enhanced-mode, a client that replaces the entire dns block may drop the existing upstreams and listener settings if you add only this line. Confirm that the client merges individual keys before changing one value; if you're not sure, preview the result in a separate config. The same applies to proxies and groups identified by name: two entries with the same name aren't automatically combined into one object. If the client supports updates by name, check how they work, especially whether the entire member list is replaced.

After an upstream refresh, a group may have been renamed while an override still refers to the old name. Or a subscription switch may mean the override wasn't applied at all. Check three things after an update: whether the selected subscription and override are paired; whether group names and rule order are correct in the final config; and whether a new connection known to match an exception rule behaves as expected. If something goes wrong, pause the override and reload the original subscription for comparison. If the original works but the overridden config doesn't, break the override into smaller changes you can test independently.

For local changes, keep a recoverable source file and a note explaining why each rule was added, which config the target group comes from, and what removing the rule would change. If the same rules are needed elsewhere, share them through a rule provider rather than copying dozens of lines into multiple overrides. Subscription URLs may contain access credentials, so don't post them in forums, screenshots, or public repositories. Before sharing a minimal example, remove real addresses, proxy credentials, and identifiable internal domains.

Config Loading, Connection Tests, and Troubleshooting

Test in Three Stages: Load, Entry Point, and Outbound

First check whether the config loads, then whether the connection reaches the right entry point, and only then whether the outbound works. In a GUI client, use the import preview or runtime logs to find the first error. With a standalone core, run the first command below from the config directory so the working directory and test config are explicit. Relative paths, provider files, and other required resources must also be available in that environment. A successful command only confirms that the core accepts the config; it doesn't prove the DNS upstream is reachable or a remote proxy is working.

mihomo -t -d . -f config.yaml
curl --proxy http://127.0.0.1:7890 --head https://example.org/

Run the second command only when the core is running with the example config and the mixed port is actually 7890. In PowerShell, use curl.exe if the name resolves to a different command. This sets a proxy for this request only; it doesn't change system settings. Watch the connection list or logs while the command runs. If there's no request, check the endpoint and listener first. If there is, inspect the matched rule, group, and final outbound. If the target doesn't accept HEAD requests, test again with a normal request from the app; a server rejecting a request method isn't a port problem.

Choose the Next Check Based on the Symptom
SymptomCheck FirstDon't Change Yet
Config fails to loadIndentation, field types, name references, and local filesSystem proxy settings
App reports a refused local connectionCore process, listening port, and app proxy addressOutbound proxy protocol
Connection works, but uses the wrong outboundActive mode, first matching rule, and selected group memberProxy authentication settings
Expected outbound, but request times outOutbound reachability, destination resolution, and destination serviceWorking rule order

Change one variable while testing the same connection

Use the same app to access the same domain, and record when it happens and the actual outbound chain. Websites may send multiple requests in the background, and the page's domain may differ from those used for images, scripts, or sign-in. Find the first failed request rather than searching only for the name in the address bar. If you reload the config while an old connection is still open, make a fresh independent request to avoid drawing conclusions from stale connection details. Speed tests, app errors, connection details, and logs cover different stages; compare clues from the same time and destination.

After confirming that the request reaches the core, you can isolate rule and outbound issues by changing only the test rule to use a manual group with a fixed outbound. If direct works but a proxy fails, check that proxy's address, protocol, and TLS settings. If multiple outbounds fail, revisit destination resolution and service status. If the issue appears only with TUN enabled, narrow it down to virtual-interface capture, route conflicts, or the DNS path. Don't also change upstreams and rewrite groups at the same time, or you'll lose the comparison.

Treat certificate warnings as a separate signal. Check your device's clock and the domain shown in the warning, then compare behavior with the proxy disabled and with the specified outbound. If the issue is in the proxy handshake, client logs are usually more useful than a browser warning. If the certificate error comes from the destination site, investigate that service and the current network path; don't bypass the warning. See the HTTPS certificate error troubleshooting steps to distinguish the causes. For ordinary browsing issues or missing client toggles, check Troubleshooting before editing the config file.

Finish Troubleshooting and Keep Reusable Findings

Once you've found the cause, keep temporary tests separate from your long-term config. Restore the normal log level and mode, close test endpoints you no longer need, and confirm the active config still points to the intended subscription. Record which file reproduced the issue, which field you changed, and which rules matched before and after. If the issue returns after an update, these notes can help distinguish an upstream change from a different override order or traffic entry point. When asking for help, share only the necessary snippets and the stage where the error occurred. Redact internal addresses, access tokens, subscription URLs, and personal identifiers from logs first.

If even a minimal config won't load, revisit the Getting Started guide to check the import and test steps, then narrow the issue down to a specific device or client. If the minimal config works, add DNS, proxies, groups, and custom rules back one at a time, repeating the same checks at each step. When an error returns, focus the next round on the layer you just added. Isolating one change at a time is usually more effective—and preserves more working settings—than replacing the entire subscription.

Clash Download