# Date: 2026-11-14 17:42:39 name: Stash desc: 自动生成(sync-config.py 从 Clash/Sample.yaml 转译),请勿手动修改;通用设置请修改 Clash/General.yaml,策略/规则及强制 HTTP 引擎列表请修改 Surge/Profile.conf。 author: '@HotKids' category: HotKids icon: "https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Quantumult/X/Images/Want.png" # 通用设置 # 代理模式:rule(规则)/ global(全局)/ direct(直连) mode: rule # 日志等级:silent / error / warning / info / debug log-level: info # 关闭 IPv6 域名解析:Stash 自身仅解析 IPv4,应用 AAAA 查询返回空结果 ipv6: false # 强制 HTTP 引擎列表由 Surge/Profile.conf 同步。 http: force-http-engine: - '*.ott.cibntv.net' - '*.tc.qq.com' - '*.douyinvod.com' - '*.douyin.com' - api*.amemv.com - '*.xhscdn.com' - '*.xiaohongshu.com' - '*.bilibili.com' - '*.kuaishou.com' - '*.jd.com' - '*.pinduoduo.com' - '*.music.163.com' - wmapi.meituan.com # ── Hosts ── # 静态域名映射,优先级高于 DNS 解析 hosts: #!replace 'localhost': 127.0.0.1 # ── DNS ── dns: #!replace # DNS 查询按现有代理规则出站;代理节点域名使用独立 DNS 解析。 follow-rule: true # 关闭 IPv6 解析,AAAA 查询返回空结果 ipv6: false # 引导 DNS:仅用于解析 nameserver 服务器的域名 # 除 system 外,服务器地址使用 IP;支持基于 IP 的加密 DNS default-nameserver: - 223.5.5.5 - 119.29.29.29 # fake-ip 地址池(RFC 6598 保留段) fake-ip-range: 198.18.0.1/16 fake-ip-filter: # 本地域名 - "*.lan" - "+.lan" - "*.local" - "*.localdomain" - "*.home.arpa" - "*.localhost" - "WORKGROUP" # NTP 时间同步 - "time.*.com" - "time.*.gov" - "time.*.apple.com" - "ntp.*.com" - "+.pool.ntp.org" - "*.ntp.org.cn" # STUN / TURN(WebRTC / 游戏打洞) - "+.stun.*" - "*.stun.*.*" - "*.turn.twilio.com" - "*.stun.twilio.com" - "stun.syncthing.net" # 游戏平台 - "*.srv.nintendo.net" - "xbox.*.microsoft.com" - "xbox.*.*.microsoft.com" - "*.xboxlive.com" # Steam - "*.cm.steampowered.com" - "*.steamcontent.com" # Battle.net / Blizzard - "*.battlenet.com.cn" - "*.battlenet.com" - "*.blzstatic.cn" - "*.battle.net" # 网络连通性探测(多平台) - "*.msftncsi.com" - "*.msftconnecttest.com" - "connectivitycheck.gstatic.com" - "connectivitycheck.android.com" - "connectivitycheck.platform.hicloud.com" - "connect.rom.miui.com" - "captive.apple.com" - "network-test.debian.org" - "detectportal.firefox.com" - "lens.l.google.com" # 推送通知 - "+.push.apple.com" - "+.market.xiaomi.com" # VPN 覆盖网络 - "*.tailscale.com" - "*.zerotier.com" # 媒体服务 - "*.spotify.com" - "+.music.126.net" - "*.mcdn.bilivideo.cn" # 其他需要真实 IP 解析的域名 - "localhost.*.qq.com" # 主 DNS:经代理查询干净结果,防止境外域名请求泄露至国内 DNS 服务商 nameserver: - "https://1.1.1.1/dns-query" # 分域名 DNS 策略:精确域名 > 通配域名 > geosite;多个 geosite 按配置顺序匹配 nameserver-policy: # 内网/本地域名交给系统解析器(路由器/DHCP 下发的 DNS),可解析局域网设备名 "geosite:private": - system # NTP 校时域名用裸 IP UDP 解析:时间偏差会让 DoH 证书验证失败,校时链路须独立于任何 TLS/代理 "time.*.com": - 223.5.5.5 - 119.29.29.29 "time.*.gov": - 223.5.5.5 - 119.29.29.29 "time.*.apple.com": - 223.5.5.5 - 119.29.29.29 "ntp.*.com": - 223.5.5.5 - 119.29.29.29 "+.pool.ntp.org": - 223.5.5.5 - 119.29.29.29 "*.ntp.org.cn": - 223.5.5.5 - 119.29.29.29 # 国内域名直接用国内 DoH 就近解析,不绕代理(geosite 数据规则段已在用,零额外开销) "geosite:cn": - https://doh.pub/dns-query - https://dns.alidns.com/dns-query # 代理节点域名解析:国内 DoH,节点 IP 不会被 CN DNS 污染,速度更快 proxy-server-nameserver: - https://doh.pub/dns-query - https://dns.alidns.com/dns-query # 服务器订阅配置 # proxy-providers: # Server: # path: ./Provider/Proxy/Server.yaml # url: https://sub.hotkids.me # interval: 3600 # proxy: DIRECT # headers: # User-Agent: # - "Clash/v1.18.0" # - "mihomo/1.18.3" proxy-groups: #!replace # Global # name: "GLOBAL" # type: select # icon: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Quantumult/X/Images/Color/Inbound.png # include-all: true # Proxy - name: "🔰 Proxy" type: select icon: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Quantumult/X/Images/Color/Outbound.png proxies: - 🇭🇰 Hong Kong - 🇨🇳 Taiwan - 🇸🇬 Singapore - 🇯🇵 Japan - 🇺🇸 America - 🇺🇳 Server - 🔘 DIRECT # Streaming Global - name: "🎬 Streaming" type: select icon: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Quantumult/X/Images/Color/Streaming.png proxies: - 🔰 Proxy - 🇭🇰 Hong Kong - 🇨🇳 Taiwan - 🇸🇬 Singapore - 🇯🇵 Japan - 🇺🇸 America - 🇺🇳 Server # CNTV APAC - name: "📺 CNTV" type: select icon: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Quantumult/X/Images/Color/StreamingCN.png proxies: - 🔘 DIRECT - 🇨🇳 Taiwan - 🇭🇰 Hong Kong # Apple # > Apple Services - name: "🍎 Apple" type: select icon: https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Apple.png proxies: - 🔘 DIRECT - 🔰 Proxy - 🇺🇸 America - 🇯🇵 Japan # Google - name: "🔍 Google" type: select icon: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Quantumult/X/Images/Color/Google.png proxies: - 🇺🇸 America - 🔰 Proxy # Microsoft # > OneDrive - name: "☁️ OneDrive" type: select icon: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Quantumult/X/Images/Color/OneDrive.png proxies: - 🔘 DIRECT - 🔰 Proxy # > Microsoft Services - name: "Ⓜ️ Microsoft" type: select icon: https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Microsoft.png proxies: - 🔘 DIRECT - 🔰 Proxy # Telegram - name: "📬 Telegram" type: select icon: https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Telegram.png proxies: - 🔰 Proxy - 🇸🇬 Singapore - 🔘 DIRECT # AIGC - name: "🤖 AIGC" type: select icon: https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/ChatGPT.png proxies: - 🇺🇸 America - 🇯🇵 Japan - 🇸🇬 Singapore - 🔰 Proxy # Crypto - name: "🪙 Crypto" type: select icon: https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Cryptocurrency_3.png proxies: - 🇺🇸 America - 🔰 Proxy - 🔘 DIRECT # Finance - name: "💳 Finance" type: select icon: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Quantumult/X/Images/Color/Finance.png proxies: - 🇺🇸 America - 🔰 Proxy - 🔘 DIRECT # Mail - name: "📧 Mail" type: select icon: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Quantumult/X/Images/Color/Email.png proxies: - 🔰 Proxy - 🔘 DIRECT # Speedtest - name: "⏱️ Speedtest" type: select icon: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Quantumult/X/Images/Color/Speed.png include-all: true # Adblock - name: "🚧 AdGuard" type: select icon: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Quantumult/X/Images/Color/Block.png proxies: - 🔘 DIRECT - ⛔️ REJECT - 📛 REJECT-DROP # DIRECT - name: "🔘 DIRECT" type: select icon: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Quantumult/X/Images/Color/Direct.png hidden: true proxies: - DIRECT # REJECT - name: "⛔️ REJECT" type: select icon: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Quantumult/X/Images/Color/Reject.png hidden: true proxies: - REJECT # REJECT-DROP - name: "📛 REJECT-DROP" type: select icon: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Quantumult/X/Images/Color/Reject.png hidden: true proxies: - REJECT-DROP # Nodes - name: "🇺🇳 Server" type: select icon: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Quantumult/X/Images/Color/Club.png include-all: true # Area - name: "🇭🇰 Hong Kong" type: select icon: https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Hong_Kong.png include-all: true filter: '(?i)(?:🇭🇰|香港|Hong Kong|\b(?:HK|HKG)\d*\b)' - name: "🇨🇳 Taiwan" type: select icon: https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Taiwan.png include-all: true filter: '(?i)(?:🇨🇳|🇹🇼|台湾|Taiwan|\b(?:TW|TWN)\d*\b)' - name: "🇸🇬 Singapore" type: select icon: https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Singapore.png include-all: true filter: '(?i)(?:🇸🇬|新加坡|Singapore|\b(?:SG|SGP)\d*\b)' - name: "🇯🇵 Japan" type: select icon: https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Japan.png include-all: true filter: '(?i)(?:🇯🇵|日本|Japan|\b(?:JP|JPN)\d*\b)' - name: "🇺🇸 America" type: select icon: https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/United_States.png include-all: true filter: '(?i)(?:🇺🇸|美国|United States|\b(?:US|USA)\d*\b)' # 关于 Rule Provider 请查阅:https://wiki.metacubex.one/en/config/rule-providers/ rule-providers: #!replace # name: # Provider 名称 # type: http # http 或 file # behavior: classical # 或 ipcidr、domain # path: # 文件路径 # url: # 只有当类型为 HTTP 时才可用,您不需要在本地空间中创建新文件。 # interval: # 自动更新间隔,仅在类型为 HTTP 时可用 Bypass: behavior: classical format: yaml path: ./Provider/RuleSet/Bypass.yaml url: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Clash/RuleSet/Bypass.yaml interval: 86400 Reroute: behavior: classical format: yaml path: ./Provider/RuleSet/Reroute.yaml url: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Clash/RuleSet/Reroute.yaml interval: 86400 Private: behavior: domain format: mrs path: ./Provider/RuleSet/Private.mrs url: https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@meta/geo/geosite/private.mrs interval: 86400 Reject: behavior: domain format: mrs path: ./Provider/RuleSet/Reject.mrs url: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Clash/RuleSet/Reject.mrs interval: 86400 AdBlock: behavior: classical format: yaml path: ./Provider/RuleSet/AdBlock.yaml url: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Clash/RuleSet/Block.yaml interval: 86400 Phishing: behavior: domain format: mrs path: ./Provider/RuleSet/Phishing.mrs url: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Clash/RuleSet/Phishing.mrs interval: 86400 Bogus: behavior: classical format: yaml path: ./Provider/RuleSet/Bogus.yaml url: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Clash/RuleSet/Bogus.yaml interval: 86400 Streaming_TW: behavior: classical format: yaml path: ./Provider/RuleSet/Streaming_TW.yaml url: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Clash/RuleSet/Streaming_TW.yaml interval: 86400 Streaming_JP: behavior: classical format: yaml path: ./Provider/RuleSet/Streaming_JP.yaml url: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Clash/RuleSet/Streaming_JP.yaml interval: 86400 Streaming_US: behavior: classical format: yaml path: ./Provider/RuleSet/Streaming_US.yaml url: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Clash/RuleSet/Streaming_US.yaml interval: 86400 Streaming: behavior: classical format: yaml path: ./Provider/RuleSet/Streaming.yaml url: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Clash/RuleSet/Streaming.yaml interval: 86400 CNTV: behavior: classical format: yaml path: ./Provider/RuleSet/CNTV.yaml url: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Clash/RuleSet/CNTV.yaml interval: 86400 Google AI Studio: behavior: classical format: yaml path: ./Provider/RuleSet/Google_AI_Studio.yaml url: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Clash/RuleSet/Gemini.yaml interval: 86400 AIGC: behavior: classical format: yaml path: ./Provider/RuleSet/AIGC.yaml url: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Clash/RuleSet/GenAI.yaml interval: 86400 Apple CN: behavior: classical format: yaml path: ./Provider/RuleSet/Apple_CN.yaml url: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Clash/RuleSet/Apple%20CN.yaml interval: 86400 Apple: behavior: classical format: yaml path: ./Provider/RuleSet/Apple.yaml url: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Clash/RuleSet/Apple.yaml interval: 86400 Google: behavior: classical format: yaml path: ./Provider/RuleSet/Google.yaml url: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Clash/RuleSet/Google.yaml interval: 86400 OneDrive: behavior: classical format: yaml path: ./Provider/RuleSet/OneDrive.yaml url: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Clash/RuleSet/OneDrive.yaml interval: 86400 Microsoft: behavior: classical format: yaml path: ./Provider/RuleSet/Microsoft.yaml url: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Clash/RuleSet/Microsoft.yaml interval: 86400 Telegram: behavior: classical format: yaml path: ./Provider/RuleSet/Telegram.yaml url: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Clash/RuleSet/Telegram.yaml interval: 86400 Crypto: behavior: classical format: yaml path: ./Provider/RuleSet/Crypto.yaml url: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Clash/RuleSet/Crypto.yaml interval: 86400 Finance: behavior: classical format: yaml path: ./Provider/RuleSet/Finance.yaml url: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Clash/RuleSet/Finance.yaml interval: 86400 Spark: behavior: classical format: yaml path: ./Provider/RuleSet/Spark.yaml url: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Clash/RuleSet/Spark.yaml interval: 86400 Speedtest: behavior: domain format: mrs path: ./Provider/RuleSet/Speedtest.mrs url: https://fastly.jsdelivr.net/gh/HotKids/Rules@master/Clash/RuleSet/Speedtest.mrs interval: 86400 Global: behavior: domain format: mrs path: ./Provider/RuleSet/Global.mrs url: https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@meta/geo/geosite/geolocation-!cn.mrs interval: 86400 China: behavior: domain format: mrs path: ./Provider/RuleSet/China.mrs url: https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@meta/geo/geosite/cn.mrs interval: 86400 China IP: behavior: ipcidr format: mrs path: ./Provider/RuleSet/China_IP.mrs url: https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@meta/geo/geoip/cn.mrs interval: 86400 China ASN: behavior: classical format: yaml path: ./Provider/RuleSet/China_ASN.yaml url: https://fastly.jsdelivr.net/gh/VirgilClyne/GetSomeFries@main/ruleset/ASN.China.yaml interval: 86400 LAN: behavior: ipcidr format: mrs path: ./Provider/RuleSet/LAN-e87c63f8926f.mrs url: https://fastly.jsdelivr.net/gh/HotKids/Rules@9007948f595cf1f756cd3284930f9aacd0a20166/Clash/RuleSet/lancidr.mrs interval: 86400 # 规则 rules: #!replace # 拦截境外 QUIC,排除国内域名/IP;no-track 隐藏该规则的连接记录 - AND,((PROTOCOL,QUIC),(NOT,((OR,((GEOSITE,cn),(GEOIP,CN)))))),⛔️ REJECT,no-track # 标准 SSH 端口 - AND,((DST-PORT,22),(NETWORK,TCP)),🔘 DIRECT # Unbreak 后续规则修正,修复因规则拦截或分流不当导致的功能异常 - RULE-SET,Bypass,🔘 DIRECT - RULE-SET,Reroute,🔰 Proxy # Private 私有网络 - RULE-SET,Private,🔘 DIRECT # Advertising 广告 - RULE-SET,Reject,🚧 AdGuard - RULE-SET,AdBlock,🚧 AdGuard # Phishing 钓鱼网站 - RULE-SET,Phishing,🚧 AdGuard # Bogus IP NXDOMAIN 劫持/僵尸网络 C2 - RULE-SET,Bogus,📛 REJECT-DROP,no-resolve # Global Area Network # > Streaming by Region # >> Streaming TW - RULE-SET,Streaming_TW,🇨🇳 Taiwan # >> Streaming JP - RULE-SET,Streaming_JP,🇯🇵 Japan # >> Streaming US - RULE-SET,Streaming_US,🇺🇸 America # > Streaming - RULE-SET,Streaming,🎬 Streaming # > CNTV(适用于 iQIYI Intl,WeTV,Bilibili 等大陆在港台东南亚提供服务的流媒体服务) - RULE-SET,CNTV,📺 CNTV # Global 全球代理规则 # > AIGC - RULE-SET,Google AI Studio,🔍 Google - RULE-SET,AIGC,🤖 AIGC # > Apple # >> Apple Services - RULE-SET,Apple CN,🔘 DIRECT - RULE-SET,Apple,🍎 Apple # > Google - RULE-SET,Google,🔍 Google # > Microsoft - RULE-SET,OneDrive,☁️ OneDrive - RULE-SET,Microsoft,Ⓜ️ Microsoft # > Telegram - RULE-SET,Telegram,📬 Telegram # > Crypto - RULE-SET,Crypto,🪙 Crypto # > Finance - RULE-SET,Finance,💳 Finance # > Mail - RULE-SET,Spark,📧 Mail # > Speedtest - RULE-SET,Speedtest,⏱️ Speedtest # Global (DNS Cache Pollution) / (IP Blackhole) / (Region-Restricted Access Denied) / (Network Jitter) - RULE-SET,Global,🔰 Proxy # China Area Network - RULE-SET,China,🔘 DIRECT - RULE-SET,China IP,🔘 DIRECT,no-resolve - RULE-SET,China ASN,🔘 DIRECT,no-resolve # Local Area Network - RULE-SET,LAN,🔘 DIRECT,no-resolve # GeoIP - GEOSITE,cn,🔘 DIRECT - GEOIP,CN,🔘 DIRECT,no-resolve - GEOSITE,geolocation-!cn,🔰 Proxy # Final - MATCH,🔰 Proxy