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
+125
-170
@@ -1,13 +1,12 @@
|
||||
mixed-port: 7890
|
||||
mode: rule
|
||||
log-level: info
|
||||
mixed-port: 10000
|
||||
unified-delay: true
|
||||
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
|
||||
global-client-fingerprint: chrome
|
||||
|
||||
# enable model auto update, the default is false
|
||||
lgbm-auto-update: true
|
||||
@@ -16,26 +15,11 @@ 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}/${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:
|
||||
store-selected: true
|
||||
store-fake-ip: true
|
||||
smart-collector-size: 100
|
||||
|
||||
sniffer:
|
||||
enable: true
|
||||
force-dns-mapping: true
|
||||
@@ -50,15 +34,7 @@ sniffer:
|
||||
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
|
||||
@@ -80,87 +56,153 @@ dns:
|
||||
- 195.208.4.1#DIRECT # НСДИ
|
||||
- system
|
||||
nameserver:
|
||||
- https://cloudflare-dns.com/dns-query#🌍 VPN
|
||||
- https://cloudflare-dns.com/dns-query
|
||||
- https://cloudflare-dns.com/dns-query#PROXY
|
||||
|
||||
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:
|
||||
- name: 🌍 VPN
|
||||
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Hijacking.png
|
||||
type: select
|
||||
include-all: true
|
||||
proxies:
|
||||
- ⚡️ AUTO
|
||||
- ⚡️ Fastest
|
||||
- 📊 Smart
|
||||
# LEAVE THIS LINE!
|
||||
include-all: true
|
||||
- name: ▶️ YouTube
|
||||
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/YouTube.png
|
||||
type: select
|
||||
include-all: true
|
||||
proxies:
|
||||
- ⚡️ AUTO
|
||||
- 📊 Smart
|
||||
- 🌍 VPN
|
||||
# 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
|
||||
type: url-test
|
||||
url: https://captive.apple.com/generate_204
|
||||
hidden: true
|
||||
tolerance: 150
|
||||
url: https://cp.cloudflare.com/generate_204
|
||||
interval: 300
|
||||
include-all: true
|
||||
proxies:
|
||||
# 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
|
||||
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
|
||||
- name: PROXY
|
||||
remnawave:
|
||||
include-proxies: false
|
||||
type: select
|
||||
hidden: true
|
||||
proxies:
|
||||
- DIRECT
|
||||
- 🌍 VPN
|
||||
include-all: true
|
||||
|
||||
rule-providers:
|
||||
ru-inline-banned:
|
||||
facebook-ips:
|
||||
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
|
||||
behavior: classical
|
||||
format: yaml
|
||||
path: ./rule-sets/ru-inline-banned.yaml
|
||||
ru-inline:
|
||||
url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geoip/facebook.mrs
|
||||
path: ./rule-sets/facebook-ips.mrs
|
||||
whatsapp-domains:
|
||||
type: http
|
||||
url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/other/inline/ru-inline.yaml
|
||||
behavior: domain
|
||||
format: mrs
|
||||
interval: 86400
|
||||
behavior: classical
|
||||
format: yaml
|
||||
path: ./rule-sets/ru-inline.yaml
|
||||
ru-app-list:
|
||||
url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geosite/whatsapp.mrs
|
||||
path: ./rule-sets/whatsapp-domains.mrs
|
||||
telegram-ips:
|
||||
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
|
||||
behavior: ipcidr
|
||||
format: mrs
|
||||
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
|
||||
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
|
||||
behavior: domain
|
||||
format: mrs
|
||||
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:
|
||||
type: http
|
||||
behavior: domain
|
||||
@@ -175,110 +217,23 @@ rule-providers:
|
||||
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:
|
||||
ru-bundle:
|
||||
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
|
||||
url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/ru-bundle/rule.mrs
|
||||
path: ./ru-bundle/rule.mrs
|
||||
interval: 86400
|
||||
|
||||
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,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
|
||||
- OR,((RULE-SET,discord_domains),(RULE-SET,discord_voiceips),(PROCESS-NAME,Discord.exe)),💬 Discord
|
||||
- RULE-SET,ru-bundle,🌍 VPN
|
||||
- RULE-SET,refilter_domains,🌍 VPN
|
||||
- RULE-SET,refilter_ipsum,🌍 VPN
|
||||
- MATCH,DIRECT
|
||||
|
||||
Reference in New Issue
Block a user