Rule section
Rule
The [Rule] section in a configuration file defines routing rules, commonly with a rule type, match value, and policy. The first matching rule usually determines how a request is handled, so a broad rule near the top can prevent a more specific rule below it from matching. After making changes, confirm that Global Routing is set to Config and that the intended file is active.
Exact domain match
DOMAIN
Matches a specific full domain, for cases where you want to handle one exact hostname. For example, DOMAIN,example.com,DIRECT does not automatically cover all subdomains. Enter the domain itself as the match value; do not include the scheme, path, or query parameters from a full webpage URL.
Domain suffix match
DOMAIN-SUFFIX
Matches a domain and its subdomains. For example, DOMAIN-SUFFIX,example.com,PROXY covers example.com and its subdomains. Its scope is broader than DOMAIN, but it does not match arbitrary text substrings. If the same domain has exceptions, place more specific rules above this one.
Domain keyword match
DOMAIN-KEYWORD
Checks whether a domain contains a specified keyword, which may match multiple unrelated domains. It matches the domain, not webpage content or arbitrary URL paths. If you only want to cover one website and its subdomains, consider DOMAIN-SUFFIX first to reduce unintended matches.
IP geolocation match
GEOIP
Matches according to the target IP's location in a geolocation database, not the website's language or domain text. Database records, DNS results, and content delivery networks can all affect the match. This does not indicate where the target service is registered, nor does it guarantee that every request to a website will match the same location.
Address range match
IP-CIDR / IP-CIDR6
Use CIDR notation to match IPv4 and IPv6 address ranges, for example IP-CIDR,192.0.2.0/24,DIRECT. The prefix length after the slash sets the subnet size; it is not a port number. This is a documentation example. Write actual rules for the destination addresses you need to match, and account for the differences between the two address families.
Fallback rule
FINAL
Handles requests that did not match any earlier rules and is usually placed last in the list. FINAL,DIRECT means unmatched requests connect directly; it does not force all requests to connect directly. If FINAL appears earlier in the list, later rules may never get a chance to match. Check the order before reviewing individual conditions.
Rule actions
PROXY / DIRECT / REJECT
PROXY sends a request to a proxy policy, DIRECT connects to the destination directly, and REJECT denies the request. These uppercase keywords are rule actions, not alternate names for the three Global Routing modes. A matching PROXY rule still requires a usable proxy entry to complete the connection.