MIHOMO (fork Clash) for Mikrotik! Very fast and easy!
50K+
Chat https://t.me/it_network_people
/interface/bridge add name=Bridge-Docker port-cost-mode=short
/ip/address add address=192.168.254.1/24 interface=Bridge-Docker network=192.168.254.0
/interface/veth add address=192.168.254.3/24 gateway=192.168.254.1 name=MIHOMO
/interface/bridge/port add bridge=Bridge-Docker interface=MIHOMO
/container envs add list=MIHOMO key=SRV1 value="vless://..."
/container envs add list=MIHOMO key=SRV2_TEST value="ss://..."
/container envs add list=MIHOMO key=SUB1 value="https://free..."
/container envs add list=MIHOMO key=SUB2_TEST value="https://my_subs..."
/container mounts add dst=/etc/mihomo/awg list=MIHOMO_AWG src=/usb1/docker_configs/mihomo_mikrotik/awg
*.conf files wireguard/amneziawg to mount dir /usb1/docker_configs/mihomo_mikrotik/awg⚠️ Important
Config files must use LF (Unix) line endings.
Files with CRLF will not work.
/container add envlists=MIHOMO interface=MIHOMO logging=yes remote-image=registry-1.docker.io/wiktorbgu/mihomo-mikrotik root-dir=/usb1/docker/mihomo-mikrotik dns=1.1.1.1,8.8.8.8,9.9.9.9
# add these options to the command above if you are using mount
mountlists=MIHOMO_MIKROTIK,MIHOMO_AWG
# add this for more userfrendly ui
/container envs add list=MIHOMO key=EXTERNAL_UI_URL value="https://github.com/Zephyruso/zashboard/releases/latest/download/dist.zip"
/container envs add list=MIHOMO key=LOG_LEVEL value="error"
http://192.168.254.3:9090/ui/#/setup?hostname=192.168.254.3&port=9090&secret=
or use online web panel => https://wiki.metacubex.one/en/startup/web/
LOG_LEVEL=error
UI_SECRET="sgddshje54w532tge54"
EXTERNAL_UI_URL="https://github.com/MetaCubeX/Yacd-meta/archive/refs/heads/gh-pages.zip"
# or dist.zip (7.8MB) – Includes better font-loading experience.
EXTERNAL_UI_URL="https://github.com/Zephyruso/zashboard/releases/latest/download/dist.zip"
# or dist-cdn-fonts.zip (1.4MB) – Optimized for devices with limited storage, fonts loaded from CDN.
EXTERNAL_UI_URL="https://github.com/Zephyruso/zashboard/releases/latest/download/dist-cdn-fonts.zip"
https://wiki.metacubex.one/en/startup/web/
for flexibility of manual control it is necessary to mount the config directory
/container mounts add dst=/etc/mihomo name=MIHOMO_MIKROTIK src=/usb1/docker_configs/mihomo_mikrotik
cmd parameter in MikroTik container settings is passed directly to Mihomocmd="-h", run the container, and check the logs).default_config.yaml —/template directory.CONFIG="my_custom_config.yaml"/user_sh directory is intended for custom shell scripts./user_sh share the same environment as the main entrypoint,⚠️ Template debugging:
Mihomo will point to the error line in the config, example
Parse config error: yaml: line 83: could not find expected ':'
which is located a directory higher in the WORKDIR with the same name as the template file itself, because variables can be filled with multi-line data
Шаблоны конфигураций Mihomo https://github.com/wiktorbgu/mihomo-templates
https://github.com/Viktor45/mh-templates
для тех, кому не хватает встроенного и хочется чего-то большего
Content type
Image
Digest
sha256:fca2fa66d…
Size
49.3 MB
Last updated
5 days ago
docker pull wiktorbgu/mihomo-mikrotik