Transparent proxy based on V2Ray
使用V2Ray在华硕官方固件AsusWRT实现GFWList模式的透明代理
华硕官方固件AsusWRT
已激活USB应用(比如Download Master),可以使用ipkg
命令(如不需要可以在激活后卸载)
路由器架构满足V2Ray要求
已在 RT-AC86U(3.0.0.4.384.20467) & newifi mini(RT-AC1200HP fw 3.0.0.4.380.8228) 测试通过
pkg_file/opt/bin/v2ray/geosite.dat 中预置两个域名表:gfw
和googlecn
,googlecn
为白名单直连,优先级高于gfw
;
googlecn
使用 @felixonmars 的 dnsmasq-china-list 中Google部分。
可以使用 @onplus 的 v2ray-SiteDAT 生成自己的geosite.dat
从 GitHub Releases 下载预构建ipk包
将下载的v2ray_version_architecture.ipk放入U盘,ssh执行
ipkg update
ipkg install v2ray_[version]_[architecture].ipk
编辑/opt/etc/v2ray/config.json,在outboundDetour
填入自己的服务器信息
重启路由器生效,或运行 /opt/etc/init.d/S60v2ray start
/opt/etc/init.d/S60v2ray firewall-start
手动开启。
git clone https://github.com/KyonLi/asuswrt-v2ray.git
从 V2Ray Releases 下载v2ray-linux-*.zip,将其中的v2ray和v2ctl放到pkg_file/opt/bin/v2ray/目录
编辑pkg_file/CONTROL/control:Architecture
和Version
与v2ray对应
安装 ipkg-utils,使用ipkg-build生成v2ray_version_architecture.ipk
ipkg-build -c -o admin -g root <pkg_file目录所在路径> [<ipk包生成路径>]