From aac73e50f980670127cc4e60f39166c065ca577a Mon Sep 17 00:00:00 2001 From: Hypick Date: Sun, 17 May 2026 14:53:14 +0300 Subject: [PATCH] update config --- clash/{ => config}/config.yaml | 139 +++++++++++++++++++++------------ 1 file changed, 91 insertions(+), 48 deletions(-) rename clash/{ => config}/config.yaml (76%) diff --git a/clash/config.yaml b/clash/config/config.yaml similarity index 76% rename from clash/config.yaml rename to clash/config/config.yaml index 7fc5882..8b43480 100644 --- a/clash/config.yaml +++ b/clash/config/config.yaml @@ -181,6 +181,20 @@ rule-providers: # url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/other/bld-agregator.mrs # interval: 86400 # path: ./rules/oisd/bld-agregator.mrs + refilter_domains: + type: http + behavior: domain + format: mrs + url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/re-filter/domain-rule.mrs + path: ./re-filter/domain-rule.mrs + interval: 86400 + refilter_ipsum: + type: http + behavior: ipcidr + format: mrs + url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/re-filter/ip-rule.mrs + path: ./re-filter/ip-rule.mrs + interval: 86400 antifilter-ip: behavior: classical type: http @@ -199,13 +213,26 @@ rule-providers: url: https://antifilter.i8m3x.icu/antifilter-community-ip.yaml interval: 86400 path: ./rules/custom/antifilter-community-ip.yaml - proxy-domain: - behavior: classical + # proxy-domain: + # behavior: classical + # type: http + # url: https://antifilter.i8m3x.icu/proxy-domain.yaml + # interval: 86400 + # path: ./rules/custom/proxy-domain.yaml + android-app-list: type: http - url: https://antifilter.i8m3x.icu/proxy-domain.yaml + behavior: classical + format: yaml + url: https://git.i8m3x.icu/admin/122/raw/branch/master/clash/rules/android-apps.yaml + path: ./rules/custom/android-app-list.yaml interval: 86400 - path: ./rules/custom/proxy-domain.yaml - # proxy-android: + cloudflare: + type: http + behavior: ipcidr + format: mrs + url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geoip/cloudflare.mrs + interval: 86400 + path: ./rules/geoip/cloudflare.mrs youtube: behavior: classical type: http @@ -224,12 +251,6 @@ rule-providers: url: https://raw.githubusercontent.com/fildunsky/clash_discord/refs/heads/main/discord-ip.yaml interval: 86400 path: ./rules/services/discord-ip.yaml - openai: - behavior: classical - type: http - url: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/OpenAI/OpenAI.yaml - interval: 86400 - path: ./rules/services/openai.yaml telegram: behavior: classical type: http @@ -243,13 +264,6 @@ rule-providers: url: https://core.telegram.org/resources/cidr.txt interval: 86400 path: ./rules/services/telegram-ip.txt - itdoginfo-domains: - behavior: domain - type: http - format: mrs - url: https://github.com/itdoginfo/allow-domains/releases/latest/download/russia_inside_domain.mrs - interval: 86400 - path: ./rules/ru/russia_inside_domain.mrs games-direct: type: http behavior: classical @@ -257,47 +271,76 @@ rule-providers: url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/other/games-direct.yaml path: ./rules/services/games-direct.yaml interval: 86400 + itdoginfo-domains: + behavior: domain + type: http + format: mrs + url: https://github.com/itdoginfo/allow-domains/releases/latest/download/russia_inside_domain.mrs + interval: 86400 + path: ./rules/ru-bundle/russia_inside_domain.mrs ru-app-list: type: http behavior: classical format: yaml url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/other/ru-app-list.yaml - path: ./rules/services/ru-app-list.yaml + path: ./rules/ru-bundle/ru-app-list.yaml interval: 86400 - # itdoginfo-inside-russia + no-russia-hosts + antifilter-community + rknasnblock - # ru-bundle: - # behavior: domain - # type: http - # format: mrs - # url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/ru-bundle/rule.mrs - # interval: 86400 - # path: ./rules/ru-bundle/rule.mrs - # rknasnblock: - # behavior: ipcidr - # type: http - # format: mrs - # url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/ru-bundle/rknasnblock.mrs - # interval: 86400 - # path: ./rules/ru-bundle/rknasnblock.mrs + no-russia-hosts: + type: http + behavior: domain + format: mrs + url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/ru-bundle/no-russia-hosts.mrs + interval: 86400 + path: ./rules/ru-bundle/no-russia-hosts.mrs + rknasnblock: + behavior: ipcidr + type: http + format: mrs + url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/ru-bundle/rknasnblock.mrs + interval: 86400 + path: ./rules/ru-bundle/rknasnblock.mrs + apps_ipcheck: + type: inline + behavior: classical + payload: + - DOMAIN,ipwho.is + - DOMAIN,ipapi.is + - DOMAIN,ipapi.co + - DOMAIN,api.ip.sb + # - DOMAIN,ipinfo.io + - DOMAIN,ip-api.com + rules: + - RULE-SET,apps_ipcheck,PROXY + # === REJECT === - RULE-SET,oisd-big,Реклама # - RULE-SET,bld-agregator,REJECT - # === PROXY === - - RULE-SET,antifilter-ip,PROXY - - RULE-SET,antifilter-community-domain,PROXY - - RULE-SET,antifilter-community-ip,PROXY - - RULE-SET,proxy-domain,PROXY - - PROCESS-NAME,discord.exe,Discord - - RULE-SET,discord-domain,Discord - - RULE-SET,discord-ip,Discord - - RULE-SET,youtube,Youtube - - RULE-SET,openai,PROXY - - RULE-SET,telegram-ip,PROXY,no-resolve - - RULE-SET,telegram,PROXY - - RULE-SET,itdoginfo-domains,RU-Banned - # === DIRECT === + + # === DIRECT (priority) === - RULE-SET,games-direct,DIRECT - RULE-SET,ru-app-list,DIRECT + + # === PROXY === + - RULE-SET,cloudflare,PROXY + - PROCESS-NAME,discord.exe,Discord + - RULE-SET,discord-domain,Discord + - RULE-SET,discord-ip,Discord,no-resolve + - RULE-SET,telegram-ip,PROXY,no-resolve + - RULE-SET,telegram,PROXY + - RULE-SET,youtube,Youtube + + - RULE-SET,refilter_ipsum,PROXY,no-resolve + - RULE-SET,refilter_domains,PROXY + - RULE-SET,antifilter-ip,PROXY,no-resolve + - RULE-SET,antifilter-community-ip,PROXY,no-resolve + - RULE-SET,antifilter-community-domain,PROXY + # - RULE-SET,proxy-domain,PROXY + - RULE-SET,android-app-list,PROXY + + - RULE-SET,itdoginfo-domains,RU-Banned + - RULE-SET,no-russia-hosts,RU-Banned + - RULE-SET,rknasnblock,RU-Banned,no-resolve + # === DIRECT === - MATCH,DIRECT