port: 7890 socks-port: 7891 allow-lan: true mode: Rule log-level: info dns: enable: false enhanced-mode: fake-ip listen: 0.0.0.0:53 nameserver: - 223.5.5.5 - 119.29.29.29 - 114.114.114.114 experimental: ignore-resolve-fail: true proxies: # > intranet xray proxy nodes - name: aliyun-hangzhou-jellow server: 47.97.213.239 port: 8388 type: ss cipher: chacha20-ietf-poly1305 password: 7714e20c-2793-4888-87f4-6e63c53b7c98 - name: aliyun-hk-serverless server: 47.242.83.138 port: 16407 type: snell psk: R6tB7i86qry7WjZ2evsbdLINUj55FN9 obfs-opts: { mode: http } - name: tencent-guangzhou-yiguan server: 49.234.165.139 port: 8388 type: ss cipher: chacha20-ietf-poly1305 password: 7714e20c-2793-4888-87f4-6e63c53b7c98 proxy-providers: jike_proxies: type: http path: ./jike_proxies.yaml url: https://zhanglei:7714e20c-2793-4888-87f4-6e63c53b7c98@proxy-config-provider.midway.run/authcenter/clash/proxies.yaml interval: 600 health-check: enable: true url: https://cp.cloudflare.com/generate_204 interval: 300 amy_proxies_sg: type: http path: ./amy_proxies.yaml url: https://zhanglei:7714e20c-2793-4888-87f4-6e63c53b7c98@proxy-config-provider.midway.run/authcenter/clash/amy/config.yaml filter: "新加坡" health-check: enable: true url: https://api.openai.com interval: 120 amy_proxies_jp: type: http path: ./amy_proxies.yaml url: https://zhanglei:7714e20c-2793-4888-87f4-6e63c53b7c98@proxy-config-provider.midway.run/authcenter/clash/amy/config.yaml filter: "日本" health-check: enable: true url: https://api.openai.com interval: 120 amy_proxies_usa: type: http path: ./amy_proxies.yaml url: https://zhanglei:7714e20c-2793-4888-87f4-6e63c53b7c98@proxy-config-provider.midway.run/authcenter/clash/amy/config.yaml filter: "美国" health-check: enable: true url: https://api.openai.com interval: 120 amy_proxies_hk: type: http path: ./amy_proxies.yaml url: https://zhanglei:7714e20c-2793-4888-87f4-6e63c53b7c98@proxy-config-provider.midway.run/authcenter/clash/amy/config.yaml filter: "香港" health-check: enable: true url: https://api.openai.com interval: 120 proxy-groups: - name: Auto type: url-test use: - jike_proxies url: https://cp.cloudflare.com/generate_204 interval: 300 - name: Amy_HK type: url-test use: - amy_proxies_hk url: https://cp.cloudflare.com/generate_204 interval: 300 - name: Load-Balance type: load-balance use: - jike_proxies url: https://cp.cloudflare.com/generate_204 interval: 300 strategy: round-robin - name: Proxy type: select use: - jike_proxies proxies: - Load-Balance - Auto - Amy_HK - name: chatgpt_dedicated_sg type: load-balance use: - amy_proxies_sg url: https://api.openai.com interval: 120 strategy: round-robin - name: chatgpt_dedicated_jp type: load-balance use: - amy_proxies_jp url: https://api.openai.com interval: 120 strategy: round-robin - name: chatgpt_dedicated_usa type: load-balance use: - amy_proxies_usa url: https://api.openai.com interval: 120 strategy: round-robin - name: chatgpt_dedicated_fallback type: fallback proxies: - chatgpt_dedicated_jp - chatgpt_dedicated_sg - chatgpt_dedicated_usa url: https://api.openai.com interval: 120 - name: chatgpt_dedicated type: select proxies: - chatgpt_dedicated_fallback - chatgpt_dedicated_sg - chatgpt_dedicated_jp - chatgpt_dedicated_usa - name: tiktok_dedicated type: select use: - amy_proxies_sg url: https://bard.google.com interval: 120 - name: Final type: select proxies: - Proxy - DIRECT - name: bard_dedicated type: fallback proxies: - chatgpt_dedicated_sg - chatgpt_dedicated_usa - chatgpt_dedicated_jp url: https://bard.google.com interval: 120 # > intranet xray proxy group - name: K8S type: select proxies: - aliyun-hangzhou-jellow - aliyun-hk-serverless - tencent-guangzhou-yiguan - name: ALIYUN type: select proxies: - aliyun-hangzhou-jellow - aliyun-hk-serverless - name: ALIYUN-HZ type: select proxies: - aliyun-hangzhou-jellow - name: ALIYUN-HK type: select proxies: - aliyun-hk-serverless - name: TENCENT-GZ type: select proxies: - tencent-guangzhou-yiguan rule-providers: icloud: type: http behavior: domain url: "http://ruleset.iftech.tools/clash/icloud.txt" path: ./ruleset/icloud.yaml interval: 86400 apple: type: http behavior: domain url: "http://ruleset.iftech.tools/clash/apple.txt" path: ./ruleset/apple.yaml interval: 86400 proxy: type: http behavior: domain url: "http://ruleset.iftech.tools/clash/proxy.txt" path: ./ruleset/proxy.yaml interval: 86400 direct: type: http behavior: domain url: "http://ruleset.iftech.tools/clash/direct.txt" path: ./ruleset/direct.yaml interval: 86400 private: type: http behavior: domain url: "http://ruleset.iftech.tools/clash/private.txt" path: ./ruleset/private.yaml interval: 86400 gfw: type: http behavior: domain url: "http://ruleset.iftech.tools/clash/gfw.txt" path: ./ruleset/gfw.yaml interval: 86400 tld-not-cn: type: http behavior: domain url: "http://ruleset.iftech.tools/clash/tld-not-cn.txt" path: ./ruleset/tld-not-cn.yaml interval: 86400 telegramcidr: type: http behavior: ipcidr url: "http://ruleset.iftech.tools/clash/telegramcidr.txt" path: ./ruleset/telegramcidr.yaml interval: 86400 cncidr: type: http behavior: ipcidr url: "http://ruleset.iftech.tools/clash/cncidr.txt" path: ./ruleset/cncidr.yaml interval: 86400 lancidr: type: http behavior: ipcidr url: "http://ruleset.iftech.tools/clash/lancidr.txt" path: ./ruleset/lancidr.yaml interval: 86400 applications: type: http behavior: classical url: "http://ruleset.iftech.tools/clash/applications.txt" path: ./ruleset/applications.yaml interval: 86400 tiktok: type: http behavior: domain url: "http://ruleset.iftech.tools/clash/tiktok.txt" path: ./ruleset/tiktok.yaml interval: 86400 # > intranet xray proxy scripts script: shortcuts: aliyun-hk: ip_cidr == '192.168.0.0/18' and dst_port == 3717 rules: # >> 直连规则列表 # - DOMAIN,enterprise.nssurge.com,DIRECT # 虽然 ip 是美国,但是实测阿里云直连极快 - DOMAIN,music.audiomack.com,DIRECT - DOMAIN,media.fireside.fm,DIRECT - DOMAIN-SUFFIX,gstatic.com,Amy_HK # 此域名占用大量带宽,先让它直连 - DOMAIN-SUFFIX,akamaitechnologies.com,DIRECT # 覆盖 ruleset 里面的规则 ## zcool 封了我们公司 ip - DOMAIN-SUFFIX,zcool.com.cn,Proxy # google play 商店 - DOMAIN,gemini.google.com,chatgpt_dedicated_usa - DOMAIN,aistudio.google.com,chatgpt_dedicated_usa # google 地理位置检测 - DOMAIN,alkalimakersuite-pa.clients6.google.com,chatgpt_dedicated_usa # google gemini api - DOMAIN,generativelanguage.googleapis.com,chatgpt_dedicated_usa - DOMAIN-SUFFIX,ciciai.com,chatgpt_dedicated_jp - DOMAIN-SUFFIX,hume.ai,chatgpt_dedicated_usa - DOMAIN,services.googleapis.cn,DIRECT - DOMAIN-SUFFIX,xn--ngstr-lra8j.com,DIRECT - DOMAIN-KEYWORD,google,Proxy - DOMAIN,auth0.openai.com,chatgpt_dedicated - DOMAIN,chat.openai.com,chatgpt_dedicated - DOMAIN,chatgpt.com,chatgpt_dedicated - DOMAIN,api.openai.com,chatgpt_dedicated - DOMAIN-SUFFIX,openai.com,chatgpt_dedicated - DOMAIN-SUFFIX,oaiusercontent.com,chatgpt_dedicated - DOMAIN-SUFFIX,oaistatic.com,chatgpt_dedicated - DOMAIN,anthropic.com,chatgpt_dedicated_usa - DOMAIN,claude.ai,chatgpt_dedicated_usa - DOMAIN,openrouter.ai,chatgpt_dedicated_usa - DOMAIN,api.github.com,Proxy - DOMAIN,ghcr.io,DIRECT - DOMAIN-SUFFIX,lizhi.fm,DIRECT - DOMAIN-SUFFIX,qingting.fm,DIRECT - RULE-SET,tiktok,tiktok_dedicated - DOMAIN-SUFFIX,bard.google.com,bard_dedicated # > intranet xray proxy rules # >> K8S - DOMAIN-SUFFIX,prod,K8S - DOMAIN-SUFFIX,beta,K8S - DOMAIN-SUFFIX,api-gateway,K8S - DOMAIN-SUFFIX,infra,K8S - DOMAIN-SUFFIX,jike-prod,K8S - DOMAIN-SUFFIX,jike-beta,K8S - DOMAIN-SUFFIX,jike-alpha,K8S # - RL-REGEX,.*prod(\/|:|$),K8S # - RL-REGEX,.*beta(\/|:|$),K8S - DOMAIN-SUFFIX,podcast-beta,K8S - DOMAIN-SUFFIX,podcast-prod,K8S - DOMAIN-SUFFIX,middle-layer-beta,K8S - DOMAIN-SUFFIX,middle-layer-prod,K8S - DOMAIN,npm.midway.run,K8S - DOMAIN-SUFFIX,svc.cluster.local,K8S # >> ALIYUN # 统一访问阿里云控制台的出口 ip - DOMAIN-SUFFIX,rds.aliyuncs.com,ALIYUN - DOMAIN,mirrors.aliyun.com,DIRECT - DOMAIN-SUFFIX,aliyun.com,ALIYUN - DOMAIN-SUFFIX,milvus.aliyuncs.com,ALIYUN # aliyun ddi 数仓的 ip - IP-CIDR,101.37.17.235/32,ALIYUN-HZ - DOMAIN,service-proxy.jellow.club,ALIYUN-HZ - DOMAIN-SUFFIX,oss-cn-hangzhou-internal.aliyuncs.com,ALIYUN-HZ - DOMAIN,registry-vpc.cn-hangzhou.aliyuncs.com,ALIYUN-HZ - DOMAIN,dockerauth-vpc.cn-hangzhou.aliyuncs.com,ALIYUN-HZ # aliyun bastion ip for ssh - IP-CIDR,47.99.76.37/32,ALIYUN-HZ - IP-CIDR,172.20.0.0/16,ALIYUN-HZ - IP-CIDR,172.21.0.0/19,ALIYUN-HZ - IP-CIDR,10.3.0.0/16,ALIYUN-HZ # 香港 k8s 集群的交换机 ip 段 - SCRIPT,aliyun-hk,ALIYUN-HK - IP-CIDR,10.32.0.0/16,ALIYUN-HK # >> yiguan - IP-CIDR,172.16.0.0/16,TENCENT-GZ - IP-CIDR,172.17.0.0/16,TENCENT-GZ # Rule set - RULE-SET,applications,DIRECT - RULE-SET,private,DIRECT - RULE-SET,icloud,DIRECT - RULE-SET,apple,DIRECT - RULE-SET,proxy,Proxy - RULE-SET,direct,DIRECT - RULE-SET,lancidr,DIRECT - RULE-SET,cncidr,DIRECT - RULE-SET,telegramcidr,Proxy - GEOIP,LAN,DIRECT - GEOIP,CN,DIRECT - MATCH,Final