Luci support for V2Ray
Available for OpenWrt 21.02 and later.
This project is forked from https://github.com/kuoruan/luci-app-v2ray.
-
Download ipk files from release page
-
Upload files to your router
scp luci-app-v2ray*.ipk [email protected]:.
- Install package with opkg:
opkg install luci-app-v2ray*.ipk
Dependencies:
- jshn
- ip (ip-tiny or ip-full)
- ipset
- iptables
- iptables-mod-tproxy
- resolveip
- dnsmasq-full (dnsmasq ipset is required)
For translations, please install luci-i18n-v2ray-*
.
You may need to remove
dnsmasq
before installing this package. (opkg remove dnsmasq && opkg install dnsmasq-full
)
-
Install V2Ray file from V2Ray GitHub release or .ipk file form here.
-
Download
luci-app-v2ray*.ipk
(andluci-i18n-v2ray-*.ipk
), upload to your router, and install them. -
Config V2Ray file path in LuCI page (http://192.168.8.1/cgi-bin/luci/admin/services/v2ray).
-
Add your inbound and outbound rules (refer the v2ray docs for more information: https://www.v2ray.com/en/configuration/routing.html#routing).
-
Enable the service via LuCI.
Please take a look to build-openwrt.yml.
curl -s 'https://ftp.apnic.net/stats/apnic/delegated-apnic-latest' | \
awk -F '|' '{if($2=="CN"&&$3=="ipv4"){printf "%s/%d\n",$4,32-log($5)/log(2)}}' \
> ./root/etc/luci_v2ray/chnroute.txt
curl -s 'https://ftp.apnic.net/stats/apnic/delegated-apnic-latest' | \
awk -F '|' '{if($2=="CN"&&$3=="ipv6"){printf "%s/%d\n",$4,$5}}' \
> ./root/etc/luci_v2ray/chnroute6.txt