Reference Docs / Configuration Terms

Clash / mihomo Glossary

Look up terms by configuration stage, from importing a subscription to matching a rule. Each entry explains what the term means, where it takes effect, and which settings it is commonly confused with during troubleshooting.

5 categories20 terms

Core and Architecture

The core applies the configuration; the client manages it. When troubleshooting port issues, distinguish the proxy endpoint used by apps from the controller endpoint used by the dashboard.

mihomo

mihomo is a proxy core continued from Clash.Meta. It reads configuration, handles connections, and applies routing rules. A client may bundle the core with its installer or let you update it separately; the client version shown in the UI is not the core version. If a configuration key is unrecognized, first check which core version is running, then compare it with the configuration docs.

System Proxy

The system proxy is a set of proxy settings that the operating system makes available to apps. Desktop clients usually point these settings to a local proxy listening port. Only apps that read and honor them send requests through that proxy; apps with their own proxy settings may use a different route. A local port listening does not mean the system proxy is enabled.

Mixed Port (mixed-port)

A mixed port accepts both HTTP and SOCKS5 proxy connections on the same listening port, but apps still need to use the right protocol. 7890 is a common example, not a fixed value across all clients; check the active configuration and startup logs for the actual port. It accepts proxy requests and is separate from the controller port used by the UI to manage the core.

External Controller (external-controller)

The external controller lets a client or dashboard manage the core—for example, by viewing connections or switching proxy groups. It does not forward browser proxy requests. If the controller address is reachable, that only confirms the management API is accessible; it says nothing about proxy connectivity. For local management only, bind it to a loopback address.

Proxy Protocols

The protocol between an app and the local proxy is a separate setting from the protocol the core uses to reach a remote proxy. Proxy latency measures an outbound test, not the response time of the local listening port.

Proxy

A proxy is an outbound connection configuration, usually containing a server address, port, protocol, and related authentication or transport parameters. Its name is only for display and reference; similarly named proxies may connect to different servers. A subscription URL retrieves configuration—it is not a proxy address an app can connect to directly.

HTTP Proxy

Apps that support HTTP proxies can send web requests through one, and use CONNECT to tunnel traffic to HTTPS sites. An HTTPS destination does not mean the connection from the app to the proxy also uses TLS; that depends on how the app connects to the proxy. Enter the proxy type and listening address required by the app—not the destination website's URL.

SOCKS5

SOCKS5 is a general-purpose proxy protocol that can relay TCP connections and defines a way to relay UDP. Whether UDP works in practice depends on the app, proxy, and the rest of the network path. The app may resolve a domain itself or pass it to the proxy, depending on how it sends the destination address. SOCKS5 does not encrypt traffic by itself.

Latency Test (URL Test)

In Clash, a proxy's displayed latency is usually the time it takes to reach a test URL through that proxy. It is not the same as a system ping and does not indicate download throughput. The target URL, connection handshake, and current network conditions all affect the result. Use the same test URL when comparing proxies; if one URL times out, check the service you actually need to reach.

Rules and Routing

First check which rule matched the connection, then see which outbound that rule points to. If it points to a proxy group, also check which proxy is currently selected in that group.

Rule-Based Routing (rules)

In rule mode, the core checks connections against rules in the order listed and uses the outbound specified by the first match. An outbound can be DIRECT, REJECT, a proxy, or a proxy group. Put exceptions before broader rules. If a catch-all MATCH is at the top, later rules will never match.

Proxy Groups (proxy-groups)

A proxy group is a set of outbounds that rules can reference, collecting candidate proxies or other groups under one name. With the select type, you choose the active outbound; with url-test, the core picks one based on test results. Switching a group's outbound does not affect connections that do not route through that group.

GeoIP(GEOIP)

GEOIP looks up location data for the destination IP address and checks it against a country or region code. It does not infer location from a domain suffix, nor does it guarantee the server's physical location. If the destination is a domain, rule matching may trigger a DNS lookup; adding no-resolve to the rule prevents it from initiating that lookup.

Rule Set (RULE-SET)

A rule set stores reusable match entries in a separate resource. Declare it with rule-providers, then reference it from rules with RULE-SET. The rule set determines whether a match occurs; the rule that references it still determines which outbound to use. Updating a rule set changes its match coverage but does not reorder the main rules list.

DNS and Networking

A single visit may involve a DNS lookup followed by a connection. They may take different paths, so check each one separately.

DNS Resolver

A DNS resolver handles domain lookups and returns records, such as addresses an app needs to connect. When mihomo's built-in DNS is enabled, nameserver specifies upstream resolvers; domains matching nameserver-policy can use the specified resolver instead. Apps may also use their own encrypted DNS, so checking only the system DNS address is not enough to confirm the actual lookup path.

Fake-IP

Fake-IP mode returns a synthetic address to the app and keeps a mapping between that address and the original domain in the core. When the app later connects through the core, it can recover the domain and apply routing rules. Apps that require real addresses may not work with Fake-IP; set fake-ip-filter for the affected domains to avoid returning synthetic addresses.

TUN Mode

TUN uses a virtual layer 3 network interface and system routes to receive IP packets, giving apps that ignore system proxy settings a chance to be routed by the core. Enabling TUN does not send every connection through a remote proxy; traffic matching a direct rule still goes direct. Which traffic it can capture depends on system permissions, routes, and exclusions.

DNS Leak

A DNS leak occurs when domain lookups leave the intended resolution path—for example, web traffic goes through a proxy while the browser sends DNS queries to an unplanned resolver. It is not the same as web requests going direct, and a test page's reported resolver location alone is not enough to draw conclusions. Check the browser's DNS settings, system resolver, and the traffic the core can capture.

Clients and Configuration Files

Keep the subscription source, selected profile, and merged active configuration distinct. When settings disappear after an update, first check which layer contains the change.

Subscription

A subscription is a source from which a client retrieves remote configuration or a proxy list, usually through a URL provided by a service. Refreshing a subscription fetches the remote content again; it does not simply append proxies to the existing configuration. Local edits to a copy of remote configuration may be overwritten on the next update. Subscription URLs may contain credentials, so don't expose the full URL in screenshots or logs.

Profile

A profile is a configuration managed by the client. It can come from a local file or be imported from a remote subscription. Downloading or updating a profile does not necessarily activate it; if connections behave unexpectedly, check which profile is selected. The configuration ultimately loaded by the core may also include client settings and local overrides, so the subscription's original contents alone may not explain the actual behavior.

YAML

YAML is a common configuration format for mihomo. Indentation represents nesting, and hyphens introduce list items. Tabs cannot be used for indentation. Quote strings whose literal contents need to be preserved to prevent them from being parsed as another type. A YAML parser accepting the file only confirms valid syntax; keys and values must still meet the core's requirements.

Override

An override is a layer the client applies while loading the base configuration to add or change settings—for example, changing a local port or inserting an exception rule. Saving local changes separately avoids editing the remote subscription directly. Merge order and list handling vary by client. After editing, inspect the generated configuration to confirm rules were inserted rather than replacing the entire list.