mode: rule unified-delay: true geodata-mode: true geo-auto-update: true geo-update-interval: 24 geox-url: geoip: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.dat" geosite: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat" mmdb: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country.mmdb" sub-url: &sub-url "ссылка на подписку" tun: enable: true stack: gvisor auto-route: true auto-detect-interface: true strict-route: false dns: enable: true listen: :53 stack: mixed ipv6: false prefer-h3: true cache-algorithm: arc use-hosts: true use-system-hosts: true enhanced-mode: fake-ip fake-ip-range: 198.18.0.1/16 default-nameserver: ['1.1.1.1', '1.0.0.1', '8.8.8.8', '8.8.4.4'] nameserver: - https://dns10.quad9.net/dns-query - https://dns.aa.net.uk/dns-query # proxy-server-nameserver: # - 1.1.1.1 # - 8.8.8.8 # fallback: # - 1.1.1.1 # - 8.8.8.8 # fallback-filter: # geoip: true # geoip-code: RU fake-ip-filter-mode: blacklist fake-ip-filter: - '*.lan' - '*.local' - +.pool.ntp.org - +.msftconnecttest.com - +.3gppnetwork.org - '+.i8m3x.icu' keep-alive-idle: 120 keep-alive-interval: 30 profile: store-selected: true store-fake-ip: false tracing: false sniffer: enable: true sniff: HTTP: ports: [80, 8080-8880] override-destination: true TLS: ports: [443, 8443] # QUIC: # ports: [443, 8443] skip-domain: # - 'Mijia Cloud' - '+.lan' - '+.local' # - '+.push.apple.com' # - '+.apple.com' proxy-providers: remnawave: type: http url: *sub-url interval: 3600 proxy: DIRECT health-check: enable: true url: http://www.gstatic.com/generate_204 interval: 30 timeout: 3000 lazy: false expected-status: 204 override: udp: true udp-over-tcp: true proxy-groups: - name: Fastest icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Auto.png type: url-test url: http://www.gstatic.com/generate_204 interval: 30 timeout: 3000 tolerance: 50 hidden: true use: - remnawave - name: First Available icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Available_1.png type: fallback url: https://cp.cloudflare.com/generate_204 interval: 30 timeout: 3000 hidden: true use: - remnawave - name: PROXY icon: https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Proxy.png type: select url: http://www.gstatic.com/generate_204 proxies: - Fastest - First Available - DIRECT use: - remnawave - name: Youtube icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/YouTube.png type: select url: http://www.gstatic.com/generate_204 proxies: - DIRECT - PROXY - name: Discord icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Discord.png type: select url: http://www.gstatic.com/generate_204 proxies: - DIRECT - PROXY - name: RU-Banned type: select proxies: - DIRECT - PROXY rule-providers: # oisd-big: # behavior: domain # type: http # format: mrs # url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/oisd/big.mrs # interval: 86400 # path: ./ipset/oisd/big.mrs # oisd-small: # behavior: domain # type: http # format: mrs # url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/oisd/small.mrs # interval: 86400 # path: ./ipset/oisd/small.mrs # itdoginfo-domains: # behavior: domain # type: http # format: mrs # url: https://github.com/itdoginfo/allow-domains/releases/latest/download/russia_inside_domain.mrs # interval: 86400 # path: ./ipset/itdoginfo/russia_inside_domain.mrs # antifilter-ip: # behavior: classical # type: http # url: https://antifilter.i8m3x.icu/antifilter-ip.yaml # interval: 86400 # path: ./ipset/custom/antifilter-ip.yaml antifilter-community-domain: behavior: classical type: http url: https://antifilter.i8m3x.icu/antifilter-community-domain.yaml interval: 86400 path: ./ipset/custom/antifilter-community-domain.yaml antifilter-community-ip: behavior: classical type: http url: https://antifilter.i8m3x.icu/antifilter-community-ip.yaml interval: 86400 path: ./ipset/custom/antifilter-community-ip.yaml proxy-domain: behavior: classical type: http url: https://antifilter.i8m3x.icu/proxy-domain.yaml interval: 86400 path: ./ipset/custom/proxy-domain.yaml youtube: behavior: classical type: http url: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/YouTube/YouTube.yaml interval: 86400 path: ./ipset/services/youtube.yaml discord-domain: behavior: classical type: http url: https://raw.githubusercontent.com/fildunsky/clash_discord/main/discord-domain.yaml interval: 86400 path: ./ipset/services/discord.yaml discord-ip: behavior: classical type: http url: https://raw.githubusercontent.com/fildunsky/clash_discord/refs/heads/main/discord-ip.yaml interval: 86400 path: ./ipset/services/discord-ip.yaml openai: behavior: classical type: http url: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/OpenAI/OpenAI.yaml interval: 86400 path: ./ipset/services/openai.yaml telegram: behavior: classical type: http url: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Telegram/Telegram.yaml interval: 86400 path: ./ipset/services/telegram.yaml telegram-ip: behavior: ipcidr type: http format: text url: https://core.telegram.org/resources/cidr.txt interval: 86400 path: ./ipset/services/telegram-ip.txt ru-banned: behavior: domain type: http format: text url: https://cdn.jsdelivr.net/gh/shvchk/unblock-net/lists/clash/ru-blocked interval: 86400 path: ./ipset/ru-banned.yaml rules: # === REJECT === # - RULE-SET,oisd-small,REJECT # - RULE-SET,oisd-big,REJECT # === PROXY === # - RULE-SET,itdoginfo-domains,PROXY # - RULE-SET,antifilter-ip,PROXY - PROCESS-NAME,discord.exe,PROXY - RULE-SET,openai,PROXY - RULE-SET,telegram-ip,PROXY,no-resolve - RULE-SET,telegram,PROXY - RULE-SET,discord-domain,Discord - RULE-SET,discord-ip,Discord - RULE-SET,youtube,Youtube - RULE-SET,antifilter-community-domain,PROXY - RULE-SET,antifilter-community-ip,PROXY - RULE-SET,proxy-domain,PROXY - RULE-SET,ru-banned,RU-Banned # === === - MATCH,DIRECT