A project contains mihomo packages for OpenWrt.
- Switch for Transparent Proxy
- Switch for Router Proxy
- Support Access Control
- Support Profile Mixin (Not completed yet)
- Support Subscribe and File
- Support Scheduled Restart
See WiKi (Under construction).
- Download dependency files if need.
- Get mixin config.
- Mixin and Update profile.
- Run mihomo.
- Hijack dns packet to mihomo (router and lan, use redirect).
- Hijack tcp/udp packet to mihomo (router and lan, both tcp and udp are use tproxy).
- Skip wan ip inbound
- Skip firewall rule/redirect config
- Skip upnp leases if you enabled upnp
- Add cron for scheduled restart
Note that the steps above will change or not execute if some config/condition are not satisfied.
# 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
.