Clash Glossary

Compare the client interface with config.yaml to distinguish traffic entry points, routing rules, and outbound settings.

Browse by Category

Client menu labels may vary; this page explains behavior using mihomo fields. For your first configuration import, start with the Getting Started guide. For platform-specific system proxy or TUN settings, see the cross-platform user guide.

Core and Client

mihomo

mihomo is the proxy core that reads configuration, matches rules, and establishes outbound connections. The client imports configurations, displays logs, and manages the core process; its interface labels don't indicate the core version. If the same configuration behaves differently on two devices, check the core versions first, then compare the configurations each device actually loaded.

Subscription

A subscription uses a URL to fetch and update a set of proxies or a complete configuration. A full configuration may include rules and DNS settings, while a proxy-only subscription needs the client or configuration file to set up policy groups. To troubleshoot an import error, first check the format required by the client. Hide the subscription URL before sharing a screenshot.

Proxy

A proxy is an outbound connection definition, usually comprising a server address, port, protocol, and the connection parameters required by that protocol. Its name is mainly for display and configuration references; a region in the name doesn't guarantee the actual exit location. After renaming a proxy, check that policy groups don't still reference its old name.

Proxy Latency

Proxy latency usually measures the time it takes to reach a specified test address through a proxy. It is not bandwidth or the round-trip time to every website. When comparing proxies, use the same test address and network. A single timeout may also mean the test site is unreachable; it doesn't prove the proxy is dead.

Configuration Fields

YAML

YAML describes configuration structure using key-value pairs, lists, and indentation. In config.yaml, spaces typically define the hierarchy. Passing syntax validation doesn't mean every field is supported by the current core. If an import fails, check the indentation and list markers near the reported line, then verify the field name against the core version.

mixed-port

This field sets the local listening port shared by the HTTP and SOCKS proxies; it is not the server port of a remote proxy. When entering the system proxy address manually, use the port the client is actually listening on. If the log reports that the address is already in use, check whether another client or an old process has claimed the port.

proxy-groups

This field defines policy groups, letting rules route connections to a group instead of hard-coding a specific proxy. select lets you choose manually; url-test selects a candidate based on test results; fallback prefers the first available candidate in order. To see where a connection went, check both the matched rule and the outbound currently selected in its group.

proxy-providers

This field declares where a proxy collection comes from, such as a remote resource or local file. Policy groups use use to reference a collection by name; proxies lists candidate names directly. Updating a proxy collection doesn't update the full configuration. If new proxies don't appear in a group, check that the collection loaded successfully and that the group references it.

Proxy Protocols

Shadowsocks

In mihomo configuration, Shadowsocks uses the type ss. In addition to the address and port, a connection requires the same encryption method and authentication parameters as the server. If the server uses a plugin, check that the core supports its configuration too. Successfully importing a proxy entry only means the configuration was read; it doesn't confirm that the connection parameters work.

Trojan

Trojan typically uses a password to authenticate over a TLS connection. The server address determines where to connect, while the name used for TLS is for the handshake and certificate validation; they may differ. If the certificate name doesn't match, check the server name in the configuration first rather than assuming the proxy password is wrong.

VLESS

VLESS uses a UUID to identify users; whether TLS is enabled and which transport is used depend on the configuration. Two entries labeled VLESS may use different transport combinations. When moving between clients, check that the configuration is complete and that the target core version supports the combination.

WireGuard

WireGuard is an encrypted tunneling protocol that identifies peers by public key, and it can be used as a mihomo outbound type. When checking the configuration, distinguish the peer's network address from the address inside the tunnel. A WireGuard outbound describes where traffic exits; TUN describes how system traffic enters the client. These settings are not interchangeable.

Routing Rules

Traffic Routing

In rule mode, the core checks the rules list from top to bottom and applies the policy specified by the first match. More specific rules usually go before broader ones; otherwise, a broader rule may match first. To troubleshoot, check the matched rule in the connection log, then inspect the outbound selected by its policy group.

DOMAIN-SUFFIX

This rule matches the specified domain and its subdomains. For example, both example.org and www.example.org match the suffix example.org. It doesn't inspect URL paths or query parameters. If the client only has the destination IP and no domain information is available, it can't match by this suffix.

GeoIP

GeoIP uses an IP range database to classify a destination IP by region. For example, GEOIP,CN,DIRECT routes connections classified as CN directly. Database records may change as IP addresses are allocated, and don't pinpoint a server's physical location. The same domain may resolve to different IPs and therefore match different policies.

MATCH

MATCH is an unconditional rule that specifies what to do when no earlier rule matches. For example, MATCH,DIRECT routes all remaining connections directly. If it appears in the middle of the list, later rules never get checked. When verifying a custom rule, make sure it isn't preempted by an earlier catch-all.

Network Modes

System Proxy

The system proxy points the operating system's proxy settings to the local listening address provided by the client. Only apps that use the system proxy, and connection types it supports, will follow this setting; other apps may use their own network settings. If system proxy was enabled before you quit the client, check that the system isn't still pointing to a port that's no longer listening.

TUN Mode

TUN uses a virtual network interface and routing to capture IP traffic, including traffic from some apps that don't use system proxy settings. Availability depends on operating system permissions and may be affected by another VPN or existing routes. After enabling TUN, connections that reach the core are still handled according to the current mode; this doesn't mean every connection uses the same proxy.

Rule Mode

Rule mode corresponds to mode: rule. The core uses the configuration to decide whether a connection goes direct, gets rejected, or is sent to a specified outbound. It controls what happens after traffic reaches the client; it doesn't route system traffic into the client. If the connection doesn't appear in the list at all, check system proxy or TUN before changing match conditions.

Global Mode

Global mode corresponds to mode: global and sends connections received by the core to the GLOBAL policy, rather than routing them through the rule list. “Global” applies only to traffic the core has received; it doesn't take over the system's network traffic. After using it temporarily to troubleshoot, switch back to the previous mode and test routing again.

DNS and Resolution

Fake-IP

Fake-IP returns a synthetic address managed by the core to an app. When a connection goes to that address, the core can recover the original domain and apply domain-based routing rules; the address isn't the destination server's real IP. If apps such as LAN services need real addresses, check whether fake-ip-filter covers those domains.

nameserver

nameserver is the list of regular upstream resolvers in the dns section; it isn't the operating system's DNS setting. More specific settings, such as nameserver-policy, can route queries to other upstreams based on the domain. If results don't change after editing the list, check whether another rule specifies the resolver or the query never reached the core.

DoH

DoH sends DNS queries over an HTTPS connection, protecting them from direct inspection along the path to the selected resolver. The resolver can still see the queries, and DoH doesn't determine which outbound a later website connection uses. When troubleshooting a DoH timeout, distinguish a failure to resolve the resolver's address from a failure to establish the HTTPS connection.

DNS Leak

A DNS leak occurs when queries bypass the intended path and reach a resolver you didn't intend to use. Apps' built-in secure DNS, the system resolver, and the core's upstream resolvers may all be active, so a website's exit IP alone can't show where its DNS queries went. To troubleshoot, identify the intended upstream first, then check the actual resolution path in the browser and system apps separately.

Download Clash