Update clash.yaml template with new config
New rule set: Telegram, WhatsApp, Discord, YouTube groups; oisd_big ad block;
refilter + ru-bundle for Russian sites; torrent direct; Smart/Fastest groups.
Proxy-providers sub URL kept with ${DOMAIN}/${SUB_PATH}/${SUB_ID} placeholders.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
f294cf4b6e
commit
c1923d5a6e
+126
-171
@@ -1,13 +1,12 @@
|
|||||||
mixed-port: 7890
|
mode: rule
|
||||||
|
log-level: info
|
||||||
|
mixed-port: 10000
|
||||||
|
unified-delay: true
|
||||||
allow-lan: true
|
allow-lan: true
|
||||||
tcp-concurrent: true
|
tcp-concurrent: true
|
||||||
enable-process: true
|
enable-process: true
|
||||||
find-process-mode: always
|
find-process-mode: always
|
||||||
mode: rule
|
global-client-fingerprint: chrome
|
||||||
log-level: debug
|
|
||||||
ipv6: false
|
|
||||||
keep-alive-interval: 30
|
|
||||||
unified-delay: true
|
|
||||||
|
|
||||||
# enable model auto update, the default is false
|
# enable model auto update, the default is false
|
||||||
lgbm-auto-update: true
|
lgbm-auto-update: true
|
||||||
@@ -16,26 +15,11 @@ lgbm-update-interval: 72
|
|||||||
# model update url
|
# model update url
|
||||||
lgbm-url: "https://github.com/vernesong/mihomo/releases/download/LightGBM-Model/Model-middle.bin"
|
lgbm-url: "https://github.com/vernesong/mihomo/releases/download/LightGBM-Model/Model-middle.bin"
|
||||||
|
|
||||||
proxy-providers:
|
|
||||||
sub:
|
|
||||||
type: http
|
|
||||||
url: https://${DOMAIN}/${SUB_PATH}/${SUB_ID}
|
|
||||||
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:
|
profile:
|
||||||
store-selected: true
|
store-selected: true
|
||||||
store-fake-ip: true
|
store-fake-ip: true
|
||||||
smart-collector-size: 100
|
smart-collector-size: 100
|
||||||
|
|
||||||
sniffer:
|
sniffer:
|
||||||
enable: true
|
enable: true
|
||||||
force-dns-mapping: true
|
force-dns-mapping: true
|
||||||
@@ -50,15 +34,7 @@ sniffer:
|
|||||||
ports:
|
ports:
|
||||||
- 443
|
- 443
|
||||||
- 8443
|
- 8443
|
||||||
tun:
|
|
||||||
enable: true
|
|
||||||
stack: gvisor
|
|
||||||
auto-route: true
|
|
||||||
auto-detect-interface: false
|
|
||||||
dns-hijack:
|
|
||||||
- any:53
|
|
||||||
strict-route: true
|
|
||||||
mtu: 1500
|
|
||||||
dns:
|
dns:
|
||||||
enable: true
|
enable: true
|
||||||
prefer-h3: true
|
prefer-h3: true
|
||||||
@@ -80,87 +56,153 @@ dns:
|
|||||||
- 195.208.4.1#DIRECT # НСДИ
|
- 195.208.4.1#DIRECT # НСДИ
|
||||||
- system
|
- system
|
||||||
nameserver:
|
nameserver:
|
||||||
- https://cloudflare-dns.com/dns-query#🌍 VPN
|
- https://cloudflare-dns.com/dns-query#PROXY
|
||||||
- https://cloudflare-dns.com/dns-query
|
|
||||||
|
|
||||||
proxies:
|
proxies:
|
||||||
|
|
||||||
|
proxy-providers:
|
||||||
|
sub:
|
||||||
|
type: http
|
||||||
|
url: https://${DOMAIN}/${SUB_PATH}/${SUB_ID}
|
||||||
|
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
|
||||||
|
|
||||||
proxy-groups:
|
proxy-groups:
|
||||||
- name: 🌍 VPN
|
- name: 🌍 VPN
|
||||||
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Hijacking.png
|
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Hijacking.png
|
||||||
type: select
|
type: select
|
||||||
include-all: true
|
|
||||||
proxies:
|
proxies:
|
||||||
- ⚡️ AUTO
|
- ⚡️ Fastest
|
||||||
- 📊 Smart
|
- 📊 Smart
|
||||||
# LEAVE THIS LINE!
|
# LEAVE THIS LINE!
|
||||||
|
include-all: true
|
||||||
- name: ▶️ YouTube
|
- name: ▶️ YouTube
|
||||||
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/YouTube.png
|
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/YouTube.png
|
||||||
type: select
|
type: select
|
||||||
include-all: true
|
|
||||||
proxies:
|
proxies:
|
||||||
- ⚡️ AUTO
|
- 🌍 VPN
|
||||||
- 📊 Smart
|
|
||||||
# LEAVE THIS LINE!
|
# LEAVE THIS LINE!
|
||||||
- name: ⚡️ AUTO
|
include-all: true
|
||||||
|
- name: 💬 Discord
|
||||||
|
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Discord.png
|
||||||
|
type: select
|
||||||
|
proxies:
|
||||||
|
- 🌍 VPN
|
||||||
|
# LEAVE THIS LINE!
|
||||||
|
include-all: true
|
||||||
|
- name: ⚡️ Fastest
|
||||||
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Auto.png
|
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Auto.png
|
||||||
type: url-test
|
type: url-test
|
||||||
url: https://captive.apple.com/generate_204
|
tolerance: 150
|
||||||
hidden: true
|
url: https://cp.cloudflare.com/generate_204
|
||||||
interval: 300
|
interval: 300
|
||||||
include-all: true
|
|
||||||
proxies:
|
proxies:
|
||||||
# LEAVE THIS LINE!
|
# LEAVE THIS LINE!
|
||||||
|
include-all: true
|
||||||
|
- name: ➤ Telegram
|
||||||
|
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Telegram.png
|
||||||
|
type: select
|
||||||
|
include-all: true
|
||||||
|
proxies:
|
||||||
|
- 🌍 VPN
|
||||||
|
- name: ➤ WhatsApp
|
||||||
|
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Facebook.png
|
||||||
|
type: select
|
||||||
|
include-all: true
|
||||||
|
proxies:
|
||||||
|
- 🌍 VPN
|
||||||
- name: 📊 Smart
|
- name: 📊 Smart
|
||||||
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Magic.png
|
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Magic.png
|
||||||
type: smart
|
type: smart
|
||||||
hidden: true
|
hidden: true
|
||||||
# uselightgbm: use LightGBM model predict weight
|
|
||||||
uselightgbm: true
|
uselightgbm: true
|
||||||
# collectdata: collect datas for model training
|
|
||||||
collectdata: false
|
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
|
strategy: sticky-sessions
|
||||||
# sample-rate: data acquisition rate, desirable values are 0-1, the default is 1
|
|
||||||
sample-rate: 1
|
sample-rate: 1
|
||||||
include-all: true
|
include-all: true
|
||||||
- name: 🔓 NO VPN
|
- name: PROXY
|
||||||
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Blackhole.png
|
remnawave:
|
||||||
|
include-proxies: false
|
||||||
type: select
|
type: select
|
||||||
hidden: true
|
hidden: true
|
||||||
proxies:
|
proxies:
|
||||||
- DIRECT
|
- 🌍 VPN
|
||||||
|
include-all: true
|
||||||
|
|
||||||
rule-providers:
|
rule-providers:
|
||||||
ru-inline-banned:
|
facebook-ips:
|
||||||
type: http
|
type: http
|
||||||
url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/other/inline/ru-inline-banned.yaml
|
behavior: ipcidr
|
||||||
|
format: mrs
|
||||||
interval: 86400
|
interval: 86400
|
||||||
behavior: classical
|
url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geoip/facebook.mrs
|
||||||
format: yaml
|
path: ./rule-sets/facebook-ips.mrs
|
||||||
path: ./rule-sets/ru-inline-banned.yaml
|
whatsapp-domains:
|
||||||
ru-inline:
|
|
||||||
type: http
|
type: http
|
||||||
url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/other/inline/ru-inline.yaml
|
behavior: domain
|
||||||
|
format: mrs
|
||||||
interval: 86400
|
interval: 86400
|
||||||
behavior: classical
|
url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geosite/whatsapp.mrs
|
||||||
format: yaml
|
path: ./rule-sets/whatsapp-domains.mrs
|
||||||
path: ./rule-sets/ru-inline.yaml
|
telegram-ips:
|
||||||
ru-app-list:
|
|
||||||
type: http
|
type: http
|
||||||
behavior: classical
|
behavior: ipcidr
|
||||||
format: yaml
|
format: mrs
|
||||||
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
|
interval: 86400
|
||||||
games-direct:
|
url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geoip/telegram.mrs
|
||||||
|
path: ./rule-sets/telegram-ips.mrs
|
||||||
|
telegram-domains:
|
||||||
type: http
|
type: http
|
||||||
behavior: classical
|
behavior: domain
|
||||||
format: yaml
|
format: mrs
|
||||||
url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/other/games-direct.yaml
|
|
||||||
path: ./rule-sets/games-direct.yaml
|
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geosite/telegram.mrs
|
||||||
|
path: ./rule-sets/telegram-domains.mrs
|
||||||
|
discord_domains:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
format: mrs
|
||||||
|
url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geosite/discord.mrs
|
||||||
|
path: ./rule-sets/discord_domains.mrs
|
||||||
|
discord_voiceips:
|
||||||
|
type: http
|
||||||
|
behavior: ipcidr
|
||||||
|
format: mrs
|
||||||
|
url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/other/discord-voice-ip-list.mrs
|
||||||
|
path: ./rule-sets/discord_voiceips.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
|
||||||
|
youtube:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
format: mrs
|
||||||
|
url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geosite/youtube.mrs
|
||||||
|
path: ./rule-sets/youtube.mrs
|
||||||
|
oisd_big:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
format: mrs
|
||||||
|
url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/oisd/big.mrs
|
||||||
|
path: ./oisd/big.mrs
|
||||||
torrent-trackers:
|
torrent-trackers:
|
||||||
type: http
|
type: http
|
||||||
behavior: domain
|
behavior: domain
|
||||||
@@ -175,110 +217,23 @@ rule-providers:
|
|||||||
url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/other/torrent-clients.yaml
|
url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/other/torrent-clients.yaml
|
||||||
path: ./rule-sets/torrent-clients.yaml
|
path: ./rule-sets/torrent-clients.yaml
|
||||||
interval: 86400
|
interval: 86400
|
||||||
geosite-ru:
|
ru-bundle:
|
||||||
type: http
|
type: http
|
||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geosite/category-ru.mrs
|
url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/ru-bundle/rule.mrs
|
||||||
path: ./geosite-ru.mrs
|
path: ./ru-bundle/rule.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
|
interval: 86400
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
- RULE-SET,ads,REJECT
|
- OR,((DOMAIN,ipwhois.app),(DOMAIN,ipwho.is),(DOMAIN,api.ip.sb),(DOMAIN,ipapi.co),(DOMAIN,ipinfo.io),(DOMAIN,ip-api.com),(DOMAIN,cloudflare-dns.com)),🌍 VPN
|
||||||
|
- RULE-SET,oisd_big,REJECT
|
||||||
|
- OR,((RULE-SET,telegram-ips),(RULE-SET,telegram-domains)),➤ Telegram
|
||||||
|
- OR,((RULE-SET,facebook-ips),(RULE-SET,whatsapp-domains)),➤ WhatsApp
|
||||||
|
- OR,((RULE-SET,torrent-clients),(RULE-SET,torrent-trackers)),DIRECT
|
||||||
- RULE-SET,youtube,▶️ YouTube
|
- RULE-SET,youtube,▶️ YouTube
|
||||||
- RULE-SET,ru-inline-banned,🌍 VPN
|
- OR,((RULE-SET,discord_domains),(RULE-SET,discord_voiceips),(PROCESS-NAME,Discord.exe)),💬 Discord
|
||||||
- PROCESS-NAME,Discord.exe,🌍 VPN
|
- RULE-SET,ru-bundle,🌍 VPN
|
||||||
- PROCESS-NAME,discord,🌍 VPN
|
- RULE-SET,refilter_domains,🌍 VPN
|
||||||
- RULE-SET,geoip-private,🔓 NO VPN,no-resolve
|
- RULE-SET,refilter_ipsum,🌍 VPN
|
||||||
- RULE-SET,geosite-private,🔓 NO VPN
|
- MATCH,DIRECT
|
||||||
- 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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user