A project contains mihomo packages for OpenWrt.
- Switch for Transparent Proxy
- Switch for Router Proxy
- Support Access Control
- Support Profile Mixin
- Support Subscribe and File
- Support Scheduled Restart
See Wiki
- Download dependency files if need.
- Get mixin config.
- Mixin and Update profile.
- Run mihomo.
- Run hijack prepare script.
- Add exclusions. (wan inbound, firewall rule/redirect, UPnP)
- Add router hijack.
- Add lan hijack with access control.
- Add cron for 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
.
- curl
- inotifywait
- yq
- firewall4
- kmod-nft-tproxy
- Only support firewall4 and will never support firewall3
- Will only support ipv4 for a long time