From 7aef10624d7ba00d22c5a95eb2a9b9481a6b2ceb Mon Sep 17 00:00:00 2001 From: Ivan Razin Date: Wed, 24 Jun 2026 13:44:04 +0300 Subject: [PATCH] Update clash.yaml --- assets/clash/clash.yaml | 316 ++++++++++++++++++++++++++++++++-------- 1 file changed, 255 insertions(+), 61 deletions(-) diff --git a/assets/clash/clash.yaml b/assets/clash/clash.yaml index 399e0ab..6b3b4d6 100644 --- a/assets/clash/clash.yaml +++ b/assets/clash/clash.yaml @@ -1,45 +1,20 @@ mixed-port: 7890 -allow-lan: false -log-level: info -ipv6: false - +allow-lan: true +tcp-concurrent: true +enable-process: true +find-process-mode: always mode: rule -dns: - enable: true - use-hosts: true - ipv6: false - enhanced-mode: redir-host - listen: 127.0.0.1:6868 - default-nameserver: - - 1.1.1.1 - - 8.8.8.8 - - 1.0.0.1 - nameserver: - - https://1.1.1.1/dns-query#PROXY - - https://8.8.8.8/dns-query#PROXY - - https://1.0.0.1/dns-query#PROXY - - 8.8.8.8 - - 1.1.1.1 +log-level: debug +ipv6: false +keep-alive-interval: 30 +unified-delay: true -profile: - store-selected: true - -proxy-groups: - - name: PROXY - proxies: - - auto - use: - - sub - type: select - - - name: auto - use: - - sub - type: url-test - url: http://cp.cloudflare.com - interval: 300 - tolerance: 150 - lazy: true +# enable model auto update, the default is false +lgbm-auto-update: true +# model auto update interval, the default is 72 (hours) +lgbm-update-interval: 72 +# model update url +lgbm-url: "https://github.com/vernesong/mihomo/releases/download/LightGBM-Model/Model-middle.bin" proxy-providers: sub: @@ -53,40 +28,259 @@ proxy-providers: interval: 300 timeout: 5000 lazy: true - expected-status: 204 -rule-providers: - ru-bundle: - type: http - behavior: domain - format: mrs - url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/ru-bundle/rule.mrs - path: ./ru-bundle/rule.mrs - interval: 86400 -rules: - - PROCESS-NAME,Discord.exe,PROXY - - PROCESS-NAME,com.supercell.clashofclans,PROXY - - PROCESS-NAME,com.supercell.brawlstars,PROXY - - RULE-SET,ru-bundle,PROXY - - MATCH,DIRECT +profile: + store-selected: true + store-fake-ip: true + smart-collector-size: 100 sniffer: enable: true force-dns-mapping: true parse-pure-ip: true sniff: HTTP: - ports: [80, 8080-8880] + ports: + - 80 + - 8080-8880 override-destination: true TLS: - ports: [443, 8443] - + ports: + - 443 + - 8443 tun: enable: true - stack: system + stack: gvisor + auto-route: true + auto-detect-interface: false dns-hijack: - any:53 - auto-redir: true - auto-route: true - auto-detect-interface: true + strict-route: true + mtu: 1500 +dns: + enable: true + prefer-h3: true + use-hosts: true + use-system-hosts: true + listen: 127.0.0.1:6868 + ipv6: false + enhanced-mode: redir-host + default-nameserver: + - tls://77.88.8.8#DIRECT # Yandex DNS over TLS + - 195.208.4.1#DIRECT # НСДИ + - system + proxy-server-nameserver: + - tls://77.88.8.8#DIRECT # Yandex DNS over TLS + - 195.208.4.1#DIRECT # НСДИ + - system + direct-nameserver: + - tls://77.88.8.8#DIRECT # Yandex DNS over TLS + - 195.208.4.1#DIRECT # НСДИ + - system + nameserver: + - https://cloudflare-dns.com/dns-query#🌍 VPN + - https://cloudflare-dns.com/dns-query + +proxies: + +proxy-groups: + - name: 🌍 VPN + icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Hijacking.png + type: select + include-all: true + proxies: + - ⚡️ AUTO + - 📊 Smart + # LEAVE THIS LINE! + - name: ▶️ YouTube + icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/YouTube.png + type: select + include-all: true + proxies: + - ⚡️ AUTO + - 📊 Smart + # LEAVE THIS LINE! + - name: ⚡️ AUTO + icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Auto.png + type: url-test + url: https://captive.apple.com/generate_204 + hidden: true + interval: 300 + include-all: true + proxies: + # LEAVE THIS LINE! + - name: 📊 Smart + icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Magic.png + type: smart + hidden: true + # uselightgbm: use LightGBM model predict weight + uselightgbm: true + # collectdata: collect datas for model training + collectdata: false + # strategy: 'sticky-sessions' or 'round-robin', not support 'consistent-hashing' + # the default is 'sticky-sessions' with more stable&smoothly nodes switch logic when datas collecting + strategy: sticky-sessions + # sample-rate: data acquisition rate, desirable values are 0-1, the default is 1 + sample-rate: 1 + include-all: true + - name: 🔓 NO VPN + icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Blackhole.png + type: select + hidden: true + proxies: + - DIRECT + +rule-providers: + ru-inline-banned: + type: http + url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/other/inline/ru-inline-banned.yaml + interval: 86400 + behavior: classical + format: yaml + path: ./rule-sets/ru-inline-banned.yaml + ru-inline: + type: http + url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/other/inline/ru-inline.yaml + interval: 86400 + behavior: classical + format: yaml + path: ./rule-sets/ru-inline.yaml + ru-app-list: + type: http + behavior: classical + format: yaml + url: https://github.com/legiz-ru/mihomo-rule-sets/blob/main/other/ru-app-list.yaml + path: ./rule-sets/ru-app-list.yaml + interval: 86400 + games-direct: + type: http + behavior: classical + format: yaml + url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/other/games-direct.yaml + path: ./rule-sets/games-direct.yaml + interval: 86400 + torrent-trackers: + type: http + behavior: domain + format: mrs + url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/other/torrent-trackers.mrs + path: ./rule-sets/torrent-trackers.mrs + interval: 86400 + torrent-clients: + type: http + behavior: classical + format: yaml + url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/other/torrent-clients.yaml + path: ./rule-sets/torrent-clients.yaml + interval: 86400 + geosite-ru: + type: http + behavior: domain + format: mrs + url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geosite/category-ru.mrs + path: ./geosite-ru.mrs + interval: 86400 + xiaomi: + type: http + behavior: domain + format: mrs + url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geosite/xiaomi.mrs + path: ./rule-sets/xiaomi.mrs + interval: 86400 + blender: + type: http + behavior: domain + format: mrs + url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geosite/blender.mrs + path: ./rule-sets/blender.mrs + interval: 86400 + drweb: + type: http + behavior: domain + format: mrs + url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geosite/drweb.mrs + path: ./rule-sets/drweb.mrs + interval: 86400 + debian: + type: http + behavior: domain + format: mrs + url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geosite/debian.mrs + path: ./rule-sets/debian.mrs + interval: 86400 + canonical: + type: http + behavior: domain + format: mrs + url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geosite/canonical.mrs + path: ./rule-sets/canonical.mrs + interval: 86400 + python: + type: http + behavior: domain + format: mrs + url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geosite/python.mrs + path: ./rule-sets/python.mrs + interval: 86400 + geoip-ru: + type: http + behavior: ipcidr + format: mrs + url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geoip/ru.mrs + path: ./geoip-ru.mrs + interval: 86400 + geosite-private: + type: http + behavior: domain + format: mrs + url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geosite/private.mrs + path: ./geosite-private.mrs + interval: 86400 + geoip-private: + type: http + behavior: ipcidr + format: mrs + url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geoip/private.mrs + path: ./geoip-private.mrs + interval: 86400 + ads: + type: http + behavior: domain + format: mrs + url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geosite/category-ads-all.mrs + path: ./category-ads-all.mrs + interval: 86400 + youtube: + type: http + behavior: domain + format: mrs + url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geosite/youtube.mrs + path: ./youtube.mrs + interval: 86400 + +rules: + - RULE-SET,ads,REJECT + - RULE-SET,youtube,▶️ YouTube + - RULE-SET,ru-inline-banned,🌍 VPN + - PROCESS-NAME,Discord.exe,🌍 VPN + - PROCESS-NAME,discord,🌍 VPN + - RULE-SET,geoip-private,🔓 NO VPN,no-resolve + - RULE-SET,geosite-private,🔓 NO VPN + - RULE-SET,ru-app-list,🔓 NO VPN + - RULE-SET,games-direct,🔓 NO VPN + - RULE-SET,torrent-clients,🔓 NO VPN + - RULE-SET,torrent-trackers,🔓 NO VPN + - RULE-SET,ru-inline,🔓 NO VPN + - RULE-SET,geosite-ru,🔓 NO VPN + - RULE-SET,xiaomi,🔓 NO VPN + - RULE-SET,blender,🔓 NO VPN + - RULE-SET,drweb,🔓 NO VPN + - RULE-SET,debian,🔓 NO VPN + - RULE-SET,canonical,🔓 NO VPN + - RULE-SET,python,🔓 NO VPN + - RULE-SET,geoip-ru,🔓 NO VPN + - MATCH,🌍 VPN + + expected-status: 204 +