RU-01
Rule-Based Routing
RULE MODE
Clash's default operating mode. Each connection's destination is checked against the rule list in order, top to bottom, and the first match decides the outcome: proxy, direct, or reject. Rule order equals priority - earlier rules override later ones of the same kind.
RU-02
DOMAIN-SUFFIX
DOMAIN-SUFFIX RULE
A rule type matched by domain suffix. Writing DOMAIN-SUFFIX,example.com,PROXY matches the domain itself and all of its subdomains. It covers more ground than the exact-match DOMAIN rule and is the most commonly used type in custom rule sets.
RU-03
IP-CIDR
IP-CIDR RULE
A rule type matched by IP range using CIDR notation, e.g. IP-CIDR,192.168.0.0/16,DIRECT. If the target is a domain name, it must be resolved first, which can add latency - by convention, IP-based rules are placed after domain-based rules.
RU-04
GEOIP
GEOIP RULE
A rule type that matches a destination address's country or region against a geo-IP database. GEOIP,CN,DIRECT is the most common fallback, routing traffic resolved to mainland China addresses directly. Accuracy depends on the geo database version shipped with the core.
RU-05
Proxy Group
PROXY GROUP
A container that organizes multiple nodes under a shared strategy. Rules usually point to a proxy group rather than a single node, and the group's own logic decides which node actually gets used. Common types: select (manual), url-test (auto-picks the fastest), and fallback (failover).