Files
3x-ui-pro/assets/clash/clash.yaml
T
Ivan RazinandClaude Sonnet 4.6 d9a51d7199 Fix clash.yaml: move orphaned expected-status back into health-check block
expected-status: 204 ended up after the rules section instead of
inside proxy-providers.sub.health-check where it belongs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 13:49:43 +03:00

285 lines
7.7 KiB
YAML

mixed-port: 7890
allow-lan: true
tcp-concurrent: true
enable-process: true
find-process-mode: always
mode: rule
log-level: debug
ipv6: false
keep-alive-interval: 30
unified-delay: 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:
type: http
url: https://${DOMAIN}/${SUB_PATH}/
path: ./proxy_providers/base64.yml
interval: 3600
health-check:
enable: true
url: https://www.gstatic.com/generate_204
interval: 300
timeout: 5000
lazy: true
expected-status: 204
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
override-destination: true
TLS:
ports:
- 443
- 8443
tun:
enable: true
stack: gvisor
auto-route: true
auto-detect-interface: false
dns-hijack:
- any:53
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