本帖最後由 张无忌 於 2026-9-8 00:06 編輯

NinjaRouter on OpenWrt opkg 安装和使用

之前只能用 ImmortalWrt 安装 NanjiRouter,用 OpenWrt 不行,没有 Services --> NanjaRouter,主要原因没有 setup 好给 OpenClash 安装。在 [1] 里,v0.47.071 有类似下面 Section C 的 codes,下面在 OpenWrt 24.10.8 opkg version 安装。

安装程序:
A. 大陆安装 OpenWrt repository server,在香港安装不用
  1. sed -i 's_https\?://downloads.openwrt.org_https://mirrors.tuna.tsinghua.edu.cn/openwrt_' /etc/opkg/distfeeds.conf
複製代碼
..

B. dnsmasq 改变到 dnsmasq-full
  1. opkg update
  2. opkg remove dnsmasq && opkg install dnsmasq-full
複製代碼
..

C. Install others
  1. #nftables
  2. opkg update
  3. opkg install bash dnsmasq-full curl ca-bundle ip-full ruby ruby-yaml kmod-tun kmod-inet-diag unzip kmod-nft-tproxy luci-compat luci luci-base
複製代碼
..

D. Install NinjaRouter
  1. opkg install ninjadesktop-lite_0.1.13_all-aarch64.ipk
複製代碼
..

图 1:NinjaRouter on OpenWrt opkg


使用程序:
使用方法跟 ImmortalWrt 一样 [3]。


References:
[1] https://github.com/vernesong/OpenClash/releases/
[2] NinjaRouter 安装
[3] NinjaRouter 使用

目录 OpenClash on OpenWrt
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

TOP

本帖最後由 张无忌 於 2026-9-7 23:47 編輯

Ninja luci-app-openclash-1.0.0 opkg and apk

这个 Ninja 2.0 version,跟 version 1.0 不同,这次改动比较好,Ninja(2.0) OpenClash 1.0.0 跟原版差不多,所以 opkg 有 luci-app-openclash_1.0.0-1_all.ipk、apk 有 luci-app-openclash-1.0.0-r1.apk,因为我经历过 Ninja 1.0 时代,那个时候从 shadowsocks 转 Ninja 1.0,现在我用标准的 OpenClash 作参考 [1, 2]。

OPKG version

A. 大陆安装 OpenWrt repository server,在香港安装不用
  1. sed -i 's_https\?://downloads.openwrt.org_https://mirrors.tuna.tsinghua.edu.cn/openwrt_' /etc/opkg/distfeeds.conf
複製代碼
..

B. dnsmasq 改变到 dnsmasq-full
  1. opkg update
  2. opkg remove dnsmasq && opkg install dnsmasq-full
複製代碼
..

C. Install others
  1. #nftables
  2. opkg update
  3. opkg install bash dnsmasq-full curl ca-bundle ip-full ruby ruby-yaml kmod-tun kmod-inet-diag unzip kmod-nft-tproxy luci-compat luci luci-base
複製代碼
..

D. 安装 luci-app-openclash_1.0.0-1_all.ipk
  1. opkg install luci-app-openclash_1.0.0-1_all.ipk
複製代碼
..

APK version

A. /etc/apk/repositories.d/distfeeds.list,大陆安装 OpenWrt repository server,在香港安装不用
  1. sed -i 's_https\?://downloads.openwrt.org_https://mirrors.tuna.tsinghua.edu.cn/openwrt_' /etc/apk/repositories.d/distfeeds.list
複製代碼
..

B. Install others
  1. #nftables
  2. apk update
  3. apk add bash dnsmasq-full curl ca-bundle ip-full ruby ruby-yaml kmod-tun kmod-inet-diag unzip kmod-nft-tproxy luci-compat luci luci-base
複製代碼
..

C. 安装 luci-app-openclash-1.0.0-r1.apk
  1. apk add --allow-untrusted  luci-app-openclash-1.0.0-r1.apk
複製代碼
..


References:
[1] https://github.com/vernesong/OpenClash/releases/
[2] NinjaRouter on OpenWrt opkg 安装和使用

目录 OpenClash on OpenWrt

TOP

本帖最後由 张无忌 於 2026-9-8 21:15 編輯

Ninja 2.0 on OpenWrt router
OPKG OpenWrt 24.10.8
APK OpenWrt 25.12.5
GL-MT6000 opkg/apk OK
GL-MT3000 opkg/apk OK
GL-MT3600BE apk only
Cudy TR3000 256MB v1(pending)

以前的 Ninja 1.0 已经成为 Ninja 2.0,以前只有 ImmortalWrt 可以安装 NinjaRouter only,其他 packages 都不能安装在 ImmortalWrt!现在依据标准 OpenClash 安装,只要不安装 OpenClash(OPKG——opkg install /tmp/openclash.ipk,APK——apk add -q --force-overwrite --clean-protected --allow-untrusted /tmp/openclash.apk);那么整个系列都能安装于 OpenWrt and ImmortalWrt。

Table 1 可以看出只有 NinjaRouter 可以在 24.10.x OPKG 用,不能在 25.12.x APK 用。NinjaRouter 对我说都挺好的,在 router 里安装了 NinjaRouter,输入 E-mail and password 就搞定!!!不需要用梯子(PassWall、OpenClash、HomeProxy)+ 机场 URL。(其实 NinjaRouter 是 router 里面用,都是内装 OpenClash 内核,那么机场 URL 在哪里?就是你输入 E-mail and password + 选机场——牧牛、冲浪云、咖啡云,就自动输入机场 URL。)

Table 1: Nanja 2.0 on OPKG and APK
Item Router OPKG Router APK
NanjaRouter OK
luci-app-openclash_1.0.0-1_all.ipkOK
luci-app-ninjaconnector2_1.1.0-4_all.ipkOK
luci-app-openclash-1.0.0-r1.apk OK
luci-app-ninjaconnector2-1.1.0-r4.apk OK



目录 OpenClash on OpenWrt

TOP

Ninja 2.0 on GL.iNet router
GL-MT6000 4.9.1 all OK
GL-MT3600BE 4.9.0 all OK
GL-MT3000 4.9.0(all failed)
GL-MT5000 4.9.0 all OK
GL-BE6500 4.9.0 all OK
GL-BE3600 4.9.2 all OK

在大陆安装 OpenClash(mihomo 官方标准),需要有科学上网,如果没有就非常慢,可能不成功!!!那么很多 YouTube 都说要先有科学上网后,才安装 OpenClash 就快很多!!!为了方便我们采取 NinjaRouter,然后选择 1)Ninja OpenClash-1.0.0 或 2)mihomo 官方标准 OpenClash 加 ninjaconnector2。

GL-BE6500,GL-BE3600(23.05) Qualcomm 安装
/etc/opkg.conf add
  1. arch all 1
  2. arch noarch 1
  3. arch aarch64_cortex-a53 5
  4. arch aarch64_cortex-a53_neon-vfpv4 10
複製代碼
..

A. /etc/opkg/distfeeds.conf,com -> cn
  1. src/gz glinet_core https://fw.gl-inet.cn/releases/mt798x/kmod-4.5.7/aarch64_cortex-a53/mediatek/mt7986
  2. src/gz glinet_gli_pub https://fw.gl-inet.cn/releases/mt798x/packages-4.5/aarch64_cortex-a53/glinet
  3. src/gz glinet_gli_packages https://fw.gl-inet.cn/releases/mt798x/packages-4.5/aarch64_cortex-a53/packages
複製代碼
..

B. Install
  1. #nftables
  2. opkg update
  3. opkg install bash dnsmasq-full curl ca-bundle ip-full ruby ruby-yaml kmod-tun kmod-inet-diag unzip kmod-nft-tproxy luci-compat luci luci-base
複製代碼
..

C. Install NinjaRouter "ninjadesktop-lite_0.1.13_all-aarch64.ipk"
  1. opkg install ninjadesktop-lite_0.1.13_all-aarch64.ipk
複製代碼
..

一定把 NinjaRouter 测试好,才能继续进行 D,一定要 NinjaRouter running,不然进行 D 就非常慢。

D. Install "luci-app-openclash_1.0.0-1_all.ipk"
  1. opkg install luci-app-openclash_1.0.0-1_all.ipk
複製代碼
..

Or

E1. Install a
  1. wget https://github.com/vernesong/OpenClash/releases/download/v0.47.156/luci-app-openclash_0.47.156_all.ipk -O /tmp/openclash.ipk
複製代碼
..

E2. Install b
  1. opkg install /tmp/openclash.ipk
複製代碼
..

把标准的 OpenClash 安装好,再做下一步 E3。

E3. Install c——"luci-app-ninjaconnector2_1.1.0-4_all.ipk
  1. opkg install luci-app-ninjaconnector2_1.1.0-4_all.ipk
複製代碼
..


目录 OpenClash on OpenWrt

TOP

Ninja 2.0 on GL.iNet 4.9.x-op25
GL-MT6000 4.9.1 OK
GL-MT3000 4.9.1 OK

因为 4.9.x-op25 是 OpenWrt 25.12.5 APK 改良版 [1],而 Ninja 2.0 APK 只有两个 options,1)传统 OpenClash + Ninja 2.0 luci-app-ninjaconnector2-1.1.0-r4.apk,2)Ninja 2.0 luci-app-openclash-1.0.0-r1.apk。

A、/etc/apk/repositories.d/distfeeds.list,把 com --> cn
  1. https://fw.gl-inet.com/releases/v25.x/v25.12.5/mediatek/filogic/packages/packages.adb
  2. https://fw.gl-inet.com/releases/v25.x/v25.12.5/aarch64_cortex-a53/base/packages.adb
  3. https://fw.gl-inet.com/releases/v25.x/v25.12.5/aarch64_cortex-a53/luci/packages.adb
  4. https://fw.gl-inet.com/releases/v25.x/v25.12.5/aarch64_cortex-a53/packages/packages.adb
  5. https://fw.gl-inet.com/releases/v25.x/v25.12.5/aarch64_cortex-a53/routing/packages.adb
  6. https://fw.gl-inet.com/releases/v25.x/v25.12.5/aarch64_cortex-a53/telephony/packages.adb
  7. https://fw.gl-inet.com/releases/v25.x/v25.12.5/aarch64_cortex-a53/video/packages.adb
複製代碼
..

B、Install basics for OpenClash
  1. #nftables
  2. apk update
  3. apk add bash dnsmasq-full curl ca-bundle ip-full ruby ruby-yaml kmod-tun kmod-inet-diag unzip kmod-nft-tproxy luci-compat luci luci-base
複製代碼
..

Option 1: C1, C2, C3 for "传统 OpenClash + Ninja 2.0 luci-app-ninjaconnector2-1.1.0-r4.apk"
Option 2: D for "Ninja 2.0 luci-app-openclash-1.0.0-r1.apk"

C1、Get luci-app-openclash-0.47.156.apk
  1. wget -O /tmp/openclash.apk https://github.com/vernesong/OpenClash/releases/download/v0.47.156/luci-app-openclash-0.47.156.apk
複製代碼
..

C2、Install OpenClash
  1. apk add -q --force-overwrite --clean-protected --allow-untrusted /tmp/openclash.apk
複製代碼
..

Wait for C1 and C2 OK and then proceed to C3

C3、Install "luci-app-ninjaconnector2-1.1.0-r4.apk"
  1. apk add --allow-untrusted luci-app-ninjaconnector2-1.1.0-r4.apk
複製代碼
..

Or

D、Install "luci-app-openclash-1.0.0-r1.apk"
  1. apk add --allow-untrusted luci-app-openclash-1.0.0-r1.apk
複製代碼
..


[1] https://github.com/vernesong/OpenClash/releases

目录 OpenClash on OpenWrt

TOP

选单一个机场,还是组合机场

如果稳定机场可以一个就行,如果某个机场突然不行,只可以换机场,对于大陆选香港、美国机场,经常受 GFW 影响,对于老人家怎样换机场?答案是不会,只有找你去处理,你在香港可以用 Tailscale 或 ZeroTier 去这一 settings,所以很多人采取组合机场——OpenClash。

OpenClash 选机场,通常自动选,但是机场也好与坏不一样,我可以给你一个参考,用 Ninja 2.0,如果选用 NinjaRouter(OPKG version)里面有三个梯子、分别为:
1、牧牛 https://muniu.app/auth/login ¥20.8,90 GB/month,¥8,35 GB/week
2、冲浪云 https://surfcloud.cloud/#/login ¥20,200GB/month
3、咖啡云 https://aicoffee.app/#/login ¥12.5,100GB/month


目录 OpenClash on OpenWrt

TOP

本帖最後由 张无忌 於 2026-9-26 23:45 編輯

OpenClash add or delete 机场

我们知道加机场,但是不知道怎样除去机场,在下面有 Add 机场和 Delete 机场 steps。

A、Add 机场

1、Click "Add Config File"
2、Select "Subscribe Link"
3、Insert 机场 URL
4、Click "Add Config"
5、Put "On"

图 1:


B、Delete 机场

图 2:Move broswer to right "Config Manage"


图 3:Select "Remove" button


图 4:Press "Apply"


图 5:The Config File List is empty


图 6:No config files found



目录 OpenClash on OpenWrt
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

TOP