mixed-port: 7890
allow-lan: false
mode: rule
log-level: info
external-controller: 127.0.0.1:9090

dns:
  enable: true
  nameserver:
    - 223.5.5.5
    - 119.29.29.29
  fallback:
    - 8.8.8.8
    - 1.1.1.1
  fallback-filter:
    geoip: true
    geoip-code: CN

proxies:
  - name: HongKong-HY2
    type: hysteria2
    server: hy2.rusti.cc
    port: 443
    password: C3MhlAEI3P3DmuzlQgK8PSJWWFzU
    obfs: salamander
    obfs-password: obfs-hk-rusti2026

  - name: Ashburn-VLESS
    type: vless
    server: 107.175.221.34
    port: 443
    uuid: 636deb6a-8396-4325-b0f2-43660587c0e6
    network: tcp
    tls: true
    udp: true
    flow: xtls-rprx-vision
    servername: www.apple.com
    reality-opts:
      public-key: 455D6cAT49LYFp9sw9A2A6w_NL-QVCxtRXNsoYRMVjo
      short-id: ba0f8e1c3d5a7f29
    client-fingerprint: chrome

  - name: Ashburn-HY2
    type: hysteria2
    server: 107.175.221.34
    port: 443
    password: z2ZGJoBa3GhAzOdQMTIzZOqKNEytH
    sni: bing.com
    skip-cert-verify: true
    obfs: salamander
    obfs-password: obfs-relay2024

  - name: Guangzhou-HY2
    type: hysteria2
    server: 8.138.96.167
    port: 443
    password: ef802fb1065265452b034da5750d2960
    sni: bing.com
    skip-cert-verify: true

proxy-groups:
  - name: PROXY
    type: select
    proxies:
      - AUTO
      - HongKong-HY2
      - Ashburn-VLESS
      - Ashburn-HY2
      - Guangzhou-HY2
      - DIRECT

  - name: AUTO
    type: url-test
    proxies:
      - HongKong-HY2
      - Ashburn-VLESS
      - Ashburn-HY2
      - Guangzhou-HY2
    url: http://www.gstatic.com/generate_204
    interval: 300

rules:
  - DOMAIN-SUFFIX,google.com,PROXY
  - DOMAIN-SUFFIX,googleapis.com,PROXY
  - DOMAIN-SUFFIX,googleusercontent.com,PROXY
  - DOMAIN-SUFFIX,gstatic.com,PROXY
  - DOMAIN-SUFFIX,youtube.com,PROXY
  - DOMAIN-SUFFIX,ytimg.com,PROXY
  - DOMAIN-SUFFIX,googlevideo.com,PROXY
  - DOMAIN-SUFFIX,github.com,PROXY
  - DOMAIN-SUFFIX,githubusercontent.com,PROXY
  - DOMAIN-SUFFIX,openai.com,PROXY
  - DOMAIN-SUFFIX,anthropic.com,PROXY
  - DOMAIN-SUFFIX,claude.ai,PROXY
  - DOMAIN-SUFFIX,x.com,PROXY
  - DOMAIN-SUFFIX,twitter.com,PROXY
  - DOMAIN-SUFFIX,twimg.com,PROXY
  - DOMAIN-SUFFIX,t.co,PROXY
  - DOMAIN-SUFFIX,wikipedia.org,PROXY
  - DOMAIN-SUFFIX,telegram.org,PROXY
  - DOMAIN-SUFFIX,t.me,PROXY
  - DOMAIN-SUFFIX,discord.com,PROXY
  - DOMAIN-SUFFIX,discord.gg,PROXY
  - DOMAIN-SUFFIX,discordapp.com,PROXY
  - DOMAIN-SUFFIX,reddit.com,PROXY
  - DOMAIN-SUFFIX,spotify.com,PROXY
  - DOMAIN-SUFFIX,netflix.com,PROXY
  - DOMAIN-SUFFIX,docker.com,PROXY
  - DOMAIN-SUFFIX,docker.io,PROXY
  - DOMAIN-KEYWORD,google,PROXY
  - DOMAIN-KEYWORD,github,PROXY
  - DOMAIN-KEYWORD,openai,PROXY
  - GEOIP,CN,DIRECT
  - MATCH,PROXY
