Rule Keywords
[Rule]
[Rule] is the section of a configuration that contains traffic-routing rules. Rules are typically evaluated from top to bottom, and the first match determines what happens next. Place more specific conditions before broader ones. When troubleshooting an unexpected match, check whether a rule above it has already matched.
See how rule routing works →
Rule Keywords
DOMAIN-SUFFIX
DOMAIN-SUFFIX matches a domain by its suffix. For example, example.com matches that domain and its subdomains, not any domain that happens to contain the same text. In DOMAIN-SUFFIX,example.com,PROXY, the final field specifies the policy. Do not include a protocol prefix or web page path.
Rule Keywords
DOMAIN-KEYWORD
DOMAIN-KEYWORD matches domains that contain a specified string. For example, the keyword example can match domains with many different suffixes. This is broader than suffix matching and may include destinations you did not intend to match. If a rule behaves unexpectedly, check the actual matched domain in the connection log.
Rule Keywords
IP-CIDR / IP-CIDR6
IP-CIDR is used for IPv4 address ranges, and IP-CIDR6 for IPv6 ranges. The number after the slash indicates the network prefix length. For example, 192.168.0.0/16 is a range of addresses, not a single device. These rules match destination addresses, unlike rules that match domain text.
Rule Keywords
GEOIP
GEOIP matches a destination IP based on its region in an address database, as in GEOIP,CN,DIRECT. Database classification is not a real-time measurement of physical location and does not indicate the user's current location. If a domain resolves to different addresses, the match may change; check the DNS results as well.
Rule Keywords
FINAL
FINAL is the policy used when none of the preceding conditions match, and is usually placed at the end of the rule list. For example, FINAL,DIRECT sends the remaining traffic through DIRECT. It is not a dispensable closing note: changing its policy affects every connection not matched by an earlier rule.
Rule Keywords
PROXY / DIRECT / REJECT
PROXY routes traffic through a proxy, DIRECT connects without one, and REJECT blocks the connection. These are rule outcomes, not match conditions. Distinguish the uppercase policies from the Proxy and Direct options in Global Routing. If a request is rejected, find the matching rule before changing servers.