OpenClash on OpenWrt

本帖最後由 张无忌 於 2026-2-28 05:31 編輯

OpenClash 本身出自大陆,像 PassWall 一样,由于我本身不太熟悉 OpenClash,所以一步一般来。OpenClash 的资料中,[1] 能给出详细资料,在 [2],只有 OpenClash 最有用 [3]。想起  OpenClash,就像我开 GL-MT6000 一样,慢慢就把 OpenClash 结合起来;有些人说先安装 PassWall,然后安装 OpenClash,可以这样安装畅顺,但是什么原因?

References:
[1] OpenClash 设置方案
[2] What is Clash?
[3] https://github.com/vernesong/OpenClash/releases

TOP

本帖最後由 张无忌 於 2026-4-21 13:36 編輯

OpenClash on OpenWrt
GL-MT6000 OpenWrt 24.10.6(CPU % Load Avg %)
GL-MT3000 OpenWrt 24.10.6(load avg 12% - 62%)
Cudy TR3000 256MB v1 24.10.6(load avg 46% - 61%)
OpenClash v0.47.046 -->v0.47.088

以前都是安装 PassWall 比较多,如果 OpenClash 就是很少,主要不知道怎样安装,现在有了他的源码 [1],发现安装很方便。OpenClash 主要在大陆科学上网用,在香港是什么用,我暂时不知道,如果你们知道告知。

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. Download openclash.ipk
  1. wget -O /tmp/openclash.ipk https://github.com/vernesong/OpenClash/releases/download/v0.47.046/luci-app-openclash_0.47.046_all.ipk
複製代碼
..

D. 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
  4. opkg install /tmp/openclash.ipk
複製代碼
..

E. 安装机场

图1:LuCI 里选 Service -> OpenClash


图2:按 "确定"


图3:选一个比较低


图4:选 "Server Logs",直至有 "Error: Config Not Found"


图5:在 OpenClash,选 Overviews 上半部


图6:Overviews 下半部,选 Add Config File


图7:Add Config 画面,选 Subscribe Link


图8:输入机场 URL,然后点击 Add Config


图9:点击 "确定"


图10:Overviews 上半部


图11:Overviews 下半部


图12:Logout and re-enter login


Reference:
[1] vernesong / OpenClash


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

TOP

本帖最後由 张无忌 於 2026-4-11 05:40 編輯

OpenClash 初步效果

2026-02-28
GL.iNet GL-TM6000 4.8.3(21.02),OpenClash 0.47.055

1. 用行中突然香港机场不能工作,自动换了台湾机场,原先 YouTube 要自己 refresh 一下,才能工作。
2. 第二天测试,去 HKEPC 看,要进几秒才能完成,而且 GL.iNet AdGuard Home 不能工作,reboot 都不行。GL.iNet AdGuard Home 可能 DHCP and DNS forward 用 127.0.0.1#5353 有冲突。
3. 改用 家里 OpenWrt(24.10.5) PassWall(Cudy TR3000 256MB v1)就没有问题。
4. 现在 Home PassWall off,用  subnet GL-TM6000(21.02) PassWall(26.1.13)[1],就好,AdGuard Home 也 OK。

Reference:
[1] PassWall on GL.iNet(悟空)


目录 OpenClash on OpenWrt

TOP

本帖最後由 张无忌 於 2026-4-11 05:42 編輯

用了新版OpenClash,简便使用教程让你得心应手
https://www.youtube.com/watch?v=QNf8mQ9ZsAo

#################


Reference:
[1] 老牌机场牧牛云携V-Ninja协议强势回归-稳定高速的科学上网新选择!

TOP

本帖最後由 张无忌 於 2026-4-19 13:23 編輯

OpenClash on GL.iNet
GL-MT6000(21.02)4.8.4 check
GL-MT5000(21.02)4.8.5 check
GL-MT3000(21.02)4.8.1 ok
GL-MT3600BE(21.02)4.8.7 check
GL-BE6500(23.05)4.8.7 ok
GL-BE3600(23.05)4.8.3 ok
OpenClash 0.47.055 --> 0.47.088

/etc/opkg/distfeeds.conf,com -> cn
  1. src/gz glinet_core https://fw.gl-inet.cn/releases/v21.02.3/kmod-4.2.1/aarch64_cortex-a53/mediatek/mt7981
  2. src/gz glinet_gli_pub https://fw.gl-inet.cn/releases/v21.02.3/packages-4.0/aarch64_cortex-a53/glinet
  3. src/gz glinet_gli_packages https://fw.gl-inet.cn/releases/v21.02.3/packages-4.0/aarch64_cortex-a53/packages
複製代碼
..

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
複製代碼
..

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

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
  4. opkg install /tmp/openclash.ipk
複製代碼
..

OpenClash 自动更新到 0.47.071(GL-BE3600)。

Ignore error
Collected errors:
* opkg_install_cmd: Cannot install package kmod-nft-tproxy.

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


目录 OpenClash on OpenWrt

TOP

本帖最後由 张无忌 於 2026-4-17 13:01 編輯

OpenClash on GL.iNet(ImmortalWrt)
GL-MT6000(21.02)4.8.4 check
GL-MT5000(21.02)4.8.5 check
GL-MT3000(21.02)4.8.1 check
GL-MT3600BE(21.02)4.8.7 check
GL-BE6500(23.05)4.8.7
GL-BE3600(23.05)4.8.3

GL-BE6500,GL-BE3600,/etc/opkg.conf added
  1. arch all 1
  2. arch noarch 1
  3. arch aarch64_cortex-a53 5
  4. arch aarch64_cortex-a53_neon-vfpv4 10
複製代碼
..

GL-BE6500,GL-BE3600,加第三特殊插件 ImmortalWrt method,/etc/opkg/customfeeds.conf
  1. src/gz base https://mirrors.vsean.net/openwrt/releases/23.05.6/packages/aarch64_cortex-a53/base
  2. src/gz luci https://mirrors.vsean.net/openwrt/releases/23.05.6/packages/aarch64_cortex-a53/luci
  3. src/gz packages https://mirrors.vsean.net/openwrt/releases/23.05.6/packages/aarch64_cortex-a53/packages
  4. src/gz routing https://mirrors.vsean.net/openwrt/releases/23.05.6/packages/aarch64_cortex-a53/routing
  5. src/gz telephony https://mirrors.vsean.net/openwrt/releases/23.05.6/packages/aarch64_cortex-a53/telephony
複製代碼
..

加第三特殊插件 ImmortalWrt method,/etc/opkg/customfeeds.conf
  1. src/gz base https://mirrors.vsean.net/openwrt/releases/21.02.7/packages/aarch64_cortex-a53/base
  2. src/gz luci https://mirrors.vsean.net/openwrt/releases/21.02.7/packages/aarch64_cortex-a53/luci
  3. src/gz packages https://mirrors.vsean.net/openwrt/releases/21.02.7/packages/aarch64_cortex-a53/packages
  4. src/gz routing https://mirrors.vsean.net/openwrt/releases/21.02.7/packages/aarch64_cortex-a53/routing
  5. src/gz telephony https://mirrors.vsean.net/openwrt/releases/21.02.7/packages/aarch64_cortex-a53/telephony
複製代碼
..

Install
  1. opkg update
  2. opkg install luci-app-openclash
複製代碼
..

自动升级到最新版 0.47.071(GL-BE3600)。


目录 OpenClash on OpenWrt

TOP

本帖最後由 321 於 2026-2-27 12:24 編輯

想問下openclash同clash是不是同一種東西?我買了一個二手5G router,瑞展芯片方案並不是openwrt系統,發現內置clash,但由於重來沒有用過clash,所以還沒有入手研究該功能

TOP

Clash 是底层,OpenClash 是 Clash 上面的 web UI。

你的 5G router 有 Clash,理应有 web UI,不知道怎样用 Clash?我对 OpenClash 有兴趣,主要它可以与 MikroTik container 用,但是现在都不知道怎了连。

TOP

本帖最後由 张无忌 於 2026-4-17 13:04 編輯

OpenClash on GL.iNet op24 + k9
GL.iNet GL-MT6000(24.10.4)4.8.3-op24 ?
GL.iNet GL-MT3000(24.10.4)4.8.x-op24 check
OpenClash

kiddin9 method

大陆安装 OPKG Configuration
/etc/opkg/customfeeds.conf
  1. # add your custom package feeds here
  2. #
  3. # src/gz example_feed_name http://www.example.com/path/to/files
  4. src/gz openwrt_kiddin9 https://dl.openwrt.ai/latest/packages/aarch64_cortex-a53/kiddin9
複製代碼
..

/etc/opkg/distfeeds.conf
  1. src/gz core https://fw.gl-inet.cn/releases/v24.x/24.10.4/mediatek/filogic
  2. src/gz base https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/24.10.4/packages/aarch64_cortex-a53/base
  3. src/gz luci https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/24.10.4/packages/aarch64_cortex-a53/luci
  4. src/gz packages https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/24.10.4/packages/aarch64_cortex-a53/packages
  5. src/gz routing https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/24.10.4/packages/aarch64_cortex-a53/routing
  6. src/gz telephony https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/24.10.4/packages/aarch64_cortex-a53/telephony
複製代碼
..

Test Native OpenWrt 24 version:kiddin9
  1. opkg update
  2. opkg install luci-app-openclash
複製代碼
..


目录 OpenClash on OpenWrt

TOP