Skip to main content

mihomo

brew install mihomo # macOS

# https://github.com/MetaCubeX/mihomo/releases
VERSION=1.19.1
# macOS
curl -L -o mihomo.gz https://github.com/MetaCubeX/mihomo/releases/download/v${VERSION}/mihomo-darwin-arm64-v${VERSION}.gz
# Linux
curl -L -o mihomo.gz https://github.com/MetaCubeX/mihomo/releases/download/v${VERSION}/mihomo-linux-amd64-compatible-v${VERSION}.gz

gzip -d mihomo.gz
chmod +x mihomo
./mihomo -v
./mihomo --help

# install
sudo mv mihomo /usr/local/bin/mihomo

curl -LO https://github.com/wenerme/wener/raw/master/notes/service/network/proxy/clash/mihomo.openrc.sh
sudo mv mihomo.openrc.sh /etc/init.d/mihomo
sudo chmod +x /etc/init.d/mihomo

# /etc/mihomo/config.yaml
mkdir -p /etc/mihomo
flagenvfor
-config BASE64CLASH_CONFIG_STRINGbase64-encoded 配置内容
-d DIRCLASH_HOME_DIR配置目录
-ext-ctl ADDRCLASH_OVERRIDE_EXTERNAL_CONTROLLER外部控制器地址
-ext-ctl-pipe ADDRCLASH_OVERRIDE_EXTERNAL_CONTROLLER_PIPE外部控制器管道地址
-ext-ctl-unix ADDRCLASH_OVERRIDE_EXTERNAL_CONTROLLER_UNIX外部控制器 Unix 地址
-ext-ui DIRCLASH_OVERRIDE_EXTERNAL_UI_DIR外部 UI 目录
-f FILECLASH_CONFIG_FILE配置文件
-mGeoData 模式
-secret SECRETCLASH_OVERRIDE_SECRETRESTful API 密钥
-t测试配置并退出
  • QUIC_GO_DISABLE_GSO
  • QUIC_GO_DISABLE_ECN
  • DISABLE_SYSTEM_HOSTS
  • DISABLE_LOOPBACK_DETECTOR
  • SKIP_SAFE_PATH_CHECK
  • DISABLE_SYSTEM_CA
  • DISABLE_EMBED_CA
  • LISTEN_NAMEDPIPE_SDDL
    • windows

配置

FAQ

ASN

rules:
- IP-ASN,22697,Proxy,no-resolve # Roblox