跳转至

OpenClash

OpenClash 是基于 Clash 核心的 OpenWrt 代理工具,提供了友好的 Web 界面和强大的规则管理功能。本教程将详细介绍如何在 OpenWrt 系统上安装和配置 OpenClash。

官方开源项目地址:https://github.com/vernesong/OpenClash,截止 2025年08月11日,最新版为:luci-app-openclash_0.46.137_all.ipk

方法一:通过 opkg 安装(推荐)

更新软件包列表

Bash
opkg update

卸载 dnsmasq

Bash
opkg remove dnsmasq
mv /etc/config/dhcp /etc/config/dhcp.bak

依赖安装

Bash
opkg install shell iptables dnsmasq-full curl ca-bundle ipset ip-full iptables-mod-tproxy iptables-mod-extra ruby ruby-yaml kmod-tun kmod-inet-diag unzip luci-compat luci luci-base

下载 OpenClash 安装包

访问 OpenClash Releases 页面,下载对应的 ipk 文件, 传到 OpenWrt 里面。

Bash
# 下载最新版本
cd /tmp
wget https://github.com/vernesong/OpenClash/releases/download/v0.46.137/luci-app-openclash_0.46.137_all.ipk

提示

可使用多种方法下载,陈大剩这里使用的 wget,如无法访问 GitHub,国内可设置 稳定的 DNS

安装 OpenClash

Bash
opkg install luci-app-openclash_0.46.137_all.ipk
安装看到如下提示,则为安装成功
Bash
Installing luci-app-openclash (0.46.137) to root...
Configuring luci-app-openclash.
成功后重启 OpenWrt,【服务】菜单下可以找到 OpenClash
Bash
reboot

方法二:手动编译安装

手动编译安装稍微复杂点,不建议此方式安装。

克隆源码

Bash
git clone https://github.com/vernesong/OpenClash.git package/luci-app-openclash

编译

Bash
make package/luci-app-openclash/compile V=s

初始配置

安装成功后,在 OpenWrt 的控制面板里面的【服务】菜单下可以找到 OpenClash,安装内核,后面的自由发挥。 OpenClash


创建日期: 2025年7月22日 最后更新: 2025年8月12日