Home

Awesome

<h1 align="center"> <img src="https://raw.githubusercontent.com/vernesong/OpenClash/dev/img/logo.png" alt="Clash" width="200"> <br>OpenClash<br> </h1> <p align="center"> <a target="_blank" href="https://github.com/Dreamacro/clash/releases/tag/v1.13.0"> <img src="https://img.shields.io/badge/Clash-v1.13.0-blue.svg"> </a> </p> <p align="center"> 本插件是一个可运行在 OpenWrt 上的<a href="https://github.com/Dreamacro/clash" target="_blank"> Clash </a>客户端 </p> <p align="center"> 兼容 Shadowsocks、ShadowsocksR、Vmess、Trojan、Snell 等协议,根据灵活的规则配置实现策略代理 </p> <p align="center"> - 感谢<a href="https://github.com/frainzy1477" target="_blank"> frainzy1477 </a>,本插件基于<a href="https://github.com/frainzy1477/luci-app-clash" target="_blank"> Luci For Clash </a>进行二次开发 - </p>

使用手册

下载地址

依赖

编译

从 OpenWrt 的 SDK 编译

# 解压下载好的 SDK
curl -SLk --connect-timeout 30 --retry 2 "https://archive.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/OpenWrt-SDK-15.05.1-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2" -o "/tmp/SDK.tar.bz2"
cd \tmp
tar xjf SDK.tar.bz2
cd OpenWrt-SDK-15.05.1-*

# Clone 项目
mkdir package/luci-app-openclash
cd package/luci-app-openclash
git init
git remote add -f origin https://github.com/vernesong/OpenClash.git
git config core.sparsecheckout true
echo "luci-app-openclash" >> .git/info/sparse-checkout
git pull --depth 1 origin master
git branch --set-upstream-to=origin/master master

# 编译 po2lmo (如果有po2lmo可跳过)
pushd luci-app-openclash/tools/po2lmo
make && sudo make install
popd

# 开始编译

# 先回退到SDK主目录
cd ../..
make package/luci-app-openclash/luci-app-openclash/compile V=99

# IPK文件位置
./bin/ar71xx/packages/base/luci-app-openclash_*-beta_all.ipk
# 同步源码
cd package/luci-app-openclash/luci-app-openclash
git pull

# 您也可以直接拷贝 `luci-app-openclash` 文件夹至其他 `OpenWrt` 项目的 `Package` 目录下随固件编译

make menuconfig
# 选择要编译的包 LuCI -> Applications -> luci-app-openclash

许可

请作者喝杯咖啡

<p align="left"> <a href="https://ko-fi.com/vernesong"><img width="300" src="https://www.ko-fi.com/img/githubbutton_sm.svg"> </a> </p> <p align="left"> <img width="300" src="https://github.com/vernesong/OpenClash/raw/master/img/USDT-Wallet.png"> </p> <p align="left"> <img width="300" src="https://github.com/vernesong/OpenClash/raw/master/img/BTC-Wallet.png"> </p> <p align="left"> <img width="300" src="https://github.com/vernesong/OpenClash/raw/master/img/ETH-Wallet.png"> </p>

预览

<p align="center"> <img src="https://github.com/vernesong/OpenClash/raw/master/img/state.png"> </p> <p align="center"> <img src="https://github.com/vernesong/OpenClash/raw/master/img/settings.png"> </p> <p align="center"> <img src="https://github.com/vernesong/OpenClash/raw/master/img/servers.png"> </p> <p align="center"> <img src="https://github.com/vernesong/OpenClash/raw/master/img/game-settings.png"> </p> <p align="center"> <img src="https://github.com/vernesong/OpenClash/raw/master/img/config-subscribe.png"> </p> <p align="center"> <img src="https://github.com/vernesong/OpenClash/raw/master/img/config.png"> </p> <p align="center"> <img src="https://github.com/vernesong/OpenClash/raw/master/img/log.png"> </p>