mixed-port: 7890 allow-lan: false mode: rule log-level: info unified-delay: true tcp-concurrent: true ipv6: false # ----------------- DNS 配置 ----------------- dns: enable: true ipv6: false enhanced-mode: fake-ip fake-ip-range: 198.18.0.1/16 respect-rules: true fake-ip-filter: - "*.lan" - "*.local" - "*.localdomain" - "captive.apple.com" - "*.msftconnecttest.com" - "*.msftncsi.com" - "time.*.com" - "ntp.*.com" default-nameserver: - 223.5.5.5 - 119.29.29.29 nameserver: - https://dns.alidns.com/dns-query - https://doh.pub/dns-query proxy-server-nameserver: - https://dns.alidns.com/dns-query nameserver-policy: "geosite:cn,private": - https://dns.alidns.com/dns-query - https://doh.pub/dns-query "geosite:geolocation-!cn": - https://dns.cloudflare.com/dns-query - https://dns.google/dns-query # ----------------- 节点列表 (共 8 个 - WTO & Shopify 优选) ----------------- proxies: # 日本节点 1 - name: JP-HostHatch-01 type: vmess server: www.wto.org port: 443 uuid: 1cb0039d-318b-4c4e-a014-d7e7aacb4f93 alterId: 0 cipher: auto tls: true client-fingerprint: chrome servername: titanium-paying-jun-disciplines.trycloudflare.com network: ws ws-opts: path: /vmess-argo?ed=2560 headers: Host: titanium-paying-jun-disciplines.trycloudflare.com # 日本节点 2 - name: JP-HostHatch-02 type: vmess server: www.shopify.com port: 443 uuid: 1cb0039d-318b-4c4e-a014-d7e7aacb4f93 alterId: 0 cipher: auto tls: true client-fingerprint: chrome servername: titanium-paying-jun-disciplines.trycloudflare.com network: ws ws-opts: path: /vmess-argo?ed=2560 headers: Host: titanium-paying-jun-disciplines.trycloudflare.com # 韩国节点 1 - name: KR-Oracle-01 type: vmess server: www.wto.org port: 443 uuid: 291e9fee-1fcf-4d9b-a44a-1460e3f632af alterId: 0 cipher: auto tls: true client-fingerprint: chrome servername: morgan-blackberry-latter-exclusively.trycloudflare.com network: ws ws-opts: path: /vmess-argo?ed=2560 headers: Host: morgan-blackberry-latter-exclusively.trycloudflare.com # 韩国节点 2 - name: KR-Oracle-02 type: vmess server: www.shopify.com port: 443 uuid: 291e9fee-1fcf-4d9b-a44a-1460e3f632af alterId: 0 cipher: auto tls: true client-fingerprint: chrome servername: morgan-blackberry-latter-exclusively.trycloudflare.com network: ws ws-opts: path: /vmess-argo?ed=2560 headers: Host: morgan-blackberry-latter-exclusively.trycloudflare.com # 新加坡节点 1 - name: SG-Oracle-01 type: vmess server: www.wto.org port: 443 uuid: f8dbb648-9669-43a7-b616-3e4612b1e95d alterId: 0 cipher: auto tls: true client-fingerprint: chrome servername: ron-cas-household-fin.trycloudflare.com network: ws ws-opts: path: /vmess-argo?ed=2560 headers: Host: ron-cas-household-fin.trycloudflare.com # 新加坡节点 2 - name: SG-Oracle-02 type: vmess server: www.shopify.com port: 443 uuid: f8dbb648-9669-43a7-b616-3e4612b1e95d alterId: 0 cipher: auto tls: true client-fingerprint: chrome servername: ron-cas-household-fin.trycloudflare.com network: ws ws-opts: path: /vmess-argo?ed=2560 headers: Host: ron-cas-household-fin.trycloudflare.com # 美国节点 1 - name: US-IT7-01 type: vmess server: www.wto.org port: 443 uuid: d864fc79-5bcb-4a56-9d07-c145a32ba06c alterId: 0 cipher: auto tls: true client-fingerprint: chrome servername: floppy-notes-clear-ventures.trycloudflare.com network: ws ws-opts: path: /vmess-argo?ed=2560 headers: Host: floppy-notes-clear-ventures.trycloudflare.com # 美国节点 2 - name: US-IT7-02 type: vmess server: www.shopify.com port: 443 uuid: d864fc79-5bcb-4a56-9d07-c145a32ba06c alterId: 0 cipher: auto tls: true client-fingerprint: chrome servername: floppy-notes-clear-ventures.trycloudflare.com network: ws ws-opts: path: /vmess-argo?ed=2560 headers: Host: floppy-notes-clear-ventures.trycloudflare.com # ----------------- 策略组配置 ----------------- proxy-groups: # 总控代理 - name: PROXY type: select proxies: - ♻️ 自动选择 - 🇯🇵 日本节点 - 🇰🇷 韩国节点 - 🇸🇬 新加坡节点 - 🇺🇸 美国节点 - JP-HostHatch-01 - JP-HostHatch-02 - KR-Oracle-01 - KR-Oracle-02 - SG-Oracle-01 - SG-Oracle-02 - US-IT7-01 - US-IT7-02 - DIRECT # 地区分组 - name: 🇯🇵 日本节点 type: select proxies: - JP-HostHatch-01 - JP-HostHatch-02 - name: 🇰🇷 韩国节点 type: select proxies: - KR-Oracle-01 - KR-Oracle-02 - name: 🇸🇬 新加坡节点 type: select proxies: - SG-Oracle-01 - SG-Oracle-02 - name: 🇺🇸 美国节点 type: select proxies: - US-IT7-01 - US-IT7-02 - name: ♻️ 自动选择 type: url-test url: https://www.gstatic.com/generate_204 interval: 300 tolerance: 50 proxies: - JP-HostHatch-01 - JP-HostHatch-02 - KR-Oracle-01 - KR-Oracle-02 - SG-Oracle-01 - SG-Oracle-02 - US-IT7-01 - US-IT7-02 # 广告与追踪拦截组 - name: 🛑 广告拦截 type: select proxies: - REJECT - DIRECT # ----------------- Loyalsoldier 规则集订阅 ----------------- rule-providers: reject: type: http behavior: domain url: "https://gh-proxy.com/https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/reject.txt" path: ./ruleset/loyalsoldier/reject.yaml interval: 86400 direct: type: http behavior: domain url: "https://gh-proxy.com/https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/direct.txt" path: ./ruleset/loyalsoldier/direct.yaml interval: 86400 gfw: type: http behavior: domain url: "https://gh-proxy.com/https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/gfw.txt" path: ./ruleset/loyalsoldier/gfw.yaml interval: 86400 proxy: type: http behavior: domain url: "https://gh-proxy.com/https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/proxy.txt" path: ./ruleset/loyalsoldier/proxy.yaml interval: 86400 tld-not-cn: type: http behavior: domain url: "https://gh-proxy.com/https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/tld-not-cn.txt" path: ./ruleset/loyalsoldier/tld-not-cn.yaml interval: 86400 cncidr: type: http behavior: ipcidr url: "https://gh-proxy.com/https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/cncidr.txt" path: ./ruleset/loyalsoldier/cncidr.yaml interval: 86400 # ----------------- 路由分流规则 (Loyalsoldier 漏斗顺序) ----------------- rules: # 1. 局域网直连 - GEOIP,private,DIRECT,no-resolve - GEOIP,LAN,DIRECT,no-resolve # 2. 广告与追踪域名拦截 - RULE-SET,reject,🛑 广告拦截 # 3. 明确直连域名 - RULE-SET,direct,DIRECT # 4. GFW 与代理服务域名 - RULE-SET,gfw,PROXY - RULE-SET,proxy,PROXY # 5. 非大陆顶级域名走代理 - RULE-SET,tld-not-cn,PROXY # 6. 国内 IP 段直连 (避免 DNS 反向解析延迟) - RULE-SET,cncidr,DIRECT,no-resolve - GEOIP,CN,DIRECT # 7. 漏斗底部兜底规则 - MATCH,PROXY