# Clash 订阅 - 阿豪自建 Trojan 节点
# 服务器：192.3.12.50  端口：443  密码：Hd72!sjs921  SNI：www.t-a.top
# 用法：Clash Verge / Clash for Windows -> Profiles -> Import from URL
# 链接：https://cdn.t-a.top/sub/clash.yaml

mixed-port: 7890
allow-lan: false
mode: rule
log-level: info
ipv6: false

dns:
  enable: true
  ipv6: false
  enhanced-mode: fake-ip
  fake-ip-range: 198.18.0.1/16
  nameserver:
    - https://dns.alidns.com/dns-query
    - https://dns.google/dns-query
    - https://1.1.1.1/dns-query
  fallback:
    - https://1.0.0.1/dns-query
    - https://8.8.4.4/dns-query

proxies:
  - name: "HK-Trojan"
    type: trojan
    server: 192.3.12.50
    port: 443
    password: "Hd72!sjs921"
    udp: true
    sni: www.t-a.top
    skip-cert-verify: false
    alpn:
      - h2
      - http/1.1

proxy-groups:
  - name: "ProxySelect"
    type: select
    proxies:
      - HK-Trojan
      - DIRECT

  - name: "AutoUrlTest"
    type: url-test
    url: http://www.gstatic.com/generate_204
    interval: 300
    tolerance: 50
    proxies:
      - HK-Trojan
      - DIRECT

rules:
  # ====== 自己域名直连 ======
  - DOMAIN-SUFFIX,t-a.top,DIRECT
  - DOMAIN,t-a.top,DIRECT
  - DOMAIN-SUFFIX,t-a.com,DIRECT

  # ====== 国内常见大厂直连 ======
  - DOMAIN-SUFFIX,cn,DIRECT
  - DOMAIN-SUFFIX,alipay.com,DIRECT
  - DOMAIN-SUFFIX,alipay.cn,DIRECT
  - DOMAIN-SUFFIX,weixin.qq.com,DIRECT
  - DOMAIN-SUFFIX,wechat.com,DIRECT
  - DOMAIN-SUFFIX,qq.com,DIRECT
  - DOMAIN-SUFFIX,tencent.com,DIRECT
  - DOMAIN-SUFFIX,tencentcloud.com,DIRECT
  - DOMAIN-SUFFIX,baidu.com,DIRECT
  - DOMAIN-SUFFIX,bdimg.com,DIRECT
  - DOMAIN-SUFFIX,bdstatic.com,DIRECT
  - DOMAIN-SUFFIX,taobao.com,DIRECT
  - DOMAIN-SUFFIX,tmall.com,DIRECT
  - DOMAIN-SUFFIX,alicdn.com,DIRECT
  - DOMAIN-SUFFIX,alimama.com,DIRECT
  - DOMAIN-SUFFIX,aliyun.com,DIRECT
  - DOMAIN-SUFFIX,jd.com,DIRECT
  - DOMAIN-SUFFIX,jdcloud.com,DIRECT
  - DOMAIN-SUFFIX,bilibili.com,DIRECT
  - DOMAIN-SUFFIX,bilivideo.com,DIRECT
  - DOMAIN-SUFFIX,hdslb.com,DIRECT
  - DOMAIN-SUFFIX,douyin.com,DIRECT
  - DOMAIN-SUFFIX,douyincdn.com,DIRECT
  - DOMAIN-SUFFIX,bytedance.com,DIRECT
  - DOMAIN-SUFFIX,bytedance.net,DIRECT
  - DOMAIN-SUFFIX,163.com,DIRECT
  - DOMAIN-SUFFIX,126.com,DIRECT
  - DOMAIN-SUFFIX,126.net,DIRECT
  - DOMAIN-SUFFIX,youku.com,DIRECT
  - DOMAIN-SUFFIX,tudou.com,DIRECT
  - DOMAIN-SUFFIX,iqiyi.com,DIRECT
  - DOMAIN-SUFFIX,weibo.com,DIRECT
  - DOMAIN-SUFFIX,weibocdn.com,DIRECT
  - DOMAIN-SUFFIX,sina.com,DIRECT
  - DOMAIN-SUFFIX,sinaimg.cn,DIRECT
  - DOMAIN-SUFFIX,xinhuanet.com,DIRECT
  - DOMAIN-SUFFIX,csdn.net,DIRECT
  - DOMAIN-SUFFIX,jianshu.com,DIRECT
  - DOMAIN-SUFFIX,zhihu.com,DIRECT
  - DOMAIN-SUFFIX,juejin.cn,DIRECT
  - DOMAIN-SUFFIX,gitee.com,DIRECT
  - DOMAIN-SUFFIX,cs.com.cn,DIRECT
  - DOMAIN-SUFFIX,cmbchina.com,DIRECT
  - DOMAIN-SUFFIX,icbc.com.cn,DIRECT
  - DOMAIN-SUFFIX,ccb.com,DIRECT
  - DOMAIN-SUFFIX,boc.cn,DIRECT
  - DOMAIN-SUFFIX,abchina.com,DIRECT
  - DOMAIN-SUFFIX,meituan.com,DIRECT
  - DOMAIN-SUFFIX,meituan.net,DIRECT
  - DOMAIN-SUFFIX,dianping.com,DIRECT
  - DOMAIN-SUFFIX,ele.me,DIRECT
  - DOMAIN-SUFFIX,amap.com,DIRECT
  - DOMAIN-SUFFIX,autonavi.com,DIRECT
  - DOMAIN-SUFFIX,ctrip.com,DIRECT
  - DOMAIN-SUFFIX,trip.com,DIRECT
  - DOMAIN-SUFFIX,qunar.com,DIRECT
  - DOMAIN-SUFFIX,didi.com,DIRECT
  - DOMAIN-SUFFIX,ximalaya.com,DIRECT
  - DOMAIN-SUFFIX,kuwo.cn,DIRECT
  - DOMAIN-SUFFIX,kugou.com,DIRECT
  - DOMAIN-SUFFIX,kuwo.com,DIRECT
  - DOMAIN-SUFFIX,mi.com,DIRECT
  - DOMAIN-SUFFIX,xiaomi.com,DIRECT
  - DOMAIN-SUFFIX,miui.com,DIRECT
  - DOMAIN-SUFFIX,huawei.com,DIRECT
  - DOMAIN-SUFFIX,huaweicloud.com,DIRECT
  - DOMAIN-SUFFIX,oppo.com,DIRECT
  - DOMAIN-SUFFIX,vivo.com.cn,DIRECT
  - DOMAIN-SUFFIX,lenovo.com,DIRECT
  - DOMAIN-SUFFIX,dell.com,DIRECT
  - DOMAIN-SUFFIX,oneplus.com,DIRECT
  - DOMAIN-SUFFIX,zte.com,DIRECT
  - DOMAIN-SUFFIX,meizu.com,DIRECT
  - DOMAIN-SUFFIX,360.cn,DIRECT
  - DOMAIN-SUFFIX,qihoo.com,DIRECT
  - DOMAIN-SUFFIX,bdurl.net,DIRECT
  - DOMAIN-SUFFIX,cnblogs.com,DIRECT
  - DOMAIN-SUFFIX,oschina.net,DIRECT

  # ====== IP 段国内直连 ======
  - GEOIP,CN,DIRECT
  - IP-CIDR,127.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,172.16.0.0/12,DIRECT,no-resolve
  - IP-CIDR,192.168.0.0/16,DIRECT,no-resolve
  - IP-CIDR,10.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,17.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,224.0.0.0/4,DIRECT,no-resolve
  - IP-CIDR,100.64.0.0/10,DIRECT,no-resolve
  - IP-CIDR,169.254.0.0/16,DIRECT,no-resolve
  - IP-CIDR,192.0.2.0/24,DIRECT,no-resolve
  - IP-CIDR,198.51.100.0/24,DIRECT,no-resolve
  - IP-CIDR,203.0.113.0/24,DIRECT,no-resolve
  - IP-CIDR,198.18.0.0/15,DIRECT,no-resolve
  - IP-CIDR,6.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,166.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,174.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,192.31.196.0/24,DIRECT,no-resolve
  - IP-CIDR,202.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,210.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,218.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,222.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,123.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,124.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,125.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,126.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,127.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,180.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,183.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,114.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,115.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,116.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,117.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,118.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,119.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,120.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,121.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,122.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,139.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,140.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,150.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,152.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,153.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,157.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,159.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,165.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,167.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,168.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,172.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,175.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,176.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,177.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,178.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,179.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,181.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,182.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,184.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,185.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,186.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,187.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,188.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,189.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,190.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,191.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,193.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,194.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,195.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,196.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,197.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,198.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,199.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,200.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,201.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,202.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,203.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,204.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,205.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,206.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,207.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,208.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,209.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,211.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,212.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,213.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,214.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,215.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,216.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,217.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,219.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,220.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,221.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,223.0.0.0/8,DIRECT,no-resolve

  # ====== 兜底：其他流量走代理 ======
  - MATCH,ProxySelect
