Skip to content

A project contains mihomo packages for OpenWrt.

License

Notifications You must be signed in to change notification settings

premierePro0516/OpenWrt-mihomo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub License GitHub Actions Workflow Status GitHub Tag GitHub Downloads (all assets, all releases) GitHub Repo stars

MihomoTProxy

Transparent Proxy with Mihomo on OpenWrt.

Warning

  • Only support firewall4, it means your OpenWrt version needs to be 22.03 or above

Feature

  • Transparent Proxy (TPROXY/TUN, IPv4 and/or IPv6)
  • Access Control
  • Compatible with Multiple WAN
  • Profile Mixin
  • Profile Editor
  • Scheduled Restart

Install & Update

curl -s -L https://mirror.ghproxy.com/https://raw.githubusercontent.com/morytyann/OpenWrt-mihomo/main/install.sh | ash

Uninstall & Reset

curl -s -L https://mirror.ghproxy.com/https://raw.githubusercontent.com/morytyann/OpenWrt-mihomo/main/uninstall.sh | ash

How To Use

See Wiki

How does it work

  1. Mixin and Update profile.
  2. Run mihomo.
  3. Run hijack prepare script.
  4. Add router hijack.
  5. Add lan hijack with access control.
  6. Set scheduled restart.

Note that the steps above may change base on config.

Compilation

# 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.

Dependencies

  • ca-bundle
  • curl
  • yq
  • firewall4
  • kmod-nft-tproxy
  • ip-full
  • kmod-tun

About

A project contains mihomo packages for OpenWrt.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 47.5%
  • JavaScript 46.7%
  • Makefile 5.8%