Configuration reference

Clash Glossary

Look up terms by the setting names in your client or the field names in a YAML file. First identify where the config comes from, how rules select an outbound, and how app traffic reaches the client. Then follow the steps for the relevant setting.

Cores and clients

The core runs the configuration; the client provides the interface for managing it.

Compare clients
CORE

mihomo

mihomo is the core that handles proxy protocols, routing rules, and DNS settings. It originated as Clash.Meta. GUI clients can bundle it, and some devices can run it on its own. If a configuration field is not recognized, first check which core and version are running, then see whether the client exposes a setting for it.

DESKTOP

Clash Verge Rev

Clash Verge Rev is a mihomo-based desktop GUI client for Windows, macOS, and Linux. Use it to import a configuration, choose a proxy group, and check traffic in the connections or logs view. The client version and core version are separate; note both when troubleshooting compatibility.

CROSS-PLATFORM

FlClash

FlClash is a mihomo-based GUI client for desktop platforms and Android. Common tasks include importing a configuration, switching proxy modes, and checking connections. Even with the same configuration, permission prompts and traffic-capture options may differ between desktop and mobile. Follow the interface for your current system.

ANDROID

Clash Meta for Android

Clash Meta for Android is an Android client that uses the system VPN interface to route traffic from apps selected in its settings. Importing a configuration is only the first step: select it, grant permission, and start the service. If only certain apps bypass the proxy, check whether access control rules exclude them.

Proxy protocols

Check the node type first, then verify the fields required by that protocol.

type: ss

Shadowsocks

Shadowsocks is an encrypted proxy protocol that uses a shared password. In mihomo nodes, it is usually written as type: ss. The cipher and password must match the server settings. Don't infer the protocol from the node name or enter credentials for a different protocol here.

type: trojan

Trojan

Trojan typically uses TLS for connections and password-based authentication. If the logs report a certificate name mismatch, check the server name provided by the service and the TLS settings, and make sure the device date is correct. Disabling certificate verification is not a recommended fix.

type: vless

VLESS

VLESS typically identifies users by UUID, and a node may also include transport and security settings. Matching UUIDs do not make two node entries interchangeable: transport and security parameters must also match the server. When migrating from another client, check that the current core supports the node's combination of settings.

CONNECT

HTTP CONNECT

HTTP CONNECT is a method for asking an HTTP proxy to open a tunnel. Browsers commonly use it to access HTTPS sites through an HTTP proxy. Once the tunnel is open, the app typically performs a TLS handshake with the destination site through it. Seeing this request does not tell you which node protocol is used; the outbound depends on the routing result.

Routing rules and proxy groups

Rules decide where a connection goes; proxy groups determine which route it actually takes.

View proxy modes
rules

Rule-based routing

In Rule mode, the core checks connections against rules in config order and typically uses the outbound target from the first match. For example, DOMAIN-SUFFIX,github.com,Proxy sends matching domain traffic to the proxy group named Proxy. If the wrong rule matches, first check whether a broader rule appears earlier.

RULE-SET

Rule set

A rule set collects match conditions, such as domains and IP ranges, into a reusable list that a configuration can reference with RULE-SET. The list determines whether a connection matches; the rule that references it specifies the outbound. If a rule set is loaded remotely, distinguish a rule set update failure from a main config update failure.

GEOIP

GeoIP

GeoIP uses geographic data to classify a destination IP by country or region; it does not rely on the domain suffix. A domain served through a CDN may resolve to IP addresses in different regions on different networks. When troubleshooting changes after a GeoIP update, note the actual destination IP and the data source in use.

proxy-groups

Proxy group

A proxy group is an outbound target that rules can point to. It can contain nodes or reference other groups. A select group lets you choose manually; a url-test group selects based on test results for a specified target. If traffic exits through an unexpected route, check which group the connection matched, then see which member is currently selected.

DNS and network stack

Separate domain lookups, destination addresses, and the actual outbound route.

Troubleshoot DNS issues
dns

DNS

DNS looks up records such as the IP addresses associated with domain names. Browsers, operating systems, and proxy cores can all make DNS queries and may use separate caches. If a site opens in a browser but a terminal reports a resolution error, test the same domain in both and compare their DNS and proxy settings.

enhanced-mode: fake-ip

Fake-IP

Fake-IP mode returns synthetic addresses from an address pool for applicable queries and maps them to their domain names. When a connection reaches the core, it can use that mapping to recover the domain and apply routing rules. To return real resolved addresses for certain domains, check how the current core matches fake-ip-filter.

enhanced-mode: redir-host

redir-host

redir-host mode returns the resolved address to the app instead of a synthetic one. This is useful when an app requires a real address, but multiple domains may share the same IP, so the destination IP alone cannot identify which domain was accessed. After switching modes, retest resolution and rule matching in the same app.

DNS ROUTE

DNS leak

If DNS queries take an unexpected route, domain names may be exposed to a resolver that was not meant to receive them. This is commonly called a DNS leak. Routing web traffic through a proxy does not guarantee that DNS queries use the same route. To troubleshoot, identify the intended resolver, then check secure DNS in the browser, OS settings, and client settings separately.

Subscriptions and config files

Keep these three steps separate: fetching a config, enabling it, and testing the connection.

View subscription import guide
SUBSCRIPTION URL

Subscription

A subscription is usually a URL that the client uses to fetch and update a configuration or node list. After importing it, make sure the new configuration is enabled; the previous one may still be running if the update failed. Subscription links may contain access credentials, so hide the full URL before sharing screenshots, logs, or support requests.

proxies

Node

A node is a proxy outbound entry, usually containing a server address, port, protocol, and authentication details. Its name is mainly for display and references; a region in the name does not tell you where traffic actually exits. When renaming a node, check whether proxy groups and other config entries still reference its old name.

URL TEST

Latency test

The node latency shown by a client usually measures the response time when accessing a test URL through the selected outbound. It is not download speed. Results depend on the test target, network route, and time of the test. If only the test times out, first check whether the target is reachable, then test a site you actually need to access.

.yaml / .yml

YAML

YAML is a text format commonly used for Clash configuration files. Indentation defines field hierarchy, and hyphens mark list items. When editing by hand, indent with spaces and align fields at the same level. For a parse error, check not only the reported line but also the lines above it for a missing colon or a list item at the wrong level.

System traffic capture

First check whether app traffic reaches the core; then check whether routing is correct.

View system proxy settings
SYSTEM PROXY

System proxy

Enabling the system proxy registers a proxy address and port with the operating system. Only apps that read and follow this setting will use it; some terminal tools and apps have their own proxy settings. If a browser works but a terminal does not, check whether the terminal tool reads the system proxy before configuring it separately.

tun

TUN mode

TUN mode uses a virtual network interface and routing settings to send eligible IP traffic to the core, without relying on apps to read the system proxy. The traffic captured depends on system permissions, routes, and exclusions. If local network access stops working after enabling it, first check whether the LAN subnet was mistakenly included in the captured routes.

mixed-port

Mixed port

A mixed port lets mihomo accept both HTTP and SOCKS proxy requests on the same local port. When setting up a proxy manually in an app, use the address and port the client is actually listening on, and select a proxy type the app supports. The mixed port is not the same as the control interface used by the dashboard; they are not interchangeable.

allow-lan

Allow LAN

When enabled, devices on the local network can use this device's proxy listening port. Connectivity also depends on the listening address and firewall. Other devices cannot use the loopback address of the device running the client; enter that device's LAN address instead. Only enable access on trusted networks, and turn it off when it's no longer needed.