V2Ray for OpenWrt
OpenWrt/LEDE 上可用的 V2Ray
For luci-app-v2ray, please head to kuoruan/luci-app-v2ray
wget -O kuoruan-public.key http://openwrt.kuoruan.net/packages/public.key
opkg-key add kuoruan-public.key
echo "src/gz kuoruan_packages http://openwrt.kuoruan.net/packages/releases/$(. /etc/openwrt_release ; echo $DISTRIB_ARCH)" \
>> /etc/opkg/customfeeds.conf
Replace
http://
withhttps://
if you like.
opkg update
opkg install v2ray-core
For minimal package:
opkg update
opkg install v2ray-core-mini
opkg update
opkg upgrade v2ray-core
Download pre build ipk file from releases
Upload file to your router, install it with ssh command.
opkg install v2ray-core*.ipk
Depends:
Bin files will install in /usr/bin
.
Use the latest OpenWrt SDK or with source code in master branch (requires golang modules support, commit openwrt/packages@7dc1f3e and later).
Enter root directory of SDK, then download the Makefile:
git clone https://github.com/kuoruan/openwrt-v2ray.git package/v2ray-core
For Chinese users,
export GOPROXY=https://goproxy.io
before build.
Start build:
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
Network ---> Project V ---> <*> v2ray-core
Network ---> Project V ---> <M> v2ray-core-mini
make package/v2ray-core/{clean,compile} V=s
V2Ray Mini Configuration
option.If you want to build with UPX compress, the UPX package is required.
git clone -b master --depth 1 https://github.com/kuoruan/openwrt-upx.git package/openwrt-upx
opkg remove v2ray-core # v2ray-core-mini