Rule Keywords
Rule
Rules specify which connections match and what happens when they do. In a configuration, the rule section is marked [Rule]. Rules are usually checked in order, and the matching result is applied. Put specific conditions before broader ones, and make sure Global Routing is set to Config.
Rule Keywords
DOMAIN
Matches an exact domain, for example DOMAIN,example.com,PROXY. It does not automatically include all subdomains or match a complete webpage URL. Do not include a protocol prefix, path, or query parameters in the domain field.
Rule Keywords
DOMAIN-SUFFIX
Matches a specified domain and its subdomains, for example DOMAIN-SUFFIX,example.com,PROXY. The domain here is an instructional example. For actual use, confirm the target domain and avoid changing the routing of unrelated connections with an overly broad match.
Rule Keywords
DOMAIN-KEYWORD
Matches a keyword contained in a domain, for example DOMAIN-KEYWORD,example,PROXY. The keyword does not have to appear at the end, so the rule may match multiple unrelated domains. If you only need to cover one domain and its subdomains, consider whether DOMAIN-SUFFIX is more precise.
Rule Keywords
IP-CIDR
Matches IPv4 ranges using an address and prefix length, for example IP-CIDR,192.168.0.0/16,DIRECT. The prefix length determines the range; a smaller number usually covers more addresses. For IPv6 ranges, use IP-CIDR6 rather than mixing the two address types.
Rule Keywords
GEOIP
Matches destination addresses using an IP geolocation database, not the website's language, domain text, or the user's location. Database records may differ from a server's actual deployment location. To troubleshoot an unexpected match, check the resolved address and the rule that matched it.
Rule Keywords
FINAL
Specifies the final action when no preceding rule matches, for example FINAL,PROXY. It is usually placed at the end of the rules and does not mean every connection in the configuration uses this action; earlier matches still determine the route for those connections.
Rule Keywords
PROXY / DIRECT / REJECT
These three uppercase terms are rule actions: proxy, direct, and reject. The actual proxy exit for PROXY also depends on the current server or policy settings. These actions are not at the same level as Proxy and Direct in Global Routing.