3 适用于 OpenWrt 用户的 v2rayA opkg 软件源。
11 > 请确认软件包 `wget-ssl` 已经正确地安装在您的设备上
14 wget https://osdn.net/projects/v2raya/storage/openwrt/v2raya.pub -O /etc/opkg/keys/94cc2a834fb0aa03
20 echo "src/gz v2raya https://osdn.net/projects/v2raya/storage/openwrt/$(. /etc/openwrt_release && echo "$DISTRIB_ARCH")" | tee -a "/etc/opkg/customfeeds.conf"
23 # echo "src/gz v2raya https://ftp.jaist.ac.jp/pub/sourceforge.jp/storage/g/v/v2/v2raya/openwrt/$(. /etc/openwrt_release && echo "$DISTRIB_ARCH")" | tee -a "/etc/opkg/customfeeds.conf"
25 # echo "src/gz v2raya https://mirrors.gigenet.com/OSDN/storage/g/v/v2/v2raya/openwrt/$(. /etc/openwrt_release && echo "$DISTRIB_ARCH")" | tee -a "/etc/opkg/customfeeds.conf"
40 # 为基于 nftables 的 firewall4 (command -v fw4) 安装下列软件包
41 # 一般来说,在 OpenWrt 22.03 或更新版本中安装它们
42 opkg install kmod-nft-tproxy
43 # 为基于 iptables 的 firewall3 (command -v fw3) 安装下列软件包
44 # 一般来说,在 OpenWrt 21.02 或更早版本中安装它们
45 opkg install iptables-mod-conntrack-extra \
51 # 选择一个你喜欢的内核,v2ray 或 Xray
54 # 维护者注:由于目前 v2ray 的透明代理支持欠佳,因此更推荐使用 Xray
55 opkg install xray-core
56 # opkg install v2ray-core
59 # opkg install v2fly-geoip v2fly-geosite
64 - 方法一:通过 LuCI 界面配置(仅适用于 __OpenWrt 21.02 或更高版本__)
68 opkg install luci-app-v2raya luci-i18n-v2raya-zh-cn
71 2. 访问 `http://<your_router_ip>/cgi-bin/luci/admin/services/v2raya` 并完成配置。
78 # 详细配置请参见 /etc/config/v2raya
79 uci set v2raya.config.enabled='1'
86 /etc/init.d/v2raya start
89 3. 访问 v2rayA webUI 面板并完成设置
91 `http://<your_router_ip>:2017`