Clash / mihomo Glossary

Clash Glossary

When you see a configuration field, menu item, or log message, first identify which layer it belongs to. Successfully importing a subscription only means the configuration loaded; node connectivity, rule matching, and DNS resolution each need to be checked separately.

Core and Client

First check whether a setting is saved by the client or applied by the core. This distinction helps you find where to look when reviewing updates, latency, or logs.

mihomo

mihomo is an open-source proxy core that continues the work of Clash.Meta. It parses configuration, matches rules, and establishes outbound connections. Client and core versions are separate, and different releases of the same client may bundle different core versions. If a configuration field is unrecognized, first check which core version is actually running.

GUI Client

Clash Verge Rev and FlClash both provide graphical interfaces for importing configurations, choosing proxy groups, and reviewing connection logs. Menu options may be saved as client preferences or translated into core configuration, so their names alone don't tell you what value is actually applied. Subscriptions can usually be imported again when switching clients, but local overrides and keyboard shortcuts may not carry over.

System Proxy

The system proxy uses your operating system's proxy settings to direct apps that honor them to a local proxy port. If a browser works after you enable it, that doesn't mean apps with their own network settings are also going through the core. To troubleshoot, try the same address in two apps, then check whether each one uses the system proxy.

Latency Test

Node latency is usually measured by a test request sent by the client or core through that node to a specified address. The displayed time in milliseconds is the duration of that test, not simply the network's round-trip time. The test address, connection reuse, and timeout threshold all affect the result. Compare tests only when they use the same method; when choosing a download route, also check real-world throughput and sustained transfer stability.

Core Logs

Core logs record events such as configuration load errors, connection failures, and rule matches, with a log level for each entry. When troubleshooting, note when the issue occurs and whether the error appears on startup or only when accessing a particular domain. For startup errors, check configuration loading first; for domain-specific errors, investigate DNS and the outbound route. Remove subscription URLs, node addresses, and private domains before sharing logs.

Proxy Protocols

A protocol describes how a client communicates with a proxy server; it doesn't determine which websites use the proxy. When reading a node configuration, check type first, then verify the fields required by that protocol.

Node

A node is a specific proxy egress configuration, listed under proxies or loaded by a proxy provider. Its name is mainly for identification; the server address, port, protocol, and required parameters determine whether it can connect. Two differently named nodes may use the same server, so the number of entries doesn't tell you how many usable routes you have.

Shadowsocks

Shadowsocks is an encrypted proxy protocol. In a mihomo node configuration, its type is written as type: ss. The cipher value must match the server's settings; a reachable port only shows that the service is accessible, not that the parameters are correct. Plugins and transport options must also match the server's requirements.

SOCKS5

SOCKS5 is a general-purpose proxy protocol that can forward TCP and defines a method for forwarding UDP, though UDP support depends on both ends. SOCKS5 does not encrypt application traffic and is not the same as HTTPS. A local SOCKS5 address in an app's settings is different from a SOCKS5 node used as a remote egress in the configuration.

Trojan

In a mihomo node, Trojan is written as type: trojan. A typical configuration connects over TLS and authenticates with a password. A TLS certificate error and a proxy authentication failure are different issues: check the server name and certificate chain for the former, and the authentication parameters for the latter. Don't disable certificate verification just to dismiss a warning.

Hysteria2

Hysteria2 is a QUIC-based proxy protocol that uses UDP for transport. Its configuration is not interchangeable with the first-generation Hysteria protocol, so check the protocol identifier and core version when importing it. If it connects on one network but times out on another, check UDP connectivity before changing the app's routing rules.

Rules and Routing

Rules determine which action or proxy group handles a connection, while the proxy group determines which member is actually used. For a step-by-step walkthrough of a complete configuration, see the rule-based routing section in the guide.

Rule-Based Routing

In rule mode, mihomo checks connections against rules in the order listed, from top to bottom, and applies the action or egress specified by the first match. More specific rules aren't automatically moved to the top, so put exceptions before broader rules. To troubleshoot, find the matched rule in the connection log and check which egress it points to.

DOMAIN-SUFFIX

DOMAIN-SUFFIX matches a domain suffix by label, covering both the specified domain and its subdomains. To match only one exact hostname, use DOMAIN instead; neither rule type matches URL paths. If a connection exposes only a destination IP and the core can't determine the domain, this domain rule won't match.

GeoIP

A GEOIP rule uses IP geolocation data to map the destination address to a region and select an egress. It doesn't look up where a website is registered or use the visitor's location. A domain served from multiple addresses through a content delivery network may produce different matches depending on DNS resolution. If the region is unexpected, check the actual destination IP and the geolocation data currently loaded.

Proxy Groups

Proxy groups are defined under proxy-groups and give rules a set of egress options to target. With select, users choose a member manually; url-test picks one based on probe results and configured conditions such as tolerance. If a domain matches the expected proxy group but uses the wrong egress, check the group's current selection and the status of its members.

MATCH

MATCH has no domain or address condition and usually goes last in the rules list, catching connections that matched nothing above. It takes an action or outbound, such as DIRECT for a direct connection; MATCH alone does not mean traffic is proxied. Move it earlier, and later rules may never be checked.

Networking and DNS

DNS resolution and application connections are separate requests. If a domain resolves but won't load, check the DNS and connection paths separately. To capture network traffic, see the TUN section in the guide.

TUN Mode

TUN is a virtual network interface that lets mihomo receive packets routed by the operating system, without requiring apps to use the system proxy. Which connections it can capture depends on routing settings, exclusions, and system permissions. Enabling TUN doesn't mean every connection uses a proxy egress. First confirm that traffic reaches the core, then check whether the matched rule sends it direct or through a proxy.

DNS

DNS resolves domain names to addresses and other records. mihomo's dns field controls the core's resolver. The operating system, browser, and core may each use a different resolution path; changing nameserver alone doesn't stop a browser from using its own secure DNS. When troubleshooting a domain access issue, first identify which layer sent the query, then check the result it received.

Fake-IP

When dns.enhanced-mode is set to fake-ip, the core can return a synthetic address to an app and store the mapping between that address and the domain. When the connection passes through the core, it can use this mapping to recover the domain and apply domain-based routing rules. Seeing a synthetic address doesn't mean DNS failed; apps that require real addresses may need to be added to fake-ip-filter.

DNS Leak

A DNS leak occurs when a domain query takes an unexpected resolution path—for example, when a connection is routed by the rules but its DNS query goes to a resolver on the local network. The resolver names shown by a test page are clues, not conclusive evidence based on location or name alone. Check system DNS, browser secure DNS, and the core's DNS settings together.

DoH

DoH, or DNS over HTTPS, carries DNS queries over HTTPS to protect them between the client and the chosen resolver. The resolver can still see the queries it receives, and using DoH doesn't automatically route app traffic through a proxy. Browsers and the core can use DoH independently, so check which one sent the request when troubleshooting.

Subscriptions and Configuration Files

Distinguish remotely delivered configurations, independently updated node or rule sets, and local changes made in the client. If you're new to Clash, first verify the original configuration with the subscription import guide, then add overrides.

Subscription

A subscription is usually a URL that a client periodically fetches to retrieve a configuration or node list, not an individual node. The response may be a complete Clash configuration or a list that another client can read but yours can't. Subscription URLs often contain access credentials; when asking for help, describe the error without sharing the full URL.

YAML

YAML is a common configuration format for mihomo. It uses indentation to express structure, and list items typically begin with a hyphen. When editing rules or proxies, keep items at the same level aligned and use spaces for indentation. A parser may report the line where it noticed an error, so check the preceding item and the field it belongs to as well.

Proxy Provider

Proxy providers are defined under proxy-providers and load a set of proxy nodes from a separate source. A proxy group can reference a provider with use, so the main configuration doesn't need to list each node individually. If a group suddenly has no members, first check whether the provider loaded successfully and returned readable content, then verify the provider name referenced by the group.

Rule Provider

Rule providers are defined under rule-providers and load rule sets maintained separately. To use one for matching, you must also reference it with RULE-SET in rules; the reference's position is subject to rule order. If importing fails, check the source, the rule-set format, and whether its behavior is compatible.

Configuration Override

A configuration override is a local change applied by the client on top of the original configuration, such as changing DNS settings or adding an exception rule. It may not be written back to the subscription file, and merge order varies by client. If settings seem to revert after a subscription update, check whether the override is still enabled for that configuration, then compare the final configuration passed to the core.