Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/morytyann/OpenWrt-mihomo
https://github.com/morytyann/OpenWrt-mihomo
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/morytyann/OpenWrt-mihomo
- Owner: morytyann
- Created: 2024-05-11T08:59:35.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-23T02:03:15.000Z (6 months ago)
- Last Synced: 2024-05-23T07:44:58.270Z (6 months ago)
- Language: Shell
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![GitHub License](https://img.shields.io/github/license/morytyann/OpenWrt-mihomo?style=for-the-badge) ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/morytyann/OpenWrt-mihomo/release.yaml?style=for-the-badge&label=release) ![GitHub Tag](https://img.shields.io/github/v/tag/morytyann/OpenWrt-mihomo?style=for-the-badge) ![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/morytyann/OpenWrt-mihomo/total?style=for-the-badge) ![GitHub Repo stars](https://img.shields.io/github/stars/morytyann/OpenWrt-mihomo?style=for-the-badge)
# MihomoTProxy
Transparent Proxy with Mihomo on OpenWrt.
## Feature
- Transparent Proxy (TPROXY/TUN, IPv4 and/or IPv6)
- Access Control
- Compatible with Multiple WAN
- Profile Mixin
- Profile Editor
- Scheduled Restart## Usage
See [Wiki](https://github.com/morytyann/OpenWrt-mihomo/wiki)
## How does it work
1. Mixin and Update profile.
2. Run mihomo.
3. Run hijack prepare script.
4. Add exclusions. (wan/wan6 inbound)
5. Add router hijack.
6. Add lan hijack with access control.
7. Set scheduled restart.Note that the steps above may change base on config.
## Compilation
```shell
# 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## Warning
- Only support firewall4 and will never support firewall3