Custom header X-Proxy-Provider is not sent by ClashMi and other clients that don't support header: in proxy-providers. URL query param works in all clients universally. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
220 lines
5.9 KiB
YAML
220 lines
5.9 KiB
YAML
mode: rule
|
|
log-level: info
|
|
mixed-port: 10000
|
|
unified-delay: true
|
|
allow-lan: true
|
|
tcp-concurrent: true
|
|
enable-process: true
|
|
find-process-mode: always
|
|
global-client-fingerprint: chrome
|
|
|
|
profile:
|
|
store-selected: true
|
|
store-fake-ip: true
|
|
|
|
sniffer:
|
|
enable: true
|
|
force-dns-mapping: true
|
|
parse-pure-ip: true
|
|
sniff:
|
|
HTTP:
|
|
ports:
|
|
- 80
|
|
- 8080-8880
|
|
override-destination: true
|
|
TLS:
|
|
ports:
|
|
- 443
|
|
- 8443
|
|
|
|
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#PROXY
|
|
|
|
proxy-providers:
|
|
sub:
|
|
type: http
|
|
url: https://${DOMAIN}/${SUB_PATH}/${SUB_ID}?provider=1
|
|
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
|
|
use:
|
|
- sub
|
|
proxies:
|
|
- ⚡️ Fastest
|
|
- name: ▶️ YouTube
|
|
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/YouTube.png
|
|
type: select
|
|
use:
|
|
- sub
|
|
proxies:
|
|
- 🌍 VPN
|
|
- name: 💬 Discord
|
|
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Discord.png
|
|
type: select
|
|
use:
|
|
- sub
|
|
proxies:
|
|
- 🌍 VPN
|
|
- name: ⚡️ Fastest
|
|
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Auto.png
|
|
type: url-test
|
|
tolerance: 150
|
|
url: https://cp.cloudflare.com/generate_204
|
|
interval: 300
|
|
use:
|
|
- sub
|
|
- name: ➤ Telegram
|
|
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Telegram.png
|
|
type: select
|
|
use:
|
|
- sub
|
|
proxies:
|
|
- 🌍 VPN
|
|
- name: ➤ WhatsApp
|
|
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Facebook.png
|
|
type: select
|
|
use:
|
|
- sub
|
|
proxies:
|
|
- 🌍 VPN
|
|
- name: PROXY
|
|
type: select
|
|
hidden: true
|
|
use:
|
|
- sub
|
|
proxies:
|
|
- 🌍 VPN
|
|
|
|
rule-providers:
|
|
facebook-ips:
|
|
type: http
|
|
behavior: ipcidr
|
|
format: mrs
|
|
interval: 86400
|
|
url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geoip/facebook.mrs
|
|
path: ./rule-sets/facebook-ips.mrs
|
|
whatsapp-domains:
|
|
type: http
|
|
behavior: domain
|
|
format: mrs
|
|
interval: 86400
|
|
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: ipcidr
|
|
format: mrs
|
|
interval: 86400
|
|
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: 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
|
|
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
|
|
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:
|
|
- 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
|
|
- 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
|