自制mihomo飞牛套件版
——来自练习时长两天半的个人制作生
关键词:mihomo,clash,fpk
摒弃哈曼卡顿且复杂的docker,拥抱原生牛牛应用
。借用clash verge的漂亮图标,root用户运行,支持tun模式,内核可在面板直接升级。安装后别启用应用,在应用文件>Mihomo文件夹添加config.yaml和ui面板后再启动。启动失败检查Mihomo目录权限、config.yaml配置和ui面板。应用入口为/ui,端口9090。可在应用设置添加反代“http(s)://your.domain:port/ui”。
MetaCubeXD面板 mihomo.fpk

分享预制的config.yaml
mixed-port: 7890
allow-lan: true
bind-address: '*'
mode: rule
log-level: silent
external-controller: '0.0.0.0:9090'
external-ui: ui
secret: '请设置面板密码'
find-process-mode: strict
global-client-fingerprint: chrome
profile:
store-selected: true
store-fake-ip: true
sniffer:
enable: true
sniff:
HTTP:
ports: [80, 8080-8880]
override-destination: true
TLS:
ports: [443, 8443]
QUIC:
ports: [443, 8443]
skip-domain:
- "Mijia Cloud"
- "+.push.apple.com"
tun:
enable: false
stack: mixed
dns-hijack:
- "any:53"
- "tcp://any:53"
auto-route: true
auto-redirect: true
auto-detect-interface: true
proxy-providers:
订阅1名称:
url: "订阅链接1"
type: http
interval: 86400
health-check: {enable: true,url: "https://www.gstatic.com/generate_204", interval: 300}
override:
additional-prefix: ""
订阅2名称:
url: "订阅链接2"
type: http
interval: 86400
health-check: {enable: true,url: "https://www.gstatic.com/generate_204", interval: 300}
override:
additional-prefix: ""
geodata-mode: true
geox-url:
geoip: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip-lite.dat"
geosite: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat"
mmdb: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country-lite.mmdb"
asn: "https://github.com/xishang0128/geoip/releases/download/latest/GeoLite2-ASN.mmdb"
dns:
enable: true
ipv6: true
respect-rules: true
enhanced-mode: fake-ip
fake-ip-filter:
- "*"
- "+.lan"
- "+.local"
- "+.**.xiaomi.com"
nameserver:
- https://120.53.53.53/dns-query
- https://223.5.5.5/dns-query
proxy-server-nameserver:
- https://120.53.53.53/dns-query
- https://223.5.5.5/dns-query
nameserver-policy:
"geosite:cn,private":
- https://120.53.53.53/dns-query
- https://223.5.5.5/dns-query
"geosite:geolocation-!cn":
- "https://dns.cloudflare.com/dns-query"
- "https://dns.google/dns-query"
proxies:
- name: "直连"
type: direct
udp: true
proxy-groups:
- name: 默认
type: select
proxies: [自动选择,直连,全部节点,故障转移,负载均衡(散列),负载均衡(轮询)]
- name: 全部节点
type: select
include-all: true
exclude-type: direct
- name: 自动选择
type: url-test
include-all: true
exclude-type: direct
tolerance: 10
- name: 故障转移
type: fallback
include-all: true
exclude-type: direct
- name: 负载均衡(散列)
type: load-balance
include-all: true
exclude-type: direct
strategy: consistent-hashing
- name: 负载均衡(轮询)
type: load-balance
include-all: true
exclude-type: direct
strategy: round-robin
- name: Google
type: select
proxies: [默认,全部节点,自动选择,直连]
- name: Telegram
type: select
proxies: [默认,全部节点,自动选择,直连]
- name: Github
type: select
proxies: [默认,全部节点,自动选择,直连]
- name: 国内
type: select
proxies: [直连,全部节点,自动选择]
- name: 其他
type: select
proxies: [默认,全部节点,自动选择,直连]
rules:
- GEOIP,lan,直连,no-resolve
- GEOSITE,github,Github
- GEOSITE,google,Google
- GEOSITE,telegram,Telegram
- GEOSITE,CN,国内
- GEOSITE,geolocation-!cn,其他
- GEOIP,google,Google
- GEOIP,telegram,Telegram
- GEOIP,CN,国内
- MATCH,其他