chandelures / openwrt-clash

Clash package for Openwrt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clash
Openwrt Clash

build

Description

This repository is the clash package based on Dreamacro/clash for Openwrt.

LuCI support is on the https://github.com/chandelures/luci-app-simple-clash.

Features

  • 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

Installation

Manual Install

  1. Update list of available packages
$ opkg update
  1. Choose correct .ipk based on the architecture of router from release page, and use Opkg package manager to install.
$ opkg install clash_*.ipk

Build From Source

  1. 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_*
  1. Prepare build environment
$ ./scripts/feeds update -a

$ ./scripts/feeds install -a

$ git clone https://github.com/chandelures/openwrt-clash package/openwrt-clash
  1. Choose clash as a module or built-in module
$ make menuconfig

Network  --->
    <M> clash
        Clash Configuration  --->
            [*] Include Country.mmdb
    < > clash-dashboard
  1. Build packages
$ make package/openwrt-clash/{clean,compile} V=s

About

Clash package for Openwrt


Languages

Language:Shell 41.5%Language:Lua 30.7%Language:Makefile 27.8%