CLASH / CONFIGURATION REFERENCE

Clash Glossary

From subscription URLs to system network settings, learn how configuration fields, outbound policies, and device permissions differ. When a setting is unfamiliar, first check which layer it affects.

  • 5 terminology categories
  • 25 shareable terms
  • YAML fields and system settings at a glance
Rule Fields at a Glance
config.yamlExample snippet
rules:
  - DOMAIN-SUFFIX,apple.com,DIRECT
  - MATCH,Proxy

Read the match conditions first, then the outbound. The first rule sends Apple domains and their subdomains directly; other connections go to the policy named Proxy.

Core and Protocols

The interface manages settings; the core handles connections. When choosing a node or checking test results, first identify which layer is causing the problem.

mihomo Core
mihomo is the open-source core that parses configuration, matches rules, and handles network connections. A graphical client adds features such as importing configurations, switching proxies, and viewing logs. If a field is unrecognized, check not only the app version but also which core and version it actually includes.
Proxy Protocol
A proxy protocol defines how a client connects to a proxy server and transfers data. The node's type field usually identifies the protocol, such as Shadowsocks or Trojan. The same protocol may offer different transport and encryption options, which must match the server configuration.
Proxy Node
A proxy node is an outbound option in a configuration, typically containing a protocol, server address, port, and authentication details. The name shown in a list is only a label; it doesn't tell you the actual server address or where traffic exits. Nodes can also be loaded from a proxy provider and selected through a proxy group.
Latency
The latency shown by a client usually measures how long a probe sent through a node takes to reach a test address and receive a response. This figure is not download speed, nor does it predict how quickly every website will respond. For a fair comparison, test nodes on the same network using the same address and timeout.
UDP Forwarding
UDP forwarding allows the client to receive UDP datagrams and send them through the selected outbound. Whether it works depends on the traffic reaching the client and on support from the proxy protocol and server. If websites load but voice calls fail, a successful web test doesn't prove the UDP path is working.

Profile Structure

Importing, updating, and enabling a profile are separate actions. If manual changes disappear after an update, check whether they were made in the subscription content or in a separate override.

Profile
A profile is an item the client uses to manage a configuration. It can come from a local file or a remote URL. If the list contains multiple profiles, first check which one is active; a successful import doesn't necessarily switch to it. config.yaml is a common filename, not a subscription URL.
YAML
YAML is a common text format for Clash configurations. Indentation defines the hierarchy of fields. Use spaces to align fields at the same level, not tabs; start list items with a hyphen and a space. If an error points to a particular line, also check that the previous line's colon, quotes, and indentation are complete.
Subscription
A subscription lets the client fetch and update a configuration from a URL. The response may contain a full configuration or just a list of nodes, so check that the client supports the format before importing it. Subscription URLs may contain access credentials; don't share the full link in screenshots or logs.
Proxy Provider
A proxy provider is a collection of nodes defined under proxy-providers that can be referenced by proxy groups. It can load data from a local file or remote URL; a proxy group uses use to reference the provider name. Remote providers can have their own update interval, so you don't need to refresh the entire main configuration each time.
Configuration Override
A configuration override adds or replaces fields when the client generates the active configuration. To keep local rules across updates, use the client's override feature rather than editing the subscription content directly. Clients handle lists differently, so check the final rule order after making changes.

Proxy Modes and the Network Stack

When only some apps use the proxy, first check how their traffic reaches the client, then how the core handles it.

System Proxy
The system proxy setting adds a local proxy address and port to the operating system's network settings. Apps that read these settings typically connect through the local proxy; apps with their own network settings may ignore them. If an app keeps trying to connect to the local port after you quit the client, check whether the system proxy setting has been restored.
TUN Mode
TUN mode receives traffic through a virtual network interface and routing configuration, then passes it to the core for processing. It can cover some apps that ignore the system proxy, but the scope still depends on system permissions, routes, and exclusions. On macOS, clients may label this feature Enhanced Mode.
Fake-IP
Fake-IP is a DNS enhancement mode: the client returns a synthetic address to an app and stores a mapping between the address and domain name. When the connection reaches the core, it can use that mapping to recover the domain for rule matching. If an app needs the actual resolved address, check whether the client supports adding an exception for the relevant domain.
DNS Leak
A DNS leak occurs when domain lookups take an unintended route, exposing query data to a resolver that should not receive it. Routing web connections through a proxy doesn't mean DNS queries use the same route. When troubleshooting, check system DNS, encrypted DNS in the browser, and how the client actually handles queries.
Outbound Mode
Outbound mode determines how the core handles connections it has received. Common options are Rule, Global, and Direct. Rule mode checks rules in order; Global mode uses the global policy, which may or may not send traffic through a proxy depending on the selected outbound; Direct mode connects without a proxy. Changing outbound mode doesn't affect which traffic the system sends to the core.

Rules and Proxy Groups

Check the rule list to see which rule matched, and the proxy group to see which outbound was actually selected. Read the two together.

Rule-Based Routing
Rule-based routing selects an outbound based on conditions such as the connection's domain or destination IP address. In Rule mode, rules are usually checked from top to bottom, and matching stops at the first hit. To add an exception for one site, place it before broader rules, then start a new connection to verify it.
DOMAIN-SUFFIX
DOMAIN-SUFFIX matches the specified domain and all its subdomains. For example, apple.com matches support.apple.com, but not notapple.com. To match only one exact domain, use DOMAIN.
GeoIP
GeoIP uses IP geolocation data to determine whether a destination address belongs to a particular region. It checks the destination IP, not the domain suffix, and doesn't indicate who owns the website. When a connection has only a domain name, some IP-based rules may trigger a DNS lookup; use no-resolve to prevent the rule from initiating one for matching.
Proxy Group
A proxy group is a named outbound option that rules can target. It can contain nodes, other proxy groups, or options such as Direct. A select group is usually controlled by the user, while a url-test group chooses an option based on probe results. If a rule matches the expected group but traffic takes the wrong route, check the group's current selection.
MATCH
MATCH matches every connection unconditionally and is usually placed at the end of the rules list as a fallback. For example, MATCH,Proxy sends connections not matched by earlier rules to Proxy, which must be defined as an outbound in the configuration. If placed midway through the list, it prevents any later rules from being matched.

Apple Platform Features

App launch, system authorization, and tunnel connection are three separate states. An open client doesn't necessarily mean it is handling network traffic.

VPN On Demand
VPN On Demand lets iOS or iPadOS automatically connect based on trigger rules in the VPN configuration. Supported conditions may include network type or a specified Wi-Fi network. To test it, disconnect manually, join a network that meets the conditions, and check the VPN status in system settings.
Network Extension
Network Extension is an Apple system framework that clients can use to provide networking features such as packet tunneling. The first time you enable it, the system may ask you to add a VPN configuration or approve an extension; the prompt varies by platform and client. If authorization isn't complete, the tunnel may not start even if the subscription imported successfully.
VPN Configuration
A VPN configuration is a system-managed tunnel setting, separate from a Clash configuration file imported into the client. The system configuration manages connection permissions and status; the Clash configuration provides nodes, proxy groups, and rules. If you accidentally delete the VPN configuration from system settings, start a connection from the client and follow the prompts to add it again.
Login Item
Login items control whether an app opens automatically after a user logs in to macOS. Find them in System Settings โ†’ General โ†’ Login Items; menu names may vary slightly by macOS version. Opening an app automatically doesn't enable the system proxy or TUN. Check both separately in the client.
Apple Silicon
Apple Silicon refers to Apple's own Mac chips. Native apps are typically labeled arm64 or Apple Silicon. Check the chip or processor in Apple menu โ†’ About This Mac, then choose the appropriate installer. Intel Macs usually need x64; a universal build works with either architecture.