From 3a58c8b6d78c995dcaac0a763326159a672f0d7b Mon Sep 17 00:00:00 2001 From: DaTekShaman Date: Mon, 11 Aug 2025 10:29:40 +0300 Subject: [PATCH] Updates --- config/dts-pontifex.yaml | 2 +- config/example_vezdehod_00.yaml | 316 ++++++++++++++++++++++++++++++++ 2 files changed, 317 insertions(+), 1 deletion(-) create mode 100644 config/example_vezdehod_00.yaml diff --git a/config/dts-pontifex.yaml b/config/dts-pontifex.yaml index 5b148bb..6af4da6 100644 --- a/config/dts-pontifex.yaml +++ b/config/dts-pontifex.yaml @@ -1791,4 +1791,4 @@ rules: - RULE-SET,๐Ÿ›œ Webway,Webway - MATCH,DIRECT -# Anime, Reddit from News, Yandex, VK, eBay, Samsung, PayPal \ No newline at end of file +# Anime, Reddit from News, Yandex, VK, eBay, Samsung, PayPal, Fastly \ No newline at end of file diff --git a/config/example_vezdehod_00.yaml b/config/example_vezdehod_00.yaml new file mode 100644 index 0000000..a700afe --- /dev/null +++ b/config/example_vezdehod_00.yaml @@ -0,0 +1,316 @@ +# notice: update proxy provider in the `proxy-providers` section and `use` section. +# ref 1: https://wiki.metacubex.one/example/#meta +# ref 2: https://github.com/MetaCubeX/mihomo/blob/Alpha/docs/config.yaml + + +# ------------------------- templates ------------------------- +pr: + &pr { + type: select, + proxies: [NODE-SELECT, R-RU, R-NL, R-GB, R-US, R-FR, R-DE, R-FI, R-IT, R-OTHER, ALL-NODES, AUTO-SELECT, DIRECT] + } + +p: &p + type: http + interval: 3600 + health-check: + enable: true + url: https://cp.cloudflare.com/generate_204 + expected-status: 204 + interval: 300 + timeout: 1000 + tolerance: 100 + + +# ------------------------- proxy provider and config ------------------------- +use: &use + type: url-test # or select + use: + - VLESS + - VIARU + +proxy-providers: + VLESS: + <<: *p + type: http + url: ะ’ะกะขะะ’ะฌะขะ• ะกะซะซะ›ะšะฃ ะะ ะ’ะะจะฃ ะŸะžะ”ะŸะ˜ะกะšะฃ ะ’ะ•ะ—ะ”ะ•ะฅะžะ” + path: ./vless.yaml + override: + additional-prefix: "[VLESS] " + VIARU: + <<: *p + type: file + exclude-filter: "(?i)๐Ÿ‡ท๐Ÿ‡บ|via" + path: ./vless.yaml + override: + dialer-proxy: R-RU + additional-prefix: "[VIARU] " + + +# ------------------------- rule provider config ------------------------- +rule-providers: + # https://github.com/legiz-ru/mihomo-rule-sets + 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 + interval: 86400 + oisd_small: + type: http + behavior: domain + format: mrs + url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/oisd/small.mrs + path: ./oisd/small.mrs + interval: 86400 + torrent-websites: + type: http + behavior: domain + format: mrs + url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/other/torrent-websites.mrs + path: ./rule-sets/torrent-websites.mrs + 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 + 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 + # https://github.com/REIJI007/AdBlock_Rule_For_Clash + adblock: + type: http + behavior: domain + format: yaml + url: https://raw.githubusercontent.com/REIJI007/AdBlock_Rule_For_Clash/main/adblock_reject.yaml + path: ./adblock_reject.yaml + interval: 86400 + + +# ------------------------- system config ------------------------- +allow-lan: true +bind-address: '*' +lan-allowed-ips: + - 0.0.0.0/0 + - ::/0 +authentication: + - "Mihomo:Mihomo" +skip-auth-prefixes: + - 192.168.1.0/24 +mode: rule +log-level: info +ipv6: true +keep-alive-interval: 15 +keep-alive-idle: 15 +disable-keep-alive: true +find-process-mode: strict + +external-controller: 0.0.0.0:9090 +external-controller-cors: + allow-origins: + - '*' + allow-private-network: true +# external-controller-tls: 0.0.0.0:9443 +external-doh-server: /dns-query +secret: 'Mihomo' +external-ui: ./ui +external-ui-name: ui-xd +external-ui-url: https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip + +profile: + store-selected: true + store-fake-ip: true + +unified-delay: true +tcp-concurrent: true +# routing-mark: 6666 + +# tls: +# certificate: ./cert.pem +# private-key: ./key.key + +global-client-fingerprint: random + +port: 7890 +socks-port: 7891 +mixed-port: 7892 +redir-port: 7893 +tproxy-port: 7894 + + +# ------------------------- dns and network config ------------------------- +dns: + enable: true + cache-algorithm: arc + prefer-h3: true + use-hosts: true + use-system-hosts: true + respect-rules: false + listen: 0.0.0.0:1053 + ipv6: true + default-nameserver: + - 94.140.14.14 + - 94.140.15.15 + - 1.1.1.2 + - 1.0.0.2 + - '[2a10:50c0::ad1:ff]' + - '[2a10:50c0::ad2:ff]' + - '[2606:4700:4700::1112]' + - '[2606:4700:4700::1002]' + enhanced-mode: fake-ip + fake-ip-range: 198.18.0.1/16 + fake-ip-filter-mode: blacklist + fake-ip-filter: + - '*.lan' + - '+.local' + nameserver-policy: + 'geosite:private': + - https://dns.adguard-dns.com/dns-query + - https://security.cloudflare-dns.com/dns-query + - quic://dns.adguard.com + - tls://dns.adguard-dns.com + - tls://security.cloudflare-dns.com + 'geosite:!private': + - https://dns.adguard-dns.com/dns-query + - https://security.cloudflare-dns.com/dns-query + - quic://dns.adguard.com + - tls://dns.adguard-dns.com + - tls://security.cloudflare-dns.com + nameserver: + - https://dns.adguard-dns.com/dns-query + - https://security.cloudflare-dns.com/dns-query + - quic://dns.adguard.com + - tls://dns.adguard-dns.com + - tls://security.cloudflare-dns.com + fallback: + - https://dns.adguard-dns.com/dns-query + - https://security.cloudflare-dns.com/dns-query + - quic://dns.adguard.com + - tls://dns.adguard-dns.com + - tls://security.cloudflare-dns.com + proxy-server-nameserver: + - https://dns.adguard-dns.com/dns-query + - https://security.cloudflare-dns.com/dns-query + - quic://dns.adguard.com + - tls://dns.adguard-dns.com + - tls://security.cloudflare-dns.com + direct-nameserver: + - https://dns.adguard-dns.com/dns-query + - https://security.cloudflare-dns.com/dns-query + - quic://dns.adguard.com + - tls://dns.adguard-dns.com + - tls://security.cloudflare-dns.com + direct-nameserver-follow-policy: true + fallback-filter: + geoip: true + geoip-code: RU + geosite: + - private + ipcidr: + - 240.0.0.0/4 + domain: + - '+.google.com' + - '+.youtube.com' + +sniffer: + enable: true + force-dns-mapping: true + parse-pure-ip: true + override-destination: true + sniff: + HTTP: + ports: [80, 8080-8880] + override-destination: true + TLS: + ports: [443, 8443] + QUIC: + ports: [443, 8443] +# force-domain: +# - +.v2ex.com +# skip-domain: +# - Mijia Cloud +# skip-src-address: +# - 192.168.0.3/32 +# skip-dst-address: +# - 192.168.0.3/32 + +tun: + enable: true + stack: mixed + auto-route: true + auto-redirect: true + auto-detect-interface: true + dns-hijack: + - any:53 + - tcp://any:53 + device: Mihomo + mtu: 1420 + strict-route: true +# gso: true +# gso-max-size: 65536 +# udp-timeout: 300 +# iproute2-table-index: 2022 +# iproute2-rule-index: 9000 + + +# ------------------------- geo data config ------------------------- +# Source https://github.com/runetfreedom/russia-v2ray-rules-dat +geodata-mode: true +geodata-loader: memconservative +geo-auto-update: true +geo-update-interval: 24 +geox-url: + geoip: https://raw.githubusercontent.com/runetfreedom/russia-v2ray-rules-dat/release/geoip.dat + geosite: https://raw.githubusercontent.com/runetfreedom/russia-v2ray-rules-dat/release/geosite.dat +global-ua: clash.meta +etag-support: true + + +# ------------------------- proxy groups and rules ------------------------- +proxy-groups: + - { name: AUTO-SELECT, <<: *use, type: url-test , tolerance: 2} + - { name: NODE-SELECT, type: select, proxies: [ALL-NODES, AUTO-SELECT, R-RU, R-NL, R-GB, R-US, R-FR, R-DE, R-FI, R-IT, R-OTHER, DIRECT] } + - { name: ALL-NODES, <<: *use } + - { name: FALLBACK, <<: *use, type: fallback } + - { name: ANTI-AD, type: select, proxies: [REJECT, DIRECT, NODE-SELECT] } + - { name: Torrents, <<: *use, filter: "(?i)P2P|Torrents", exclude-filter: "(?i)noP2P" } + - { name: Cloudflare, <<: *pr } + - { name: Google, <<: *pr } + - { name: Gemini, <<: *use, filter: "(?i)Gemini" } + - { name: YouTube, <<: *use, filter: "(?i)YT" } + - { name: Telegram, <<: *pr } + + # regions +# - { name: R-SELECT, <<: *pr, proxies: [DIRECT, NODE-SELECT, R-RU, R-NL, R-GB, R-US, R-FR, R-DE, R-FI, R-IT, R-OTHER, ALL-NODES, AUTO-SELECT] } + - { name: RU-BLOCKED, <<: *pr, proxies: [R-NL, R-GB, R-US, R-FR, R-DE, R-FI, R-IT, R-OTHER] } + - { name: R-RU, <<: *use, filter: "(?i)๐Ÿ‡ท๐Ÿ‡บ" } + - { name: R-NL, <<: *use, filter: "(?i)๐Ÿ‡ณ๐Ÿ‡ฑ" } + - { name: R-GB, <<: *use, filter: "(?i)๐Ÿ‡ฌ๐Ÿ‡ง" } + - { name: R-US, <<: *use, filter: "(?i)๐Ÿ‡บ๐Ÿ‡ธ", exclude-filter: "(?i)Gemini" } + - { name: R-FR, <<: *use, filter: "(?i)๐Ÿ‡ซ๐Ÿ‡ท" } + - { name: R-DE, <<: *use, filter: "(?i)๐Ÿ‡ฉ๐Ÿ‡ช" } + - { name: R-FI, <<: *use, filter: "(?i)๐Ÿ‡ซ๐Ÿ‡ฎ" } + - { name: R-IT, <<: *use, filter: "(?i)๐Ÿ‡ฎ๐Ÿ‡น" } + - { name: R-OTHER, <<: *use, filter: "(?i)๐Ÿ‡น๐Ÿ‡ท|๐Ÿ‡ฎ๐Ÿ‡ณ|๐Ÿ‡ญ๐Ÿ‡ฐ ๐Ÿ‡ช๐Ÿ‡ช" } + +rules: + - GEOSITE,PRIVATE,DIRECT + - GEOIP,PRIVATE,DIRECT,no-resolve + - OR,((GEOSITE,category-ads-all),(GEOSITE,google-ads),(GEOSITE,yandex),(GEOIP,yandex),(GEOSITE,vk),(GEOSITE,mailru),(GEOSITE,win-spy),(GEOSITE,win-update),(GEOSITE,win-extra),(GEOIP,UA),(DOMAIN-SUFFIX,ua),(RULE-SET,oisd_big),(RULE-SET,oisd_small),(RULE-SET,adblock)),ANTI-AD + - OR,((RULE-SET,torrent-websites),(RULE-SET,torrent-trackers)),Torrents + - OR,((GEOSITE,cloudflare),(GEOIP,cloudflare)),Cloudflare + - GEOSITE,youtube,YouTube + - GEOSITE,google-gemini,Gemini + - OR,((GEOSITE,google),(GEOSITE,google),(GEOSITE,google-deepmind),(GEOSITE,google-play),(GEOSITE,google-registry),(GEOSITE,google-registry-tld),(GEOSITE,google-scholar),(GEOSITE,google-trust-services),(GEOSITE,googlefcm)),Google + - OR,((GEOSITE,telegram),(GEOIP,telegram)),Telegram + - OR,((GEOSITE,ru-blocked),(GEOIP,ru-blocked),(GEOIP,ru-blocked-community),(GEOSITE,refilter),(GEOIP,re-filter),(GEOSITE,antifilter-download-community),(RULE-SET,ru-bundle)),RU-BLOCKED + - OR,((GEOSITE,ru-available-only-inside),(GEOIP,RU),(DOMAIN-SUFFIX,ru),(DOMAIN-SUFFIX,su),(DOMAIN-SUFFIX,xn--p1ai)),R-RU + - MATCH,NODE-SELECT