Rule Keywords
Match Conditions & Policies
A typical rule contains a type, a match value and a policy. Rules are generally evaluated in list order, so a broad rule near the top may take precedence over a more specific one. FINAL usually goes at the end.
Exact domain match
DOMAIN
Matches a specific full domain, for example DOMAIN,example.com,DIRECT. This does not automatically cover every subdomain; api.example.com must be handled separately. For a single, specific hostname, an exact match is easier to verify than a broader rule.
Domain suffix match
DOMAIN-SUFFIX
Matches a domain and its subdomains. For example, DOMAIN-SUFFIX,example.com,PROXY can match example.com and its subdomains. This is not a match for any string containing the text; domain boundaries still matter. Before using it for related services, confirm that they belong to the same domain hierarchy.
Domain keyword match
DOMAIN-KEYWORD
Matches when a domain contains a specified string, for example DOMAIN-KEYWORD,example,PROXY. The scope may be broader than expected because other domains containing the same characters can also match. For a specific service, consider DOMAIN or DOMAIN-SUFFIX first, then decide whether a keyword match is necessary.
Match by target IP location
GEOIP
Matches according to the target IP's location in a geolocation database, for example GEOIP,CN,DIRECT. It does not use webpage language, site branding or the user's current location, and the database location may differ from the actual server location. If a domain resolves to a different IP, the match may change.
IPv4 network match
IP-CIDR
Describes an IPv4 network using an 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; a larger number usually matches a smaller range. For local network rules, check the actual subnet to avoid including unrelated addresses.
IPv6 network match
IP-CIDR6
Matches an IPv6 address range, such as IP-CIDR6,2001:db8::/32,DIRECT, which uses a documentation-only example address. IPv4 rules do not automatically cover IPv6, and a domain may resolve to both address types. If access differs from expectations, check routing for both address types rather than reviewing only IPv4 settings.
Final policy
FINAL
Sets how requests that did not match earlier rules are handled, for example FINAL,PROXY. It usually appears at the end of the rule list to give unmatched requests a defined route. If a request always reaches FINAL, check the types, domains and order of earlier rules before assuming the server is at fault.
Rule actions
PROXY / DIRECT / REJECT
PROXY routes a request through a proxy, DIRECT connects directly, and REJECT denies the request. The specific proxy route also depends on the current selection and configuration. These are rule policies, not protocols or measures of bandwidth and connectivity. A rule may also refer to a custom policy group; make sure the group is defined in the configuration before using it.