What routing rules solve
A proxy client has to decide for each request: go direct, use the proxy, or block. Rules are the basis for that decision. Common conditions include domain, domain suffix, domain keyword, IP range, GeoIP country and process name.
What a rule set is
Arrange a large number of rules into one list file that the client can subscribe to by link and refresh periodically, and you have a rule set. You do not have to maintain thousands of rules by hand.
How common sources differ
- MetaCubeX meta-rules-dat: maintained by the Mihomo team, formats match the core, suits Mihomo and sing-box.
- Loyalsoldier collections: widely used rule bundles in versions for both Clash and V2Ray.
- blackmatrix7 ios_rule_script: covers many client formats (Surge, Clash, Loon and more) with fine categories, good for multi-platform users.
- ACL4SSR: config templates often used with subscription converters.
- GFWList: an early domain list that many rules derive from.
- anti-AD: ad-filtering rules.
Choose on three points: does the format match your client, is it still updated, and does the granularity suit you.
Using external rule sets
- Can the source itself be reached? Rule sets are hosted on sites like GitHub that the client must download from; enable "update through proxy" if needed.
- Rule order matters. Rules match in order, earlier first. Put ad blocking early and the fallback rule last.
- More rules is not always better. Very large rule sets increase memory use and matching time, especially on phones and routers.
- Vet the source. External rules decide where your traffic goes, so use sources you trust and can review.