---
title: mihomo
status: "无"
doc_type: note
tags: []
date: 20260915
---

```bash
/opt/mihomo -d /etc/mihomo
```

配置节点一般使用: https://metacubex.github.io/metacubexd/#/overview

`config.yaml` 示例
```yaml
mode: rule
mixed-port: 7890
allow-lan: false
log-level: info
ipv6: false
external-controller: 127.0.0.1:6006
secret: ''
unified-delay: false

profile:
  store-selected: true

tun:
  enable: false
  stack: mixed
  auto-route: true
  strict-route: false
  auto-detect-interface: true
  dns-hijack:
  - any:53

dns:
  enable: false
  listen: 0.0.0.0:8853
  ipv6: false
  default-nameserver:
  - 223.5.5.5
  - 119.29.29.29
  nameserver:
  - https://119.29.29.29/dns-query
  - https://223.5.5.5/dns-query
  fallback:
  - https://1.1.1.1/dns-query
  - https://dns.twnic.tw/dns-query
  - tls://8.8.8.8:853
  use-system-hosts: false
  enhanced-mode: redir-host
  fake-ip-range: 198.18.0.1/16
external-controller-cors:
  allow-private-network: true
  allow-origins:
  - '*'

proxy-providers:
  mysub:
    type: http
    url: ""
    path: ./proxy_providers/mysub.yaml
    interval: 3600
    health-check:
      enable: true
      url: https://www.gstatic.com/generate_204
      interval: 300

proxy-groups:
  - name: PROXY
    type: select
    use:
      - mysub

rules:
  - MATCH,PROXY
```

如果在 autodl 上，还需要额外进行隧道穿透
```
ssh -L 9090:localhost:6006 -p 16284 root@connect.bjb1.seetacloud.com
```