https://github.com/douglarek/mihomo-openwrt
一个专为 OpenWrt 及其衍生产品设计的 Mihomo(以前叫 Clash Meta )原生构建版本,不包含灵车脚本。A native build of Mihomo(Previously known as Clash Meta) designed specifically for OpenWrt and its derivatives without hearse scripts.
https://github.com/douglarek/mihomo-openwrt
clash clashmeta homeproxy immortalwrt mihomo openclash openwrt passwall
Last synced: 30 days ago
JSON representation
一个专为 OpenWrt 及其衍生产品设计的 Mihomo(以前叫 Clash Meta )原生构建版本,不包含灵车脚本。A native build of Mihomo(Previously known as Clash Meta) designed specifically for OpenWrt and its derivatives without hearse scripts.
- Host: GitHub
- URL: https://github.com/douglarek/mihomo-openwrt
- Owner: douglarek
- License: mit
- Created: 2024-07-20T02:13:41.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-03-07T10:31:36.000Z (2 months ago)
- Last Synced: 2025-04-18T21:25:04.553Z (about 1 month ago)
- Topics: clash, clashmeta, homeproxy, immortalwrt, mihomo, openclash, openwrt, passwall
- Language: Makefile
- Homepage:
- Size: 49.8 KB
- Stars: 38
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mihomo-OpenWrt
A native build of [Mihomo](https://github.com/MetaCubeX/mihomo) designed specifically for OpenWrt and its derivatives without hearse scripts.
## Prerequisites
* OpenWrt/ImmortalWrt 23.05+
## Basic Requirements
To effectively use, you should have:
* Basic knowledge of OpenWrt
* Proficiency in using the OpenWrt terminal
* Familiarity with basic [Mihomo configuration](https://wiki.metacubex.one/en/config/)## Configuration
Utilizes the `auto-redirect` feature introduced in Mihomo:
```yaml
tun:
enable: true
stack: mixed
dns-hijack:
- "any:53"
auto-route: true
auto-redirect: true # Key configuration
auto-detect-interface: true
```Before packaging this project, I explored some usage methods, which can be referenced [here](https://gist.github.com/douglarek/99fb8d7f30fac2a6d2e9a32a47296e30) . It might be helpful.
## Download
You can download the latest release [here](https://github.com/douglarek/vanilla-mihomo/releases). Don't worry about the release time, it will always be the latest.
#### Install
> [!IMPORTANT]
> Starting from November 2024, OpenWrt will use the apk package manager by default. Sorry, this project will only support building APK packages and will no longer support IPK.```
$ apk add mihomo-1.18.10-r1_aarch64_generic.apk --allow-untrusted
(1/4) Installing kmod-inet-diag (6.6.60-r1)
Executing kmod-inet-diag-6.6.60-r1.post-install
(2/4) Installing kmod-netlink-diag (6.6.60-r1)
Executing kmod-netlink-diag-6.6.60-r1.post-install
(3/4) Installing kmod-tun (6.6.60-r1)
Executing kmod-tun-6.6.60-r1.post-install
(4/4) Installing mihomo (1.18.10-r1)
Executing mihomo-1.18.10-r1.post-install
OK: 222 MiB in 241 packages
```The APK package manager will automatically install the corresponding kernel module dependencies.