【科学上网】Clash分流规则(Rule-Provider版)


  • 如需要foss版本的普通规则,请 查看这里
  • 如需要GEOSITE方式的分流规则,请 查看这里
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    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