Rule-based routing
Routing Rules
In rule mode, the core checks connections against the configuration in order. The first matching rule usually determines the outbound. Rules can distinguish traffic by domain, destination IP, or other conditions, but cannot capture requests that never reached the core. Before changing routing, check the matched rule in the connection details and update that entry. Do not rely on whether a website loads to decide if a rule is working.
DOMAIN-SUFFIX
DOMAIN-SUFFIX
Use this rule to match a domain and its subdomains. For example, DOMAIN-SUFFIX,github.com,PROXY matches the domain and its subdomains. It matches the domain suffix, not the full URL or a page path. When adding a rule, omit the scheme and slash, and place it before broader rules that could match first.
GeoIP / GEOIP
GeoIP
Use an IP geolocation database to determine the region associated with a destination address. For example, GEOIP,CN,DIRECT sends addresses associated with that region through a direct connection. Database results do not show where a website operator is based; content delivery networks and database updates can also affect the result. These rules may depend on DNS resolution. If a domain uses different outbounds at different times, check the resolved address, database, and rule order.
MATCH
MATCH
Put this at the end of the rule list to handle connections that did not match earlier entries, for example MATCH,PROXY. It has no domain or IP condition, so if it appears too early, later rules usually will not be checked. Choose the fallback policy for your needs. Setting it to a proxy does not reroute connections already matched by a direct rule.
Proxy group
Proxy Group
A proxy group puts multiple proxies or other policies into a named collection that rules can reference instead of tying them to a single server. Common types include manual selection, automatic testing, and failover, each with different switching behavior. If a rule matches the right group but traffic uses the wrong outbound, check the group’s current selection and nesting rather than adding the same rule again.