How to Install OpenClash on OpenWrt


Installation Guide

Install Dependencies

iptables

opkg update
opkg install bash iptables dnsmasq-full curl ca-bundle ipset ip-full iptables-mod-tproxy iptables-mod-extra ruby ruby-yaml kmod-tun kmod-inet-diag unzip luci-compat luci luci-base

nftables

opkg update
opkg install bash dnsmasq-full curl ca-bundle ip-full ruby ruby-yaml kmod-tun kmod-inet-diag unzip kmod-nft-tproxy luci-compat luci luci-base

Download and Install OpenClash

wget https://github.com/vernesong/OpenClash/releases/download/v0.46.079/luci-app-openclash_0.46.079_all.ipk
opkg install luci-app-openclash_0.46.079_all.ipk

Note: The version may change. Check the latest version on OpenClash GitHub.

Enable OpenClash

  1. Open Services > OpenClash in LuCI.
  2. Select the configuration you want to use.
  3. Click Enable OpenClash and Start.