Rule Keywords
Match Targets & Actions
Rules are usually checked from top to bottom, and the first match determines how a request is handled. First decide whether to match a domain or an IP address, then choose a keyword. After making changes, check the actual match in Config mode under Global Routing.
Rule Keywords
DOMAIN
Matches an exact domain. For example, DOMAIN,example.com,PROXY specifies that domain only and does not automatically include its subdomains. Do not include https://, a port, or a webpage path in the domain field. If a request uses a different subdomain, add a rule for it or use an appropriate suffix match.
Rule Keywords
DOMAIN-SUFFIX
Matches the specified domain and its subdomains. For example, DOMAIN-SUFFIX,example.com,PROXY can match example.com and www.example.com. Do not add *. or enter a full URL. This matches domain boundaries, not an arbitrary string anywhere in the text.
Rule Keywords
DOMAIN-KEYWORD
Matches a specified string appearing in a domain, for example, DOMAIN-KEYWORD,example,PROXY. Its scope is generally broader than an exact-domain or suffix match and may catch domains you did not intend to route this way. For more precise control, consider DOMAIN or DOMAIN-SUFFIX, and check the rule order for an earlier match.
Rule Keywords
IP-CIDR
Matches an IPv4 address range expressed as a network address and prefix length, for example, IP-CIDR,192.168.0.0/16,DIRECT. The number after the slash is the network prefix length, not a port. The rule applies to the destination IP. If a request starts with a domain name, also consider the resolved address and the current DNS behavior.
Rule Keywords
IP-CIDR6
Matches an IPv6 address range, for example, IP-CIDR6,2001:db8::/32,DIRECT; the address is shown for syntax only. An IPv4 subnet rule cannot replace an IPv6 rule, and the same domain may resolve to both address types. If an IP rule does not match, first confirm which address type the connection actually uses.
Rule Keywords
GEOIP
Matches a target address using location records in an IP geolocation database, for example, GEOIP,CN,DIRECT. It does not use webpage language, domain suffix, or the user's location to decide. Database records may also differ from the actual deployment location of a service. For more precise control of a domain, place a specific domain rule above it.
Rule Keywords
FINAL
A fallback used when no earlier rule matches, for example, FINAL,PROXY. It is usually placed at the end of the rule list; placed too early, it prevents later rules from being checked. If traffic is routed unexpectedly, check both the specific rules above it and the final policy instead of changing FINAL alone.
Rule Keywords
PROXY / DIRECT / REJECT
The action taken when a rule matches: PROXY uses the proxy policy, DIRECT connects without a proxy, and REJECT blocks the connection. These uppercase rule keywords and Proxy and Direct in Global Routing operate at different levels; they are not the same toggle. Put each policy where the rule requires it. If REJECT blocks a connection, repeatedly testing the server usually will not help.