DOMAIN / DOMAIN-SUFFIX
DOMAIN matches an exact domain; DOMAIN-SUFFIX matches the specified domain and its subdomains. For example, DOMAIN-SUFFIX,example.com,PROXY can match example.com and its subdomains, but not every domain containing the string example.com. Choose the keyword that fits the intended match scope.
Domain matching
DOMAIN-KEYWORD
DOMAIN-KEYWORD checks whether a domain contains a specified string, for example, DOMAIN-KEYWORD,example,DIRECT. It matches the domain, not the full webpage URL or page content. A short string can broaden the match and cause unrelated domains to hit the same rule.
Domain matching
IP-CIDR / IP-CIDR6
IP-CIDR is for IPv4 ranges; IP-CIDR6 is for IPv6 ranges. The number after the slash is the network prefix length. For example, IP-CIDR,10.0.0.0/8,DIRECT describes a range of addresses, not a single server. Check the actual target address and DNS results to determine whether the rule matches.
IP range matching
GEOIP
GEOIP matches a target address according to its classification in an IP geolocation database. The result depends on the database records; it does not detect the device’s location or guarantee the service’s actual operating location. If a classification differs from expectations, check the target IP first, then consider a more specific domain or address rule.
IP geolocation matching
FINAL
FINAL is the fallback rule used when no earlier rule matches, and is usually placed at the end of the list. FINAL,PROXY applies the PROXY action to remaining traffic; it does not override rules that have already matched. Changing FINAL affects targets not covered by other rules, so define the intended scope before testing.
Fallback rule
PROXY / DIRECT / REJECT
These three uppercase terms are rule actions: proxy, direct connection, and rejection. They do not specify which target to match. They operate at a different level from Proxy and Direct in Global Routing, and their uppercase spelling matters. PROXY still requires a valid server to be selected; it does not create connection details.
Rule actions
Rule order
Rules are generally evaluated one by one from top to bottom, and the action for the first matching rule is applied. A broad rule near the top can therefore prevent more specific rules below it from matching. When editing rules, check how specific and broad conditions interact, rather than just confirming that a particular line exists. Even a valid rule file may not produce the expected result if Global Routing is not set to Config.
Matching logic