A project contains mihomo packages for OpenWrt.
- Transparent Proxy (TPROXY/TUN, IPv4 and/or IPv6)
- Access Control
- Compatible with Multiple WAN
- Profile Mixin
- Profile Editor
- Scheduled Restart
See Wiki
- Mixin and Update profile.
- Run mihomo.
- Run hijack prepare script.
- Add exclusions. (wan/wan6 inbound, firewall rule/redirect, UPnP)
- Add router hijack.
- Add lan hijack with access control.
- Set scheduled restart.
Note that the steps above may change base on config.
# add mihomo feeds
echo "src-git mihomo https://github.com/morytyann/OpenWrt-mihomo.git;main" >> "feeds.conf.default"
# update & install feeds
./scripts/feeds update -a
./scripts/feeds install -a
# make package
make package/luci-app-mihomo/compile
The ipk file will be found under bin/packages/your_architecture/mihomo
.
- ca-bundle
- curl
- inotifywait
- yq
- firewall4
- kmod-nft-tproxy
- ip-full
- kmod-tun
- Only support firewall4 and will never support firewall3