Rule-Based Routing
In rule mode, mihomo checks connections against rules in the order listed, from top to bottom, and applies the action or egress specified by the first match. More specific rules aren't automatically moved to the top, so put exceptions before broader rules. To troubleshoot, find the matched rule in the connection log and check which egress it points to.
DOMAIN-SUFFIX
DOMAIN-SUFFIX matches a domain suffix by label, covering both the specified domain and its subdomains. To match only one exact hostname, use DOMAIN instead; neither rule type matches URL paths. If a connection exposes only a destination IP and the core can't determine the domain, this domain rule won't match.
GeoIP
A GEOIP rule uses IP geolocation data to map the destination address to a region and select an egress. It doesn't look up where a website is registered or use the visitor's location. A domain served from multiple addresses through a content delivery network may produce different matches depending on DNS resolution. If the region is unexpected, check the actual destination IP and the geolocation data currently loaded.
Proxy Groups
Proxy groups are defined under proxy-groups and give rules a set of egress options to target. With select, users choose a member manually; url-test picks one based on probe results and configured conditions such as tolerance. If a domain matches the expected proxy group but uses the wrong egress, check the group's current selection and the status of its members.
MATCH
MATCH has no domain or address condition and usually goes last in the rules list, catching connections that matched nothing above. It takes an action or outbound, such as DIRECT for a direct connection; MATCH alone does not mean traffic is proxied. Move it earlier, and later rules may never be checked.