Rule Keywords
DOMAIN
DOMAIN matches an exact, complete domain name—for example, to specify how to handle only example.com. It does not automatically cover subdomains such as www.example.com. To match both the root domain and its subdomains, consider DOMAIN-SUFFIX rather than guessing domain prefixes one by one.
DOMAIN,example.com,PROXY
Rule Keywords
DOMAIN-SUFFIX
DOMAIN-SUFFIX matches the specified domain and its subdomains, making it useful for applying one policy across a domain hierarchy. For example, example.com can match www.example.com, but it does not match every domain that happens to contain that string. Its scope differs from a simple substring match.
DOMAIN-SUFFIX,example.com,PROXY
Rule Keywords
DOMAIN-KEYWORD
DOMAIN-KEYWORD matches a specified string anywhere in a domain name; the string does not need to form a complete domain level. Its scope is generally broader than DOMAIN or DOMAIN-SUFFIX. Check for unintended matches before using it, and avoid short, common strings when a specific domain would be clearer.
DOMAIN-KEYWORD,example,PROXY
Rule Keywords
GEOIP
GEOIP matches a destination based on its regional assignment in an IP geolocation database—not the domain suffix or user's location. Content delivery and changes in IP geolocation can affect results. For a specific domain that needs consistent handling, check more specific domain rules first.
GEOIP,CN,DIRECT
Rule Keywords
IP-CIDR
IP-CIDR matches IPv4 address ranges using CIDR notation. The number after the slash is the network prefix length, not a port. The example applies DIRECT to the 192.168.0.0/16 range. Confirm the actual network plan before adding a range so you do not unintentionally cover addresses that need a different policy.
IP-CIDR,192.168.0.0/16,DIRECT
Rule Keywords
IP-CIDR6
IP-CIDR6 matches IPv6 address ranges and cannot be replaced with an IPv4 IP-CIDR rule. On a dual-stack network, the same domain may return both address types. If an address rule does not match, check whether the connection is using IPv4 or IPv6, then review the corresponding range.
IP-CIDR6,fc00::/7,DIRECT
Rule Keywords
USER-AGENT
USER-AGENT matches requests using a readable HTTP User-Agent field; it does not route traffic based on the name of an app on the device. Fields in encrypted requests are generally not directly readable, so this keyword does not apply to every connection. Check the protocol and processing conditions first; do not change certificate settings blindly just to match this rule.
Rule Keywords
FINAL
FINAL is the fallback policy used when none of the preceding rules match and is usually placed at the end of the Rule section. It has no domain or address condition; specify the final policy directly at the end of the line. If FINAL appears too early, later specific rules cannot serve as intended before the fallback.
FINAL,DIRECT