https://github.com/MetaCubeX/mihomo

安装

默认配置文件路径:/etc/mihomo ~/.config/mihomo

二进制核心启动: ./mihomo-linux-amd64-v3 -f /home/w1nd/clash/clash-verge.yaml

tun开启的配置文件:

mode: rule
mixed-port: 11235
allow-lan: true
log-level: info
ipv6: true
external-controller: ''
secret: '1234567.'
unified-delay: true
external-controller-cors:
  allow-private-network: true
  allow-origins:
  - tauri://localhost
  - http://tauri.localhost
  - https://yacd.metacubex.one
  - https://metacubex.github.io
  - https://board.zash.run.place
dns:
  default-nameserver:
  - 180.184.1.1
  - system
  - 223.6.6.6
  - 8.8.8.8
  - 2400:3200::1
  - 2001:4860:4860::8888
  direct-nameserver: []
  direct-nameserver-follow-policy: false
  enable: true
  enhanced-mode: fake-ip
  fake-ip-filter:
  - '*.lan'
  - '*.local'
  - '*.arpa'
  - time.*.com
  - ntp.*.com
  - time.*.com
  - +.market.xiaomi.com
  - localhost.ptlogin2.qq.com
  - '*.msftncsi.com'
  - www.msftconnecttest.com
  fake-ip-filter-mode: blacklist
  fake-ip-range: 198.18.0.1/16
  fallback: []
  fallback-filter:
    domain:
    - +.google.com
    - +.facebook.com
    - +.youtube.com
    geoip: true
    geoip-code: CN
    ipcidr:
    - 240.0.0.0/4
    - 0.0.0.0/32
  ipv6: true
  listen: :53
  nameserver:
  - 180.184.1.1
  - https://doh.pub/dns-query
  - https://dns.alidns.com/dns-query
  prefer-h3: false
  proxy-server-nameserver: # 查找代理域名的DNS
  - 180.184.1.1
  - https://doh.pub/dns-query
  - https://dns.alidns.com/dns-query
  - tls://223.5.5.5
  respect-rules: false
  use-hosts: false
  use-system-hosts: false
profile:
  store-selected: true
tun:
  auto-detect-interface: true
  auto-route: true
  device: Mihomo
  dns-hijack:
  - any:53
  mtu: 1500
  stack: mixed
  strict-route: false
  enable: true
external-controller-pipe: \\.\pipe\verge-mihomo
sniffer:
  sniff:
    TLS:
      ports:
      - 1-65535
      override-destination: true
    HTTP:
      ports:
      - 1-65535
      override-destination: true
  enable: true
  skip-domain:
  - Mijia Cloud
  - dlg.io.mi.com
  parse-pure-ip: false
  force-dns-mapping: true
  override-destination: true
proxies:
 ... # 代理配置

协议

ShadowSocks Trojan https://v2.hysteria.network/

客户端

ShadowSocks V2Ray