# OpenWrt-nikki **Repository Path**: jackiewuu/OpenWrt-nikki ## Basic Information - **Project Name**: OpenWrt-nikki - **Description**: OpenWrt-nikki 的非官方镜像,供作者个人在国内加速访问/下载使用;权威源 https://github.com/nikkinikki-org/OpenWrt-nikki - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-10-17 - **Last Updated**: 2026-10-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README > **⚠️ 本仓库是非官方镜像(作者个人自用)** > > 本仓库由 [jackiewuu](https://gitee.com/jackiewuu) 个人搭建,镜像上游项目 [nikkinikki-org/OpenWrt-nikki](https://github.com/nikkinikki-org/OpenWrt-nikki),与上游项目及其作者没有任何隶属关系。 > **本仓库仅用于作者本人在国内加速访问、下载本软件**,不面向公众提供服务,不承诺可用性、正确性与技术支持。 > 安装、使用文档、问题与 PR 请以上游仓库为准;本仓库不处理 issue。 > 代码版权归上游作者所有,许可证为 [GPL-3.0](LICENSE),`LICENSE` 文件原样保留。 > 除本 README 的这则说明与下方「本仓安装」小节外,`main` 分支内容与上游一致。 ![GitHub License](https://img.shields.io/github/license/nikkinikki-org/OpenWrt-nikki?style=for-the-badge&logo=github) ![GitHub Tag](https://img.shields.io/github/v/release/nikkinikki-org/OpenWrt-nikki?style=for-the-badge&logo=github) ![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/nikkinikki-org/OpenWrt-nikki/total?style=for-the-badge&logo=github) ![GitHub Repo stars](https://img.shields.io/github/stars/nikkinikki-org/OpenWrt-nikki?style=for-the-badge&logo=github) [![Telegram](https://img.shields.io/badge/Telegram-gray?style=for-the-badge&logo=telegram)](https://t.me/nikkinikki_org) 中文 | [English](README.md) # Nikki 在 OpenWrt 上使用 Mihomo 进行透明代理。 ## 环境要求 - OpenWrt >= 24.10 - Linux Kernel >= 5.13 - firewall4 ## 功能 - 透明代理 (Redirect/TPROXY/TUN, IPv4 和/或 IPv6) - 访问控制 - 配置文件混入 - 配置文件编辑器 - 定时重启 ## 安装和更新 ### 本仓安装(仅 x86_64) 本仓库提供两条走 `gitee.com` 的安装通道,**都只支持 x86_64**;请按设备固件选一条(24.10 用 opkg、25.12 起改用 apk,两种包互不通用): **OpenWrt / ImmortalWrt 24.10(opkg)** —— 同仓 `gitee-feed` 分支: ```sh wget -O - https://gitee.com/jackiewuu/OpenWrt-nikki/raw/gitee-feed/install-gitee.sh | ash ``` **OpenWrt / ImmortalWrt 25.12(apk)** —— 同仓 `gitee-feed-apk` 分支: ```sh wget -O - https://gitee.com/jackiewuu/OpenWrt-nikki/raw/gitee-feed-apk/install-gitee-apk.sh | ash ``` 其它架构与 SNAPSHOT 请使用上游方式(需能访问 GitHub)。 ### A. 从软件源安装(推荐) 1. 添加源 ```shell # 只需运行一次 wget -O - https://github.com/nikkinikki-org/OpenWrt-nikki/raw/refs/heads/main/feed.sh | ash ``` 2. 安装 ```shell # 你可以从 shell 执行命令安装或者从 LuCI 的`软件包`菜单安装 # for opkg opkg install nikki opkg install luci-app-nikki opkg install luci-i18n-nikki-zh-cn # for apk apk add nikki apk add luci-app-nikki apk add luci-i18n-nikki-zh-cn ``` ### B. 从发行版安装 ```shell wget -O - https://github.com/nikkinikki-org/OpenWrt-nikki/raw/refs/heads/main/install.sh | ash ``` ## 卸载并重置 ```shell wget -O - https://github.com/nikkinikki-org/OpenWrt-nikki/raw/refs/heads/main/uninstall.sh | ash ``` ## 如何使用 查看 [Wiki](https://github.com/nikkinikki-org/OpenWrt-nikki/wiki) ## 如何工作 1. 混入并更新配置文件。 2. 启动 Mihomo。 3. 设置定时重启。 4. 配置 IP 规则/路由。 5. 生成防火墙配置并应用。 注意上述步骤可能因配置而变动。 ## 编译 ```shell # 添加源 echo "src-git nikki https://github.com/nikkinikki-org/OpenWrt-nikki.git;main" >> "feeds.conf.default" # 更新并安装源 ./scripts/feeds update -a ./scripts/feeds install -a # 编译 make package/luci-app-nikki/compile ``` 编译结果可以在`bin/packages/your_architecture/nikki`内找到。 ## 依赖 - ca-bundle - curl - yq - firewall4 - ip-full - kmod-inet-diag - kmod-nft-socket - kmod-nft-tproxy - kmod-tun - kmod-dummy ## 贡献者 [![贡献者](https://contrib.rocks/image?repo=nikkinikki-org/OpenWrt-nikki)](https://github.com/nikkinikki-org/OpenWrt-nikki/graphs/contributors) ## 特别感谢 - [@ApoisL](https://github.com/apoiston) - [@xishang0128](https://github.com/xishang0128)