Rule Keywords
Rule
A Rule consists of a match condition and an action that determines how a request is handled. In Config mode, rules are generally checked from top to bottom, and the first match affects the result. More specific conditions usually belong before broader ones. After making a change, check which rule the request actually matched—not just whether the rule was saved.
Rule Keywords
DOMAIN
DOMAIN matches an exact domain name, for example DOMAIN,example.com,DIRECT. It applies to the specified domain and does not automatically include all subdomains just because their names are related. To cover both a root domain and its subdomains, first consider whether DOMAIN-SUFFIX is a better fit.
Rule Keywords
DOMAIN-SUFFIX
DOMAIN-SUFFIX matches a domain suffix and typically covers the specified domain and its subdomains. For example, a suffix rule for example.com can match that domain and its subdomains; it does not match every name that happens to contain the same text. A webpage may request resources from several domains, so matching its main domain does not mean every resource follows the same route.
Rule Keywords
DOMAIN-KEYWORD
DOMAIN-KEYWORD checks whether a domain name contains the specified keyword. Its match scope is usually broader than an exact-domain or suffix rule. Short, common keywords may match domains you did not intend to include. Use this rule only when that broader scope is needed, and check request logs for unintended matches.
Rule Keywords
GEOIP
GEOIP matches based on a country or region associated with an IP in a geolocation database, for example GEOIP,CN,DIRECT. Database attribution does not reveal a server’s precise physical location or indicate access speed. For domain requests, also consider whether DNS resolution or address selection changed which IP was matched.
Rule Keywords
IP-CIDR / IP-CIDR6
IP-CIDR and IP-CIDR6 match IPv4 and IPv6 address ranges, respectively. The prefix length after the slash determines the range; it is not a port number. Adding an IPv4 rule does not cover the same service’s IPv6 addresses. When checking a connection, note which address type it actually uses.
Rule Keywords
FINAL
FINAL handles requests that did not match earlier rules and is usually placed at the end as a fallback. FINAL,PROXY and FINAL,DIRECT handle remaining traffic differently, so do not check only the domain rules above them. Moving a fallback rule earlier can prevent more specific rules below it from being checked.
Rule Keywords
PROXY / DIRECT / REJECT
PROXY sends a request through a proxy, DIRECT connects to the destination directly, and REJECT blocks the request. These are rule actions and should be distinguished from the overall Proxy and Direct modes in Global Routing. A PROXY match still requires a valid server and correct parameters; a rule match does not guarantee a successful connection.