RULE
Rule
Rule contains the matching rules that determine where traffic goes, typically evaluated from top to bottom. Put specific conditions before broader ones and place the fallback rule at the end. After adding a rule, check actual request logs to confirm the match; a rule that looks right still needs to be tested.
RULE
DOMAIN
DOMAIN matches an exact domain and is suitable for handling a specific hostname. It does not automatically include all subdomains. Do not include a URL scheme, path or query parameters in the domain field; the example below applies only to the specified domain.
DOMAIN,example.com,PROXY
RULE
DOMAIN-SUFFIX
DOMAIN-SUFFIX matches a domain suffix, covering the specified domain and its subdomains. It has broader coverage than a single DOMAIN condition and is useful when related domains need the same policy. Before making changes, check whether subdomains should also match so that exceptions are not caught unintentionally.
DOMAIN-SUFFIX,example.com,PROXY
RULE
DOMAIN-KEYWORD
DOMAIN-KEYWORD matches a keyword anywhere in a domain name; the keyword does not need to appear in a fixed suffix position. It may also match unrelated domains with similar names, so use it sparingly. When possible, an exact domain or suffix makes the matching scope easier to review.
DOMAIN-KEYWORD,adservice,REJECT
RULE
IP-CIDR
IP-CIDR matches an IPv4 address range; the prefix length after the slash determines its size. The example shows a direct-routing rule for a private network range and should not be copied as a universal setting. For IPv6 addresses, use the corresponding IP-CIDR6 rule; confirm the address type before making changes.
IP-CIDR,192.168.0.0/16,DIRECT
RULE
GEOIP
GEOIP matches a destination based on its classification in an IP geolocation database, not the webpage language or the user’s location. Database classifications may differ from where a service is actually hosted, so they do not prove a website’s identity. If traffic is routed unexpectedly, check the resolved address and rule order.
RULE
FINAL
FINAL handles traffic that has not matched any preceding rule and serves as the configuration’s fallback. It is typically placed at the end of the rule list, and its policy affects every request not matched earlier. If a large amount of traffic reaches FINAL, check whether preceding conditions are too narrow or missing before changing servers.
FINAL,PROXY
POLICY
PROXY / DIRECT / REJECT
These three uppercase names are policies applied when a rule matches: PROXY routes through the proxy, DIRECT connects directly, and REJECT blocks the request. They do not define matching conditions and are distinct from the Global Routing interface modes. To understand a rule, read its keyword, match value and final policy together.