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. ...

2026-04-10 · 5 min · 972 words · Panshi

Home Network Multi-Gateway Architecture: Mihomo Fine-Grained Traffic Splitting in Practice

After half a year of tinkering with my home network, I finally got a multi-gateway redundancy architecture working. This article shares the overall design approach—it’s for people with some hands-on experience who want a more stable network. Why You Need Multiple Gateways The biggest problem with a single gateway is a single point of failure: if your VPS gets blocked, the line stutters, or the machine crashes, your entire network goes down. ...

2026-04-01 · 3 min · 550 words · Panshi