Skip to content

Releases: MetaCubeX/mihomo

v1.11.1

18 May 11:22
Compare
Choose a tag to compare
  • 调整DOQ过代理问题 #59
  • 调整主动健康检测触发逻辑
  • 修复Android的auto-detect-interface
  • 修正Rule-Set没有正常判断是否解析IP
  • 添加Rule-Set的no-resolve参数

实验性添加负载均衡算法

  - name: "load-balance"
     type: load-balance
     strategy: sticky-sessions
     proxies:
       - trojan
       - ss
     url: 'http://www.gstatic.com/generate_204'
     interval: 600

v1.11.0

14 May 15:51
Compare
Choose a tag to compare

增加域名嗅探

域名嗅探,用于嗅探TCP请求中实际的域名

sniffer:
    enable: true #控制开关
    sniffing:
        - tls
        - http
    port-whitelist: #目的端口白名单,嗅探器只会嗅探白名单中的端口,默认0-65535,推荐设置成常见端口
        - 80
        - 443
        - 8000-9000
    skip-domain: # 嗅探的域名结果如果在此名单则不会生效
        - baidu.com
        - google.com
    force-domain: # 需要嗅探的域名,这里域名是clash原有逻辑获取的域名,如为空则只会嗅探IP请求,如填写'+'则嗅探所有请求     
        - +.qq.com

添加TCP并发连接

TCP并发连接将使用所有IP进行TCP握手,并使用最先握手的IP进行后续请求

tcp-concurrent: true #默认为false

完善Relay策略组

Relay策略可以利用udp over tcp的协议作为落地协议从而使其支持UDP

  - name: RelayTest
    type: relay
    proxies:
      - Chains
      - Trojan # Vmess Snell...

策略组过滤节点优化

优化节点过滤逻辑,当前将不会每次请求进行一次过滤匹配,减少无意义的消耗

其他

  • IPv6

    ipv6: false 将完全关闭IPv6请求,不允许IPv6请求连接,包括纯IPv6

  • DOQ

    DOQ环流问题优化

  • 支持UUID Map
    详情见 XTLS/Xray-core#158

  • 稳定性优化

v1.10.0

02 Apr 14:17
Compare
Choose a tag to compare

代理模块:

支持出站传输协议 VLESS XTLS / Trojan XTLS
主动健康检测urltest/fallback(基于tcp握手,限定时间内多次失败会主动触发健康检测使用节点)
采用 Regex2 依赖,支持策略组正则筛选
允许provider请求过clash

规则模块:

支持PASS ( 跳过 )规则
支持规则 GEOSITE
支持规则集 RULE-SET
支持规则 SRC-PORT 和 DST-PORT 的多端口条件
支持规则对TCP / UDP分别管控
支持 Network 规则, 支持匹配网络类型 ( TCP / UDP )
支持多条件规则 ( NOT / OR / AND )
支持所有规则的源 IPCIDR 条件,只需附加到末尾即可
支持GEODATA MODE切换,mmdb / dat
支持切换GEODATA LOADER模式切换 , 普通 / 小内存模式
支持GeoSite延迟加载 (无Geosite规则,getsite.dat不下载)
GEOIP / GEOSITE 数据库基于 Loyalsoldier/v2ray-rules-dat

DNS模块:

支持 TLS Sniffing
支持 Fallback-Filter 使用 Geosite
恢复 Redir-Host 远程解析
支持使用代理解析 ip
支持DNS over QUIC

TUN模块:

支持 macOS、Linux 和 Windows
内置iptables,无需手动配置
内置 Wintun 驱动
支持 gVisor / System 堆栈

v1.9.0

04 Jan 10:59
Compare
Choose a tag to compare

What's Features

DNS configuration

  • Support geosite with fallback-filter.
  • Restore Redir remote resolution.
  • Support resolve ip with a Proxy Tunnel.
proxy-groups:

  - name: DNS
    type: url-test
    use:
      - HK
    url: http://cp.cloudflare.com
    interval: 180
    lazy: true
dns:
  enable: true
  use-hosts: true
  ipv6: false
  enhanced-mode: redir-host
  fake-ip-range: 198.18.0.1/16
  listen: 127.0.0.1:6868
  default-nameserver:
    - 119.29.29.29
    - 114.114.114.114
  nameserver:
    - https://doh.pub/dns-query
    - tls://223.5.5.5:853
  fallback:
    - 'https://1.0.0.1/dns-query#DNS'  # append the proxy adapter name or group name to the end of DNS URL with '#' prefix.
    - 'tls://8.8.4.4:853#DNS'
  fallback-filter:
    geoip: false
    geosite:
      - gfw  # `geosite` filter only use fallback server to resolve ip, prevent DNS leaks to unsafe DNS providers.
    domain:
      - +.example.com
    ipcidr:
      - 0.0.0.0/32

TUN configuration

  • Supports macOS, Linux and Windows.
  • Built-in Wintun driver.
# Enable the TUN listener
tun:
  enable: true
  stack: gvisor #  only gvisor
  dns-hijack: 
    - 0.0.0.0:53 # additional dns server listen on TUN
  auto-route: true # auto set global route

Rules configuration

  • Support rule GEOSITE.
  • Support rule-providers RULE-SET.
  • Support multiport condition for rule SRC-PORT and DST-PORT.
  • Support network condition for all rules.
  • Support source IPCIDR condition for all rules, just append to the end.
  • The GEOSITE databases via https://github.com/Loyalsoldier/v2ray-rules-dat.
rules:

  # network(tcp/udp) condition for all rules
  - DOMAIN-SUFFIX,bilibili.com,DIRECT,tcp
  - DOMAIN-SUFFIX,bilibili.com,REJECT,udp
    
  # multiport condition for rules SRC-PORT and DST-PORT
  - DST-PORT,123/136/137-139,DIRECT,udp
  
  # rule GEOSITE
  - GEOSITE,category-ads-all,REJECT
  - GEOSITE,icloud@cn,DIRECT
  - GEOSITE,apple@cn,DIRECT
  - GEOSITE,apple-cn,DIRECT
  - GEOSITE,microsoft@cn,DIRECT
  - GEOSITE,facebook,PROXY
  - GEOSITE,youtube,PROXY
  - GEOSITE,geolocation-cn,DIRECT
  - GEOSITE,geolocation-!cn,PROXY
    
  # source IPCIDR condition for all rules in gateway proxy
  #- GEOSITE,geolocation-!cn,REJECT,192.168.1.88/32,192.168.1.99/32

  - GEOIP,telegram,PROXY,no-resolve
  - GEOIP,private,DIRECT,no-resolve
  - GEOIP,cn,DIRECT
  
  - MATCH,PROXY

Proxies configuration

  • Active health detection urltest / fallback (based on tcp handshake, multiple failures within a limited time will actively trigger health detection to use the node)
  • Support Policy Group Filter
proxy-groups:

  - name: 🚀 HK Group
    type: select
    use:
      - ALL
    filter: 'HK'

  - name: 🚀 US Group
    type: select
    use:
      - ALL
    filter: 'US'

proxy-providers:
  ALL:
    type: http
    url: "xxxxx"
    interval: 3600
    path: "xxxxx"
    health-check:
      enable: true
      interval: 600
      url: http://www.gstatic.com/generate_204
  • Support outbound transport protocol VLESS.
    The XTLS support TCP / UDP by the XRAY-CORE.
proxies:
  - name: "vless-tcp"
    type: vless
    server: server
    port: 443
    uuid: uuid
    network: tcp
    servername: example.com # AKA SNI
    # flow: xtls-rprx-direct # xtls-rprx-origin  # enable XTLS
    # skip-cert-verify: true
    
  - name: "vless-ws"
    type: vless
    server: server
    port: 443
    uuid: uuid
    udp: true
    network: ws
    servername: example.com # priority over wss host
    # skip-cert-verify: true
    ws-path: /path
    ws-headers:
      Host: example.com

What's Changed

  • Update vless.go, fix udp blocked by @xsxun in #5

New Contributors

  • @xsxun made their first contribution in #5

Full Changelog: v1.8.0...v1.9.0

v1.8.0

21 Dec 17:47
Compare
Choose a tag to compare

Supported Rule-Set by @Skyxim
Fix VLESS UDP by @xsxun