Config Reference

Clash Glossary

Browse common terms in Clash Nyanpasu configs, settings, and connection details—from subscriptions and proxies to rule-based routing, DNS, and TUN.

Importing a subscription for the first time? Follow the import steps in Getting Started. Already editing a config? Check the fields and workflows in the full guide.

Core Concepts

The item selected in the config list is a profile; the item selected on the proxy page is usually a group or proxy. These selections do different things.

Subscription
A subscription lets a client fetch and update a config or proxy list from a URL; the content depends on the provider. After import, the config list keeps a record of the remote source. Updating that source and switching the active config are separate actions. Subscription URLs may contain credentials, so don’t share the full link publicly.
Profile
A profile is a config you can save, select, and switch to in the config list. It can come from a local file or a remote subscription. Two profiles can use the same proxies but have different rules, ports, or DNS settings. If a change doesn’t take effect, first check that the edited profile is the one currently in use.
Proxy
A proxy is a connection entry that typically includes a server address, port, protocol, and the parameters needed to connect. The client displays its name, but similar names don’t mean the connection settings are the same. After selecting a proxy, check whether the current request matched a policy that uses it.
Latency
Clients usually show latency in milliseconds. It measures how long a test takes to reach a target through a selected proxy. Results depend on the target, the current route, and when the test runs; they don’t indicate download speed. A timeout means only that this probe didn’t finish within the limit. Check real-world access and logs for more context.

Guide: Importing and Updating Subscriptions

Proxy Protocols

The type in a proxy entry specifies how to establish the upstream connection. It’s not one of the modes Rule, Global, or Direct.

Shadowsocks
Shadowsocks is an encrypted proxy protocol, typically written as ss in mihomo proxy configs. The encryption method and password must match the server, in addition to its address and port. Some setups also specify plugin options. If only these proxies fail after import, check whether the core supports the configured encryption method.
SOCKS5
SOCKS5 lets an application hand a connection to a proxy for forwarding; it does not encrypt traffic by itself. It can be an upstream proxy type or a local listening endpoint for applications on your device. If an app asks for a SOCKS5 address, check whether it expects a local listener or a remote server.
VLESS
VLESS is a proxy protocol whose config typically includes a server address, port, and user UUID. It can use different transport and security settings, so the proxy name alone doesn’t tell you how it’s configured. When migrating a config manually, keep the specified transport and security fields—don’t copy only the address and port.
Trojan
Trojan is a proxy protocol that typically runs over TLS and authenticates connections with a password. The proxy’s server address may be a domain or IP, while the server name used for the TLS handshake may be configured separately. For certificate errors, check the system clock and configured server name first; disabling certificate verification is not a routine fix.

Rules & Routing

When checking connection details, find the matched rule first, then see whether it points to Direct, a single proxy, or a proxy group. If it points to a group, check which member the group is actually using.

Rule-Based Routing
In rule mode, rule-based routing selects an outbound for each connection using conditions such as the domain or destination IP. The core typically checks rules from top to bottom, and the first match determines which policy handles the connection. After changing rules, start a new connection and inspect its match so you don’t mistake an old connection’s record for the new result.
Proxy Group
A proxy group brings multiple proxies or policies together under one name for rules to reference. A select group lets you choose a member; an automatic testing group probes and selects according to its settings. To find why a connection used the wrong outbound, check the matched rule, the group it points to, and the member that group was using.
GeoIP
GeoIP rules use an IP address database to match connections by the geographic category assigned to the destination IP. This reflects the database’s classification, not where a website is registered, and it doesn’t identify the user’s location. A CDN domain may resolve to addresses in different regions, so GeoIP isn’t a fixed classification for a domain.
Rule Set (Rule Provider)
A rule set is a collection of match entries maintained together and referenced by the main config. It can come from a local file or a remote URL. In mihomo, sources are typically defined under rule-providers, then referenced by RULE-SET rules that specify a policy. Updating a rule set refreshes its entries but doesn’t reorder the main rules.
MATCH (Fallback Rule)
MATCH applies to every connection that reaches that line. It’s usually placed last in the rule list to assign a policy to traffic that didn’t match earlier rules. Putting it higher up prevents later rules from matching. If connection details show a MATCH result, check the conditions and order of the rules you expected to match.

Guide: Rule Syntax and Match Order

Network & DNS

Domain lookups and web connections are separate: one finds an address, the other connects to a service. When troubleshooting, first identify which step is failing.

DNS (Domain Name System)
DNS looks up records such as the IP address associated with a domain. The operating system, browser, and proxy core may all make DNS queries, so selecting a proxy doesn’t determine how DNS is handled. If a domain won’t load, first work out whether the lookup returned an unexpected result or the connection failed after an address was resolved.
Fake-IP
Fake-IP is a DNS enhancement mode: the core returns a placeholder address to the app and keeps a mapping between that address and the domain. When the connection reaches the core, it uses the mapping to recover the domain, match the configured rules, and connect. If an app that relies on real IP addresses has compatibility issues, check whether the domain belongs in fake-ip-filter.
DNS Leak
A DNS leak occurs when a domain lookup that should follow the expected route is sent to a different resolver. Routing web connections through a proxy doesn’t prove that their DNS queries took the same route. If a test shows unexpected resolvers, check the browser’s secure DNS, system DNS settings, and client config before deciding whether the result is a leak.
DoH(DNS over HTTPS)
DoH sends DNS queries between the client and resolver over HTTPS, protecting the query in transit. It doesn’t replace proxy routing or hide the domain from the resolver. If DoH is enabled separately in the browser, the resolver in use may differ from the one configured in the client.

Client Features

System proxy and TUN settings determine which connections can reach the core; the config and active proxy mode determine how the core handles them.

System Proxy
A system proxy sets a proxy address and port in the operating system, allowing apps that honor those settings to send connections through the client. Apps with their own network settings may ignore it, so a working browser doesn’t mean other software is using the proxy too. If web pages stop loading after you quit the client, check whether the system proxy still points to a local port that is no longer open.
TUN Mode
TUN mode uses a virtual network interface and routes to send eligible IP traffic to the core. It doesn’t rely on each app reading the system proxy settings, so it’s often used for apps that don’t honor them. Enabling it usually requires system permissions. After switching it on, check that the intended apps and existing connections, including LAN access, still work.
Proxy Mode
Proxy mode determines how connections already handled by the core choose an outbound: rule mode matches rules, global mode uses the global policy, and direct mode skips upstream proxies. This is separate from whether traffic enters the core through the system proxy or TUN. After changing modes, start a new connection to check the effect.
mihomo
mihomo is a proxy core that Clash Nyanpasu can use to load runtime configs, match rules, and handle connections. The client interface manages configs and displays status. If a field is reported as unsupported, check the active core and its version; supported fields aren’t determined by the client interface alone.
YAML
YAML is a common text format for Clash configs. Indentation defines the structure, and hyphens mark list items. When editing a file, preserve its space-based indentation and don’t use tabs. Successfully parsing YAML only means the text is valid; also check that fields are in the right place and their values meet the core’s requirements.
Override
An override applies custom settings to the config used to start the core without directly editing the original remote subscription. It’s useful for keeping port, DNS, or rule changes across subscription updates. If multiple overrides affect the same field, check their application order, then inspect the final runtime config.

Guide: The Three Proxy Modes · Guide: TUN Routing and Verification