What Is Clash? A Beginner's Guide To Clients, Nodes, And Rules
Clash in One Sentence
Clash is a proxy-routing application that accepts traffic from your device, evaluates routing rules, and sends each connection either directly to its destination or through a selected proxy server. The word “Clash” can refer to a proxy core, a graphical client, or the wider configuration format used by related projects, which is why beginners often see several different names while looking for the correct download.
A typical setup contains four separate parts: a client, a proxy core, a configuration or subscription, and one or more proxy nodes. The client provides buttons and settings. The core performs the actual network work. The configuration describes how the core should behave. A node is a remote proxy endpoint that can be selected when a rule says traffic should use a proxy.
These parts work together in a simple sequence. An application sends traffic to a local Clash port or to a TUN interface. The core identifies the destination, checks the rules from top to bottom, selects a policy group, and then chooses a node or a direct connection. If any link in this chain is missing, the result may be a configuration error, a connection timeout, a DNS failure, or traffic that takes an unexpected route.
Client, Core, and Configuration: Three Different Layers
The most useful beginner habit is to separate the graphical client from the proxy core. A client such as Clash Verge Rev, Clash for Android, ClashX, or Mihomo-based software is the interface you operate. It can import subscriptions, switch profiles, enable the system proxy, display logs, and request permission for TUN mode. The client itself is not necessarily the component that establishes every proxy connection.
What the proxy core does
The core is the engine running behind the interface. It opens local listening ports, parses YAML configuration, resolves domains according to the configured DNS mode, connects to remote proxy servers, and applies routing rules. Mihomo is a commonly encountered maintained core derived from the Clash.Meta line. It retains many familiar Clash concepts while supporting additional protocols, DNS features, TUN operation, rule providers, traffic sniffing, and routing databases.
Two clients may look completely different while using the same core. Conversely, two applications with similar names may bundle different core versions and support different configuration fields. If a configuration imports successfully but a particular feature does nothing, check the core name and version in the client’s About page, kernel settings, or startup log. Do not rely only on the product name shown in the application launcher.
What the graphical client does
The client makes core functions easier to control. Common controls include the current profile, proxy mode, system proxy, TUN, DNS, logs, connection records, and proxy-group selection. It may also manage automatic startup, local API access, profile updates, and platform-specific permissions.
The system proxy switch usually changes the operating system’s HTTP and HTTPS proxy settings to point to a local Clash port. This affects applications that respect those settings, but not every program does. A command-line tool, virtual machine, game, container, or application with its own network stack may ignore the system proxy. TUN mode works at a lower network level and can capture more traffic, but it requires additional permissions and can create conflicts with VPN software, firewall rules, or other virtual network adapters.
What a configuration contains
A YAML configuration normally describes ports, DNS, proxy nodes, proxy groups, providers, and rules. A subscription is not the client and is not the same as a single node. It is usually a URL or service entry that retrieves a configuration containing multiple nodes and related settings. The provider may update names, addresses, encryption parameters, or expiration information each time the profile is refreshed.
Keep the configuration source in mind before editing. A subscription-generated profile may be replaced during the next update, while a local override or merge section may be designed to survive updates. If a setting must remain permanent, use the client’s supported override mechanism rather than changing a generated file without checking how the client stores profiles.
Nodes, Subscriptions, and Proxy Groups
A node is one remote proxy endpoint. It normally includes a server address, port, protocol, authentication data, and sometimes transport or TLS options. A node name such as “Tokyo 01” or “US Premium” is only a label. It does not prove the physical location, quality, privacy policy, or reliability of the service behind it.
A subscription groups many node definitions and often includes ready-made proxy groups and rules. After importing a subscription, the client may show groups such as “Proxy,” “Auto,” “Fallback,” or “Final.” These names are not universal standards. Their behavior depends on the configuration supplied by the subscription provider.
Node
A single proxy server definition that the core can attempt to connect to.
Subscription
A remotely retrieved profile containing nodes, groups, rules, or other configuration data.
Proxy group
A named set of nodes or actions that lets you choose manually or apply an automatic strategy.
Proxy groups are important because rules usually point to groups rather than directly to individual nodes. A rule may send a category of domains to a group named Proxy. You then select a specific node inside that group. This separation makes it possible to change the selected node without rewriting every rule.
Groups can use different strategies. A select group waits for manual selection. A url-test group tests members against a URL and usually prefers a member with a better measured delay, although low latency alone does not guarantee stable or useful access. A fallback group uses the first available member according to its health checks. A load-balance group distributes requests according to its configured behavior. The exact fields and supported strategies depend on the installed core.
How Rules Decide Where Traffic Goes
Rules are the decision-making layer of Clash. They describe conditions such as a domain, domain suffix, destination IP range, process name, port, or geographic category, then associate a matching connection with an action. The most common actions are a proxy group, DIRECT, or REJECT.
Rules are normally evaluated from top to bottom. The first matching rule wins, so order matters more than many beginners expect. A broad rule placed near the top can prevent a more specific rule below it from ever being reached. The final MATCH rule acts as a fallback for traffic that did not match earlier conditions.
rules:
- DOMAIN-SUFFIX,example.local,DIRECT
- DOMAIN-SUFFIX,example.com,Proxy
- GEOIP,PRIVATE,DIRECT
- MATCH,Proxy
In this simplified example, local domains are sent directly, domains ending in example.com use the group named Proxy, private destination addresses use a direct connection, and everything else is handled by the final proxy action. The names in the third column must exist. If a rule refers to a group that is missing or spelled differently, the configuration may fail to load or the intended route may not be available.
Domain rules and IP rules can behave differently depending on DNS mode, sniffing, and whether a rule uses no-resolve. GeoSite-style data generally classifies domains, while GeoIP-style data classifies destination IP addresses. If DNS resolution happens before routing, the core may need to resolve a domain before an IP-based rule can be evaluated. Therefore, a rule problem is not always a node problem.
- DIRECT sends the connection without using a proxy node.
- REJECT blocks the connection according to the core’s reject behavior.
- A proxy group delegates the choice to manual selection or an automatic strategy.
- MATCH catches traffic that did not match an earlier rule.
A Practical First Setup
For a first installation, keep the test environment simple. Install a client from a trustworthy project page or the official distribution channel used by that project. Avoid download portals that bundle installers, replace the application name with a vague “VPN tool” label, or ask you to disable security software before installation.
Follow this setup sequence
- Confirm your operating system and processor architecture, then install a client that supports your platform. The download page can help you compare available packages.
- Open the client and identify the installed core. Record the core name and version before importing a profile.
- Import a configuration or subscription through the client’s profile interface. Check that the profile shows a successful update time and contains proxy nodes.
- Open the proxy page and select a proxy group. If the group is automatic, wait for its health check to finish; if it is manual, choose one available node.
- Check the local listening port. A common example is
7890for a mixed port, but the actual value may be different. - Enable the system proxy only after the core is running and a group has been selected.
- Open the connection log, visit a test domain, and confirm that a new connection appears with a matched rule and selected policy.
- Test more than one type of traffic, such as a normal webpage and a command-line request, because different applications may use different proxy paths.
A small YAML example can clarify the relationship between the local port, group, and rule. It is not a complete production configuration and should not be pasted into a client without adding valid nodes and checking core compatibility:
mixed-port: 7890
mode: rule
allow-lan: false
proxies:
- name: "Example Node"
type: http
server: proxy.example.invalid
port: 443
proxy-groups:
- name: Proxy
type: select
proxies:
- "Example Node"
- DIRECT
rules:
- DOMAIN-SUFFIX,local,DIRECT
- MATCH,Proxy
In practice, the server name above is only a placeholder. A real node must come from a service you trust and must include valid connection parameters. The example also keeps allow-lan: false, which limits the local proxy to the device unless you deliberately configure LAN access.
How to Choose a Client Without Falling for Fake Downloads
Beginners often search for “the latest Clash” and download the first installer that appears. This is risky because the original Clash project, maintained forks, and graphical clients are separate projects. A page may use a familiar name while distributing a modified installer, an outdated build, or an unrelated application.
Start by identifying the platform and the layer you need. Windows and macOS users commonly choose a maintained desktop client with profile management, system proxy controls, connection logs, and optional TUN support. Android users need an application that is compatible with the Android version and has a clear permission model. macOS users should check whether the build matches Intel or Apple silicon when separate packages are offered.
| What to check | Why it matters | Where to look |
|---|---|---|
| Maintenance status | Old clients may contain unsupported cores or unresolved platform issues. | Release history, About page, and project documentation |
| Core identity | Configuration fields and protocol support depend on the actual core. | Kernel settings or startup log |
| Package source | Third-party repackaging may add unwanted software or change defaults. | Project page and trusted distribution channel |
| Permissions | TUN, service installation, and LAN access can affect security and routing. | Permission prompts and client settings |
Be cautious with installers that display aggressive advertising, request unrelated permissions, hide the version number, or claim that every connection is anonymous. Clash is a routing tool, not a guarantee of privacy. The client can still expose traffic to the proxy service, DNS provider, operating system, or applications that bypass the proxy. Use HTTPS where appropriate, protect subscription URLs, and avoid sharing configuration files that contain credentials or private access links.
A Simple Troubleshooting Model
When a connection fails, troubleshoot the path in order instead of changing nodes repeatedly. First confirm that the client is running and the core reports no startup error. Next verify that the profile contains nodes and that the selected proxy group is not empty. Then check whether the application is actually using the local port or TUN interface.
If the connection appears in the Clash log but fails, inspect the matched rule, policy group, destination domain, and error message. A rule may be sending the traffic to DIRECT when you expected a proxy, or a broad rule may be taking priority over a specific one. If the connection never appears in the log, the application may be bypassing Clash, using another proxy, or connecting through a different network interface.
- Profile update fails: check the subscription URL, expiry status, network access, and whether the client supports the returned format.
- No nodes are visible: inspect the profile content and update result rather than changing proxy groups.
- The system proxy appears enabled but nothing changes: verify the local port and test an application known to respect system proxy settings.
- One website works while another fails: compare domains, ports, DNS results, matched rules, and selected nodes.
- TUN causes new failures: check administrator permissions, VPN conflicts, firewall prompts, and virtual adapters.
- The configuration is rejected: check YAML indentation, duplicate keys, unsupported fields, and the core version.
Once the basic path works, add advanced features gradually. Rule providers, GeoIP and GeoSite databases, DNS fake-IP modes, scripts, and TUN routing can solve specific problems, but each one adds another possible failure point. A stable beginner setup is usually better than a complicated configuration whose behavior cannot be explained.