Transparent Proxy with Mihomo on OpenWrt.
Warning
- Only support firewall4, it means your OpenWrt version needs to be 22.03 or above
- Transparent Proxy (TPROXY/TUN, IPv4 and/or IPv6)
- Access Control
- Compatible with Multiple WAN
- Profile Mixin
- Profile Editor
- Scheduled Restart
curl -s -L https://mirror.ghproxy.com/https://raw.githubusercontent.com/morytyann/OpenWrt-mihomo/main/install.sh | ash
See Wiki
- Mixin and Update profile.
- Run mihomo.
- Run hijack prepare script.
- Add router hijack.
- Add lan hijack with access control.
- Set scheduled restart.
Note that the steps above may change base on config.
# add feed
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
- yq
- firewall4
- kmod-nft-tproxy
- ip-full
- kmod-tun