Glossary / 25 terms

Clash Glossary

Core, rules, and configuration options. Browse definitions by where each setting belongs.

Look up configuration keys under “Configuration Options”; for system proxy, TUN, or DNS issues, see “Networking & System.” For hands-on steps, see Getting Started, or find fixes by symptom in the Troubleshooting Guide.

01 / Connections & Outbounds

Core & Protocols

The core applies the configuration, protocols define how connections work, and nodes and proxy groups determine the available outbounds.

mihomo

mihomo is an open-source proxy core that continues the Clash configuration ecosystem. It reads configuration, matches rules, handles DNS, and establishes outbound connections. The client interface lets you edit or switch configurations, start the core, and view its status; different interfaces can use the same core. To check whether a field is supported, verify the version of the core the client actually loads—not just the client version.

Proxy Protocols

A proxy protocol defines how a client connects to a proxy server and forwards data. A node's type field selects the corresponding implementation. Two nodes with the same server address and port are not interchangeable if their protocols or handshake parameters differ. The protocol an app uses to connect to a local HTTP or SOCKS port is separate from the one the core uses to connect to a remote node.

Nodes

A node is a selectable proxy outbound in a configuration, usually including a name, server address, port, and protocol-specific parameters. Its name is only a label; a location or route tag doesn't replace real-world testing. Selecting a node sets the outbound for a policy, but in rule mode, a connection must first match a policy that uses that node.

Proxy Groups

A proxy group combines multiple outbounds under a policy name that rules can reference. Its members can be nodes, built-in outbounds, or other proxy groups. A manual group uses the currently selected member; an automatic group selects one based on its configured test URL, interval, and tolerance. When troubleshooting an outbound, check which group the connection matched, then see which outbound that group selected.

Shadowsocks

Shadowsocks is a proxy protocol, usually configured as type: ss in mihomo node definitions. The server address, port, encryption method, and password must match the server configuration. Some setups also require a matching transport plugin. A configuration loading successfully only means the client accepted the fields; it doesn't prove the server is reachable or the parameters match.

02 / Matching & Policies

Rules & Routing

Separate match conditions, category data, and destination policies, then check the order of the rules.

Rule Routing

Rule routing checks connections in configuration order, and the core typically applies the policy from the first matching rule. Match conditions can include domain suffixes, destination IP ranges, or other connection properties; policies can route directly, reject traffic, or use a proxy group. To add an exception for a domain, place its specific rule before any broader rule that would catch it, then verify the match with a new connection.

GeoIP

GeoIP rules match connections against IP ranges defined in a data file; they don't look up website domains directly. A match identifies an address category, not the server's confirmed physical location. The same domain can resolve to different addresses in different environments. When troubleshooting a rule, compare the connection's destination address with the data file in use.

GeoSite

GeoSite groups domains by site or purpose. Rules reference category names in a data file rather than determining where a domain's resolved IP address belongs. A site's pages, images, and APIs may use different domains, so a match for the main site doesn't guarantee that every request will match. After updating category data, use the connections panel to check which rule matches each domain.

RULE-SET

RULE-SET references rules from a rule provider, defined under rule-providers, so a set of match conditions can be maintained separately from the main configuration. The provider's matching behavior must fit its list—for example, a domain list and an IP-range list aren't interchangeable. A rule set's priority still depends on where its reference appears in rules, not on the size of its list file.

MATCH

MATCH catches any connection that hasn't matched an earlier rule and is usually placed at the end of the rules list as a fallback. MATCH,DIRECT sends all remaining connections directly; replacing DIRECT with a proxy group name sends them to that group's selected outbound. If MATCH comes first, later rules never get a chance to match.

03 / CONFIG.YAML

Configuration Options

Find settings by their configuration keys, and distinguish the text format, listening entry points, and forwarding behavior.

YAML

YAML is the text format used for mihomo configuration. Indentation defines nesting, and hyphens mark list items. Use spaces for indentation and align sibling fields; if the configuration fails to load, check the reported line and its parent level. Valid YAML only means the text can be parsed—the field names and values must still follow the core's configuration schema.

mixed-port

mixed-port sets a local listening port that accepts both HTTP and SOCKS proxy requests from apps such as browsers and command-line tools. If you change it, update any apps where the proxy port was set manually. A listening port only confirms that the local entry point is ready; check separately whether an app is connected and where its traffic is routed.

mode

mode sets how the core handles traffic that has reached it. Common values are rule, global, and direct. Rule mode selects a policy based on rules; global mode sends connections to the global policy; direct mode uses a direct outbound. The mode setting doesn't route traffic into the core—apps still need an entry point such as the system proxy, an app-level proxy, or TUN.

allow-lan

allow-lan controls whether devices on your local network can use the proxy listener. If enabled, check the listening address, system firewall, and guest network isolation. Then point another device to the host running the client and its proxy port. You usually don't need this for local use; when sharing the proxy, limit access to trusted devices.

proxy-providers

proxy-providers defines node providers that load node lists from a local file or remote URL. Proxy groups can reference them with use. Providers generally manage only the node list; the main configuration still controls listening ports, rule order, and groups. If updated nodes don't appear in the expected group, check the group's provider reference and filter criteria.

04 / Traffic & DNS

Networking & System

First check how app traffic reaches the core, then verify the path taken by DNS queries separately.

System Proxy

The system proxy is an operating-system setting that directs apps to a specified proxy address and port. Apps that manage their own network connections or explicitly ignore system settings may still connect directly. To check whether an app is using the proxy, make a new request and inspect the connections panel instead of relying on the toggle alone.

TUN Mode

TUN mode uses a virtual network interface to receive IP traffic routed to it by the operating system. It's useful for apps that don't honor system proxy settings. Coverage depends on routes, exclusions, and platform permissions—not on whether the proxy mode is set to global. If local network devices become unreachable after enabling TUN, first check whether the local subnet is being routed through the virtual interface.

DNS Leaks

A DNS leak occurs when domain lookups take a path other than the one you intended, reaching a resolver outside the expected scope. Encrypted DNS in a browser, the system resolver, and the client's built-in resolver may each use different paths, so check the web traffic's exit IP separately from the DNS query's route. Start by identifying which apps and domains should use the specified DNS path.

Fake-IP

Fake-IP is a DNS mode in which the core returns a reserved IP address for a domain and records the mapping. When traffic reaches the core, it can use that mapping to recover the domain and apply domain-based rules; the returned address isn't the server's real IP. For local services that need real addresses, check whether their domains should be added as exceptions to the Fake-IP filter list.

DNS Cache

A DNS cache stores previous lookup results to avoid repeated queries. Apps, the operating system, and the core may each have their own cache. After switching upstream resolvers, an old response may remain in use until its cache entry expires. When troubleshooting, test with a domain you haven't visited before, then decide whether a specific cache needs clearing; there's no need to reset the entire configuration first.

05 / Client Operations & Status

Client Features

Distinguish importing a configuration from applying it and selecting an outbound; use connection records and logs to verify what actually happens.

Subscription

A subscription is a URL a client uses to fetch a remote configuration or node list. The returned content depends on the subscription format and server implementation. A successful import only means the client accepted the remote configuration; whether it's in use depends on which configuration is selected. Subscription URLs may contain access credentials, so hide the full URL and its query parameters before sharing screenshots or logs.

Latency Test

A latency test typically measures how long the core takes to get a response from a test URL through a specified outbound. Results depend on reachability, handshake time, route load, and timeout settings; they don't directly indicate download speed. Compare nodes using the same test URL and conditions. Judge a single timeout alongside the results of accessing the actual service.

Connections Panel

The connections panel shows connections handled by the core, often including the destination address, matched rule, and outbound route. After changing a rule, make the app open a new connection and check its entry; existing long-lived connections may keep using their original outbound. If a request doesn't appear in the panel, that alone doesn't prove it failed—it may not have passed through the core or may have ended before you checked.

Log Level

The log level controls how much detail the core records, helping you distinguish issues with configuration loading, DNS resolution, and outbound connections. To reproduce a problem, temporarily increase the verbosity, note when it happened and the first related error, then restore your usual level. Before sharing logs, hide subscription URLs, internal domains, and other sensitive connection details.

Switching Configurations

Switching configurations applies a different local or imported remote configuration to the core; it isn't the same as changing the selected node in a proxy group. A switch may also change rules, DNS settings, and proxy group members. Whether it changes ports depends on whether the client overrides those fields. After switching, confirm which configuration is active, then verify the behavior with a new connection.