Rule Keywords · Exact domain match
DOMAIN matches an exact domain. For example, DOMAIN,example.com,DIRECT applies to example.com. It does not automatically include subdomains such as www.example.com, or match webpage paths. To cover a domain and its subdomains, consider DOMAIN-SUFFIX instead of entering a full webpage address under DOMAIN.
Rule Keywords · Domain suffix
DOMAIN-SUFFIX matches a domain and its subdomains, making it useful for applying the same policy to an entire domain. For example, DOMAIN-SUFFIX,example.com,PROXY matches example.com and its subdomains. A webpage may request resources from other domains, so matching the main domain does not mean every resource on the page will use the same policy.
Rule Keywords · String match
DOMAIN-KEYWORD matches requests whose domain contains a specified string. Its scope is generally broader than an exact-domain or suffix match. It may also match unrelated domains containing the string, so short strings are not reliable boundaries for a website. Check actual matches in request logs and, if needed, use a more specific DOMAIN or DOMAIN-SUFFIX rule.
Rule Keywords · IP geolocation
GEOIP matches according to the target IP's location in a geographic database; it does not determine location from a website's language, company name, or domain suffix. Changes in DNS results can change which IP rule matches, and database records may differ from actual deployments. When checking a GEOIP rule, review the resolved address, rule order, and resulting policy together.
Rule Keywords · Address ranges
IP-CIDR matches IPv4 address ranges using CIDR notation. The prefix length after the slash determines the subnet range, as in 192.0.2.0/24. Use IP-CIDR6 for IPv6 ranges; do not mix the two address types. Subnet rules match addresses, not webpage paths. If multiple domains share an address, consider which requests the rule may cover.
Rule Keywords · Final policy
FINAL sets the policy for requests that did not match any preceding rule and should usually appear at the end. For example, FINAL,DIRECT sends requests with no specific match through DIRECT; it does not send every request directly. Changing the final policy affects many requests without individual rules. Set a clear goal first, then test specific rules and ordinary requests one by one.
Rule Keywords · Actions
PROXY, DIRECT, and REJECT are policies applied when a rule matches: send the request through a proxy, connect directly, or reject it. They serve a different purpose from match keywords such as DOMAIN-SUFFIX: policies determine the action, while keywords determine the condition. Rules may also refer to policy names defined in the configuration; use names that exist in the active configuration rather than assuming any label is a valid policy.