GithubHelp home page GithubHelp logo

sau1g0dman / openclash Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vernesong/openclash

0.0 0.0 0.0 21.4 GB

A Clash Client For OpenWrt

License: MIT License

Shell 32.52% JavaScript 31.51% Ruby 0.01% C 0.75% Lua 20.19% CSS 1.22% Makefile 0.48% HTML 13.33%

openclash's Introduction

Clash
OpenClash

本插件是一个可运行在 OpenWrt 上的 Clash 客户端

兼容 Shadowsocks、ShadowsocksR、Vmess、Trojan、Snell 等协议,根据灵活的规则配置实现策略代理

- 感谢 frainzy1477 ,本插件基于 Luci For Clash 进行二次开发 -

使用手册

下载地址

依赖

  • luci
  • luci-base
  • dnsmasq-full
  • coreutils
  • coreutils-nohup
  • bash
  • curl
  • ca-certificates
  • ipset
  • ip-full
  • libcap
  • libcap-bin
  • ruby
  • ruby-yaml
  • unzip
  • iptables(iptables)
  • kmod-ipt-nat(iptables)
  • iptables-mod-tproxy(iptables)
  • iptables-mod-extra(iptables)
  • kmod-tun(TUN模式)
  • luci-compat(Luci >= 19.07)
  • ip6tables-mod-nat(iptables-ipv6)
  • kmod-inet-diag(PROCESS-NAME)
  • kmod-nft-tproxy(Firewall4)

编译

从 OpenWrt 的 SDK 编译

# 解压下载好的 SDK
tar xjf OpenWrt-SDK-ar71xx-generic_gcc-5.3.0_musl-1.1.16.Linux-x86_64.tar.bz2
cd OpenWrt-SDK-ar71xx-*

# 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_0.39.7-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

许可

请作者喝杯咖啡

  • PayPal

  • USDT-TRC20

  • 比特币-BTC

  • 以太币-ETH

预览

  • 运行状态

  • 全局设置

  • 服务器&策略组

  • 规则&策略组

  • 配置文件订阅

  • 配置文件管理

  • 运行日志

openclash's People

Contributors

vernesong avatar github-actions[bot] avatar septrum101 avatar zxlhhyccc avatar msylgj avatar ohsc avatar yangliu avatar 1715173329 avatar iprofessorz avatar metco2 avatar adminidor avatar r3pl4c3r avatar alecthw avatar newrichard avatar kooritea avatar tioachan avatar ekkog avatar cnsilvan avatar sukkaw avatar oldtaoge avatar tete1030 avatar ttimasdf avatar wey-gu avatar xinsss avatar hill-98 avatar a76yyyy avatar cnzgray avatar imy7 avatar nameless3721 avatar paladin4fan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.