這是一個極簡化版的規則
rules:
# > RULES_LOCAL
- DOMAIN-SUFFIX,ip6-localhost,DIRECT
- DOMAIN-SUFFIX,ip6-loopback,DIRECT
- DOMAIN-SUFFIX,lan,DIRECT
- DOMAIN-SUFFIX,local,DIRECT
- DOMAIN-SUFFIX,localhost,DIRECT
- IP-CIDR,10.0.0.0/8,DIRECT,no-resolve
- IP-CIDR,100.64.0.0/10,DIRECT,no-resolve
- IP-CIDR,127.0.0.0/8,DIRECT,no-resolve
- IP-CIDR,172.16.0.0/12,DIRECT,no-resolve
- IP-CIDR,192.168.0.0/16,DIRECT,no-resolve
- IP-CIDR,198.18.0.0/16,DIRECT,no-resolve
- IP-CIDR,224.0.0.0/4,DIRECT,no-resolve
- IP-CIDR6,::1/128,DIRECT,no-resolve
- IP-CIDR6,fc00::/7,DIRECT,no-resolve
- IP-CIDR6,fe80::/10,DIRECT,no-resolve
- IP-CIDR6,fd00::/8,DIRECT,no-resolve
- DOMAIN-SUFFIX,cm.steampowered.com,DIRECT
- DOMAIN-SUFFIX,steamserver.net,DIRECT
# > RULES_REMOTE
- RULE-SET,GLOBAL,Proxy
- RULE-SET,TELEGRAM,Proxy
- RULE-SET,APPLEMUSIC,DIRECT
- RULE-SET,SPOTIFY,Proxy
- RULE-SET,CHINA,DIRECT
- GEOIP,CN,DIRECT
- MATCH,Proxy
rule-providers:
CHINA:
type: http
behavior: classical
interval: 86400
path: ./rules_remote/china.yaml
url: "https://ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/China/China.yaml"
GLOBAL:
type: http
behavior: classical
interval: 86400
path: ./rules_remote/global.yaml
url: "https://ghproxy.com/https://raw.githubusercontent.com/fantasticmao/clash-rules/main/common.yaml"
TELEGRAM:
type: http
behavior: classical
url: "https://ghproxy.com/https://raw.githubusercontent.com/fantasticmao/clash-rules/main/telegramcidr.yaml"
interval: 86400
path: ./rules_remote/telegramcidr.yaml
APPLEMUSIC:
type: http
behavior: classical
url: "https://ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/AppleMusic/AppleMusic.yaml"
interval: 86400
path: ./rules_remote/applemusic.yaml
SPOTIFY:
type: http
behavior: classical
url: "https://ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Spotify/Spotify.yaml"
interval: 86400
path: ./rules_remote/spotify.yaml