Rule Keywords
DOMAIN
DOMAIN matches an exact domain, for example DOMAIN,example.com,DIRECT. This rule does not automatically match subdomains such as www.example.com. To change routing for one exact domain, use an exact match and place it before any broader rule that might match first.
Rule Keywords
DOMAIN-SUFFIX
DOMAIN-SUFFIX matches a domain and its subdomains, for example DOMAIN-SUFFIX,example.com,PROXY. It can match both example.com and www.example.com, but does not match an arbitrary string anywhere in a domain. To route the same domain and its subdomains consistently, make sure more specific exceptions come first.
Rule Keywords
DOMAIN-KEYWORD
DOMAIN-KEYWORD matches a string contained in a domain name. It usually covers more than DOMAIN or DOMAIN-SUFFIX, and may also match domains you did not intend to include. After adding this rule, check the actual requested domains and match results. When a requirement can be expressed with a specific domain, prefer the more precise condition.
Rule Keywords
GEOIP
GEOIP matches a rule based on the target IP address's geographic database entry, for example GEOIP,CN,DIRECT. The database entry does not indicate the server's real-time physical location, and a website's language alone cannot determine whether the rule will match. DNS results and database records both affect the outcome, so check the actual connection details.
Rule Keywords
IP-CIDR
IP-CIDR matches destination IPv4 addresses using CIDR notation, for example IP-CIDR,192.0.2.0/24,DIRECT. The prefix length after the slash determines the address range; it is not a port number. Use IP-CIDR6 for IPv6 ranges. Before adding a rule, check the address family and make sure the range does not include more targets than intended.
Rule Keywords
FINAL
FINAL specifies the policy to apply when none of the preceding rules match, for example FINAL,PROXY. It is usually placed at the end of the rule list and does not identify any particular domain. If a connection reaches FINAL, first check whether the preceding conditions cover the actual destination before adding another rule.
Rule Keywords
PROXY · DIRECT · REJECT
PROXY, DIRECT, and REJECT are policy names applied when a rule matches; they mean proxy, direct, and reject. To determine which server PROXY uses, also check the current selection and policy relationships in the configuration. These are uppercase rule keywords and should not be confused with the Proxy and Direct options in Global Routing.