Skip to content

Latest commit

 

History

History
71 lines (45 loc) · 2.27 KB

README.md

File metadata and controls

71 lines (45 loc) · 2.27 KB

luci-app-v2ray

Luci support for V2Ray

Available for OpenWrt 21.02 and later.

Release Version Latest Release Download Total Download

This project is forked from https://github.com/kuoruan/luci-app-v2ray.

Install

Manual install

  1. Download ipk files from release page

  2. Upload files to your router

scp luci-app-v2ray*.ipk root@192.168.8.1:.
  1. 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)

Configure

  1. Install V2Ray file from V2Ray GitHub release or .ipk file form here.

  2. Download luci-app-v2ray*.ipk (and luci-i18n-v2ray-*.ipk), upload to your router, and install them.

  3. Config V2Ray file path in LuCI page (http://192.168.8.1/cgi-bin/luci/admin/services/v2ray).

  4. Add your inbound and outbound rules (refer the v2ray docs for more information: https://www.v2ray.com/en/configuration/routing.html#routing).

  5. Enable the service via LuCI.

Build

Please take a look to build-openwrt.yml.

Update chroute

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