This repository is the clash package based on Dreamacro/clash for Openwrt.
- If you want to run clash as a non-root user, please install
procd-ujail
. - If you want to setup transparent proxy on the gateway, please install
procd-ujail
andiptables-mod-extra
.
- Most of the features of open-source clash core are supported
- Transparent proxy support
- Forwarding DNS query to clash core
- (Optional) Clash geoip support
- (Optional) Clash dashboard support
- First, You should download the Openwrt Source Code or SDK as the basic enviroment to build the package.
$ git clone https://github.com/openwrt/openwrt
$ cd openwrt
or download Openwrt SDK from https://downloads.openwrt.org/
$ tar -Jxvf openwrt-sdk_*.tar.xz
$ cd openwrt-sdk_*
- Prepare build environment
$ ./scripts/feeds update -a
$ ./scripts/feeds install -a
$ git clone https://github.com/chandelures/openwrt-clash package/openwrt-clash
- Choose clash as a module or built-in module
$ make menuconfig
Network --->
<M> clash
Clash Configuration --->
[*] Include Country.mmdb
< > clash-dashboard
- Build packages
$ make package/openwrt-clash/{clean,compile} V=s
If any download errors occurred, please try to run export GOPROXY=https://goproxy.io
before building.