RULES & POLICIES
Rule Keywords and Actions
The rule keyword on the left determines what matches; the action at the end determines what happens. Check Global Routing first, then check rule order. More specific rules usually belong before broader ones.
Rules
A rule combines a match condition and an action in one entry, such as DOMAIN-SUFFIX,example.com,PROXY. The Rule section is usually checked from top to bottom; the first valid matching rule determines how the connection is handled, and later entries do not change that decision. When editing, check both the rule itself and whether an earlier, broader rule already matches the connection.
DOMAIN
DOMAIN matches an exact domain. For example, DOMAIN,example.com,DIRECT applies only to that domain. It does not automatically match api.example.com just because the name contains example.com. To cover a domain and its subdomains, use DOMAIN-SUFFIX to specify the intended scope rather than guessing how exact-domain matching works.
DOMAIN-SUFFIX
DOMAIN-SUFFIX matches at a domain boundary. An entry for example.com covers the domain itself and subdomains such as api.example.com. It is not an arbitrary substring match, so notexample.com is outside that suffix. The example DOMAIN-SUFFIX,example.com,PROXY shows the syntax only; it is not a working server configuration.
DOMAIN-KEYWORD
DOMAIN-KEYWORD matches when a domain contains the specified keyword, and usually covers a wider range than DOMAIN or DOMAIN-SUFFIX. A short keyword may also match unrelated domains. Use it only when that broader scope is needed, then check the connection log for unintended matches.
GEOIP
GEOIP matches according to categories in an IP geolocation database, not a website's language or the user's location. Results may change when a domain resolves to a different address, and database classifications may be inaccurate. If a connection does not behave as expected, check the actual destination IP and matching rule rather than inferring the result from the website name.
IP-CIDR / IP-CIDR6
IP-CIDR is used for IPv4 ranges, and IP-CIDR6 for IPv6 ranges. The prefix length after the slash defines the range. For example, IP-CIDR,192.0.2.0/24,DIRECT demonstrates an IPv4 range entry using a documentation address. An incorrect prefix length can widen the scope, so check the address family, network address, and action.
USER-AGENT
USER-AGENT matches User-Agent information in HTTP requests; it is not a universal way to identify every app on a device. Whether request details are visible depends on the protocol, encryption, and related settings. If the rule does not match, first check whether the connection log shows this information rather than simply adding more keywords.
FINAL
FINAL is a fallback rule for connections not matched by earlier entries and is usually placed at the end of the Rule section. For example, FINAL,PROXY sends all remaining connections to the PROXY action. Changing FINAL affects every remaining connection, not just one website. First check that specific rules cover any destinations that need an exception.
PROXY / DIRECT / REJECT
PROXY uses the proxy action, DIRECT connects to the destination directly, and REJECT blocks the connection. These uppercase keywords are rule actions that apply to matching connections; they are not the Proxy and Direct options in Global Routing. If a destination matches REJECT, check whether the rule is intended before attributing the result to a server failure.