├── LICENSE ├── Makefile ├── README.md └── file └── core_version /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 frainzy1477 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | include $(TOPDIR)/rules.mk 2 | 3 | PKG_NAME:=clash 4 | PKG_VERSION:=0.16.3 5 | PKG_MAINTAINER:=frainzy1477 6 | 7 | ifeq ($(ARCH),mipsel) 8 | PKG_ARCH:=mipsle 9 | PKG_SOURCE:=clash-linux-$(PKG_ARCH)-softfloat-v$(PKG_VERSION).gz 10 | endif 11 | ifeq ($(ARCH),mips) 12 | PKG_ARCH:=mips 13 | PKG_SOURCE:=clash-linux-$(PKG_ARCH)-softfloat-v$(PKG_VERSION).gz 14 | endif 15 | ifeq ($(ARCH),x86_64) 16 | PKG_ARCH:=amd64 17 | PKG_SOURCE:=clash-linux-$(PKG_ARCH)-v$(PKG_VERSION).gz 18 | endif 19 | ifeq ($(ARCH),arm) 20 | PKG_ARCH:=armv7 21 | PKG_SOURCE:=clash-linux-$(PKG_ARCH)-v$(PKG_VERSION).gz 22 | endif 23 | ifeq ($(ARCH),aarch64) 24 | PKG_ARCH:=armv8 25 | PKG_SOURCE:=clash-linux-$(PKG_ARCH)-v$(PKG_VERSION).gz 26 | endif 27 | 28 | 29 | PKG_SOURCE_URL:=https://github.com/frainzy1477/clash_dev/releases/download/v$(PKG_VERSION)/ 30 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 31 | PKG_HASH:=skip 32 | 33 | include $(INCLUDE_DIR)/package.mk 34 | 35 | define Package/$(PKG_NAME) 36 | SECTION:=luci 37 | CATEGORY:=LuCI 38 | SUBMENU:=2. Clash 39 | TITLE:=clash is a cross-platform proxy software 40 | DEPENDS:= 41 | URL:=https://github.com/frainzy1477/clash_dev 42 | endef 43 | 44 | define Package/$(PKG_NAME)/description 45 | clash is a cross-platform proxy software 46 | endef 47 | 48 | define Build/Prepare 49 | gzip -dc "$(DL_DIR)/$(PKG_SOURCE)" > $(PKG_BUILD_DIR)/clash-linux-$(PKG_ARCH) 50 | endef 51 | 52 | define Build/Compile 53 | endef 54 | 55 | define Package/$(PKG_NAME)/install 56 | $(INSTALL_DIR) $(1)/etc/clash 57 | $(INSTALL_DIR) $(1)/usr/share/clash 58 | 59 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/clash-linux-$(PKG_ARCH) $(1)/etc/clash/clash 60 | $(INSTALL_BIN) ./file/core_version $(1)/usr/share/clash/ 61 | endef 62 | 63 | 64 | $(eval $(call BuildPackage,$(PKG_NAME))) 65 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | Clash 3 |
Clash for OpenWrt
4 | 5 |

6 | 7 |

8 | A rule based custom proxy for Openwrt based on Clash. 9 |

10 |

11 | 12 | 13 | 14 | 15 |

16 | 17 | ## Usage 18 | 19 | - Download and install clash ipk for openwrt [Download Clash ipk](https://github.com/frainzy1477/clash/releases/tag/v0.16.7) . 20 | 21 | - cd /tmp 22 | 23 | - opkg install clash_0.16.5_x86_64.ipk 24 | 25 | 26 | 27 | ## Features 28 | 29 | - HTTP/HTTPS and SOCKS protocol 30 | - Surge like configuration 31 | - GeoIP rule support 32 | - Support Vmess/Shadowsocks/Socks5 33 | - Support for Netfilter TCP redirect 34 | - Support Shadowsocks-V2ray-plugin 35 | - Support Shadowsocks-Obfs-plugin 36 | - Support Custom Rule 37 | - Support fake-ip 38 | - logs and traffic API support websocket 39 | - support custom hosts (NOTE: if a host pointed to a local IP but pass through a proxy by rule, it won't use DIRECT) 40 | - support customizing bind-address when allow-lan is true 41 | - trace adapters when dialing 42 | - allow arbitrary order in proxy group 43 | - add read clash version API 44 | - add dns fallback filters 45 | - v2ray-plugin support disable mux 46 | - proxy group use correctly last speed test record 47 | - experimental support snell 48 | - fakeip small-probability missing record 49 | 50 | ## License 51 | 52 | Clash for OpenWrt is released under the MIT License - see detailed [LICENSE](https://github.com/frainzy1477/clash/blob/rm/LICENSE) . 53 | 54 | -------------------------------------------------------------------------------- /file/core_version: -------------------------------------------------------------------------------- 1 | 0.16.3 2 | --------------------------------------------------------------------------------