Configuration Reference / Term Index

Clash Glossary

From subscriptions, nodes, and proxy groups in the client to port and DNS fields in configuration files. Browse terms by category or compare commonly confused concepts in the three groups below.

Core and Clients

Distinguish the user interface, the running core, and the imported configuration.

Clash client

A client is an interface for managing configurations, proxy groups, and connection logs. It often also starts and stops the core. Different clients may use the same core but vary in how subscriptions are added, configurations are overridden, and permissions are requested. Identify the client before following a guide.

mihomo

mihomo is a proxy core descended from Clash.Meta. It reads configurations, parses rules, and establishes connections. If a YAML field fails to load, first check which core and version are running, then confirm whether the client has overridden the configuration.

Subscription

A subscription is a way for a client to fetch a configuration or node list from a URL. A full configuration can include rules and proxy groups, while a node list must be referenced by an existing configuration. Before updating a subscription, check where local changes are stored so they are not overwritten.

Node

A node is a proxy exit configuration that a client can connect to. It usually includes a protocol, server address, port, and authentication parameters. A proxy group can select an exit from multiple nodes, and nodes with the same name may come from different subscriptions. When troubleshooting, check which exit was actually selected.

Latency

The latency shown in a client is usually the time taken to reach a test address through a selected node. It reflects both the network path and the target service's response. Compare nodes using the same test address; lower latency does not mean faster downloads, and access to the target website should be checked separately.

Proxy Protocols

Start with the node's protocol and confirm that the client and server use matching parameters.

Shadowsocks

Shadowsocks is an encrypted proxy protocol, usually identified as ss in mihomo node configurations. A connection requires both ends to use matching encryption methods, passwords, and optional parameters. When migrating a configuration, retain the original encryption method rather than copying only the address and port.

Trojan

Trojan usually carries proxy traffic over a TLS connection and uses password authentication. Establishing a connection also depends on the server certificate, the server name used in the TLS handshake, and transport settings. Even if the target port is reachable, mismatched parameters can still cause the connection to fail.

VLESS

VLESS is a proxy protocol that commonly uses a UUID to identify users. Transport and security settings are configured separately. When migrating a node, check the transport type and whether TLS or REALITY is used; an address, port, and UUID alone may not reproduce the original connection.

SOCKS5

SOCKS5 lets an application hand a connection to a proxy. It can connect an application to a local listening port or connect to an upstream proxy. SOCKS5 does not provide encryption; whether the application or proxy resolves a domain depends on whether the application sends the domain name or a resolved IP address.

Rules and Routing

First check which rule matched, then confirm which exit that rule selected.

Rule routing

Rule routing selects an exit for a connection based on conditions such as its domain or destination IP. Rule mode usually checks rules in configuration order and uses the first match, so specific exceptions generally belong before broad rules. For unexpected direct or proxied connections, first check the matched rule in the connection log.

Proxy group

A proxy group organizes nodes, other proxy groups, or a direct option into exits that rules can reference. Manual selection and automatic testing are different group behaviors. Changing a group's exit affects only connections assigned to it; it does not reroute connections handled by other rules.

GeoIP

GeoIP uses an IP database to match a destination address to a region label. A rule might use GEOIP,CN,DIRECT. Matching is based on the destination IP, not the website's domain suffix, content language, or user's location. Results can also differ when the same domain resolves to different addresses.

MATCH

MATCH is an unconditional rule type, usually placed at the end of the rule list to catch connections not covered by earlier rules. For example, MATCH,DIRECT sends remaining traffic directly. If MATCH is placed before specific rules, those later rules will never be checked.

DNS and Networking

Check separately where domain queries go and how application traffic enters the client.

DNS

DNS converts domain name queries into records such as IP addresses. mihomo can use the dns configuration to specify upstream resolvers, but queries may still come from the operating system or a browser's own resolver. When troubleshooting, identify which component made the query before checking its upstream resolver.

TUN mode

TUN mode uses a virtual network interface and system routes to send selected traffic to the core. It is useful for applications that do not read system proxy settings. Whether a connection is intercepted depends on routes, permissions, and exclusions; the actual exit is still determined by the client's mode and rules.

System proxy

A system proxy provides a proxy address and port to applications that follow system settings. It usually points to the client's local HTTP or mixed listening port. This differs from interception through a virtual network interface. If a browser connects but another program has no connection log, first check whether both use system settings.

Fake-IP

Fake-IP is a DNS enhancement mode in mihomo. Responses contain synthetic addresses, while the core keeps a mapping between each address and its original domain. Once the core intercepts a connection, it can restore the domain for rule matching. Local services that depend on real DNS results can be excluded with fake-ip-filter as needed.

DNS leak

A DNS leak occurs when domain queries take an unexpected resolution path—for example, when application traffic enters the client but queries still go to the resolver configured in the operating system. When diagnosing a leak, distinguish the route used by web traffic from the route used by DNS queries, and check whether the browser's encrypted DNS setting selects another upstream resolver.

Configuration Fields

Look up listening ports, node sources, and control interfaces by their original field names.

YAML

YAML is a common configuration text format in the Clash ecosystem. Spaces indicate indentation levels, and hyphens mark list items. Keep items at the same level aligned and check the required value type for each field. A file that parses as YAML does not necessarily use fields supported by the core.

mixed-port

mixed-port provides a shared local listening port for HTTP and SOCKS proxies. If another process is using the original port, update the system proxy and any applications with manually specified proxy addresses after changing it, so they point to the new listening port.

proxy-providers

proxy-providers defines node sources that the core can read from a remote URL or local file. A proxy group must also reference the source with use to include those nodes. Confirming that a provider loaded successfully and that its nodes appear in the target proxy group are two separate checks.

allow-lan

allow-lan controls whether devices on the local network can access proxy listening ports. When enabled, also check the listening address and host firewall rules. Leave it off for local use; when sharing access, restrict it to trusted networks.

external-controller

external-controller sets the listening address and port for the core's control interface, which clients or dashboards use to read status and switch policies. The control port is different from the proxy port used by applications. For local management only, bind the control interface to the loopback address.