
Complete Guide to Mihomo Traffic Splitting Rules: From Getting Started to Fine-Grained Control
The previous article on multi-gateway home network architecture covered the overall design but didn’t dive into the details of writing rules. This post focuses specifically on Mihomo’s traffic splitting rules, breaking down everything from syntax basics to practical configuration templates. Basic Concepts of Rules Mihomo controls traffic splitting through the rules field. Each rule follows this format: rule-type,match-value,proxy-group For example: rules: - DOMAIN-SUFFIX,google.com,Proxy - IP-CIDR,192.168.0.0/16,DIRECT - GEOIP,CN,DIRECT - MATCH,Proxy # fallback rule — matches all remaining traffic Rules are matched in order — the first rule that matches is executed, and subsequent rules are skipped. Order is critical. ...
