CLASH / GLOSSARY

Clash Glossary

Match the settings in your client to YAML fields to see where traffic enters, how rules are matched, and which outbound handles it.

Cores and Protocols

Tell apart the client interface, the connection handler, and the remote outbound.

mihomo

mihomo is a proxy core descended from Clash.Meta. It handles connections, matches rules, and selects outbound routes. The graphical client manages the interface and configuration; its version number is not the core version. If a field is unsupported, check the active core and its version under About or Settings.

Proxy Node

A proxy node is an outbound option in the configuration, typically made up of a name, server address, port, and protocol parameters. Its name is just a label in the interface; availability depends on the service, network reachability, and whether the parameters are correct. If one node fails, compare it with another in the same proxy group.

Proxy Protocol

A proxy protocol defines how the client connects to a proxy server and transfers data, as with Shadowsocks and SOCKS5. The node configuration's type field specifies the outbound protocol, and supported types depend on the core. Protocols are separate from rule, global, and direct modes: the protocol defines how a connection is sent, while the mode determines where it goes.

Latency

The latency shown on the proxy page is usually the time the client takes to probe a test URL through a selected outbound, measured in milliseconds. It varies with the test URL, network conditions, and timeout settings, and is not a measure of bandwidth or actual page load speed. For a fair comparison, test nodes against the same URL and check for repeated timeouts.

Proxy Modes

First check whether traffic is entering the core, then see how the current mode handles it.

Rule Mode

In rule mode, connections entering the core are checked against configured rules in order, then sent to the specified proxy group, node, or built-in policy. Routing is not automatically determined by app name; different connections from the same app may use different outbounds. To troubleshoot a website, check the Connections page for the matched rule and actual outbound.

Global Mode

Global mode sends all connections entering the core to the GLOBAL group instead of matching them against routing rules one by one. Whether traffic is proxied or sent direct still depends on the outbound selected in that group. Connections not captured by the system proxy, TUN, or another input will not enter the core just because global mode is enabled.

Direct Mode

Direct mode sends connections entering the core straight to their destinations, bypassing remote proxy nodes in the configuration. This is not the same as quitting the client: the system proxy or TUN may still be enabled, and traffic may continue to appear on the Connections page. To test without the client handling traffic, disable the relevant traffic-capture entry points first.

System Proxy

The system proxy is an operating-system setting that clients typically point to a local listening port. Apps configured to use the system proxy send relevant requests to the client, while apps with their own network settings may be unaffected. The system proxy brings traffic in; rule or global mode determines how it goes out.

Rules and Routing

Compare the conditions, order, and target policies in the rules list.

Rule Routing

Rule routing sends connections to different outbounds based on conditions such as domain names and destination addresses. Rules are usually evaluated from top to bottom, and the first match determines the policy for that connection. Broad rules placed too early can prevent later exceptions from matching, so check rule order before reviewing the conditions themselves.

DOMAIN-SUFFIX

DOMAIN-SUFFIX matches a domain suffix. For example, example.com matches both the domain itself and its subdomains. It does not match URL paths or query parameters, and it is not a general substring match. To match one exact hostname, use DOMAIN instead.

GeoIP

GeoIP uses a geographic IP database to match a destination IP to a country or region; it does not use the domain suffix. A domain request may need to be resolved to an IP first, and the same domain can return different IPs on different networks. If the result is unexpected, check the actual destination IP and the database used by the core.

MATCH

MATCH is a rule with no additional matching condition. It usually goes at the end of the rule list to catch connections that did not match earlier rules. Its policy can be a proxy group or a built-in option such as DIRECT. If MATCH appears first, later, more specific domain rules will never be reached.

DNS and Networking

Consider traffic entry, domain resolution, and connection outbounds separately.

TUN Mode

TUN mode creates a virtual network interface and uses routing to pass selected IP traffic to the core. This can capture traffic from some apps that ignore system proxy settings. Starting TUN may require administrator privileges, or the client may use a service component to configure routes. TUN changes how traffic enters the core; it does not automatically switch outbound traffic to a global proxy.

Fake-IP

Fake-IP is a DNS enhancement mode in the core, enabled with enhanced-mode: fake-ip. The core returns a mapped address to the app, then uses it to identify the original domain when the connection enters the core. Seeing a mapped address does not mean upstream resolution failed; a few apps that depend on real IP addresses may need special handling.

DNS Leak

A DNS leak occurs when domain lookups take an unintended path and reach an unexpected DNS resolver. Proxying web connections does not prove that browser and system DNS queries use the same route. When checking for leaks, first identify which requests are handled by the browser's encrypted DNS, the system resolver, and the client's DNS.

nameserver

nameserver is the field in the dns section that specifies upstream DNS servers for queries handled by the core. Some domains can use different upstreams specified by nameserver-policy, so a single configuration may have multiple DNS resolution paths. Changing this field usually does not affect requests that bypass the core's DNS handling.

Configuration Files

Tell apart the full configuration, node sources, and standalone rule sets.

YAML

YAML is a common text format for Clash configurations. Indentation with spaces defines nesting, and hyphens mark list items. rules is the rule list, and proxy-groups is the proxy group list; both are usually at the top level of the configuration. If parsing fails, check the indentation, colons, and hyphens near the reported line, then confirm that the core supports the fields used.

Subscription

A subscription is usually a URL used to fetch a remote configuration or list of proxy nodes. Importing a subscription saves the configuration source, but the active configuration is still whichever one is currently selected in the client. Subscription URLs may contain account credentials, so redact the full URL before sharing screenshots or logs.

Proxy Providers (proxy-providers)

proxy-providers defines a set of nodes as a separately loadable data source that proxy groups can reference with use. The source can be a local file or a supported remote node list. Unlike a full subscription configuration, updating a node source does not replace the routing rules in the main configuration.

Rule Providers (rule-providers)

rule-providers organizes matching conditions into standalone rule sets, which are referenced by RULE-SET entries in rules. A rule set defines which connections match; the referencing rule specifies the policy to apply. Defining a provider without referencing it in the rule list does not route any traffic by itself.

Client Features

Choose an outbound on the proxy page, update subscriptions on the configuration page, and check results on the Connections page.

Proxy Group

A proxy group is a selectable policy in the interface and is defined by proxy-groups in the configuration. It can contain nodes, other proxy groups, or built-in policies. When a rule points to a proxy group, the group's type and current state determine the actual outbound. Manually switching a group changes only future connections handled by that group; it does not rewrite routing rules.

URL-Test Group (url-test)

url-test is a proxy group type that automatically selects an outbound by probing candidates against a specified URL. interval sets how often to probe, while tolerance can prevent switches caused by small latency fluctuations. Results reflect performance only to the test URL; if that URL is unreachable, it does not mean every node in the group has failed.

Subscription Update

Updating a subscription fetches a fresh configuration snapshot from its original URL. This is different from updating the client or proxy core. Whether the active configuration reloads automatically afterward depends on the client's implementation and settings. If you have custom rules, use the client's supported override feature where possible, or save your changes separately before updating the remote configuration.

Connection Log

The Connections page lists connections seen by the core, typically showing the destination, matched rule, and actual outbound. It is useful for checking routing, but it is not a complete record of operating-system network activity. If a request is missing, check whether the connection has ended, whether the list is filtered, and whether the app's traffic entered the core.