V2raya windows配置xray-core
- 使用官网的exe包安装
- 下载xray-core
- 进入安装后的目录,找到v2raya.xml,改变arguments行的—v2ray-bin参数为xray对应的路径即可
<arguments>--lite --log-disable-timestamp --log-file v2raya.log --v2ray-bin "%BASE%\xray-core\xray.exe"</arguments> - 如果自启动失败,可以用- 使用winsw去启动 WinSW 有个坑是:就是配置文件和执行文件名必须是一样的,不然会有以下错误,没法安装 来自 <https://www.kancloud.cn/tinywan/tinywan_001/962335>
- 常用命令:
./winsw.exe restart ./winsw.xml - 配置参数
配置文件demo:
<service>
<id>v2rayA</id>
<name>v2rayA background service for Windows</name>
<description>A web GUI client of Project V which supports VMess, VLESS, SS, SSR, Trojan, Tuic and Juicity protocols.</description>
<executable>%BASE%\bin\v2raya.exe</executable>
<env name="PATH" value="%BASE%\bin\;%windir%\system32\"/>
<arguments>--lite --log-file "v2raya.log" --v2ray-bin "%BASE%\xray-core\xray.exe" --v2ray-assetsdir "%BASE%\data" --config "%BASE%"</arguments>
<workingdirectory>%TEMP%</workingdirectory>
<log mode="roll"></log>
<onfailure action="restart" delay="10 sec"/>
</service>使用chrome原生的谷歌翻译
- 在v2raya的设置里配置:规则端口的分流模式为RoutingA:
default: proxy
# write your own rules below
domain(geosite:google-scholar)->proxy
domain(geosite:category-scholar-!cn, geosite:category-scholar-cn)->direct
domain(geosite:geolocation-!cn, geosite:google)->proxy
# 将谷歌翻译的流量走代理
domain(domain:translate.googleapis.com)->proxy
domain(geosite:cn)->direct
ip(geoip:hk,geoip:mo)->proxy
ip(geoip:private, geoip:cn)->direct
domain(domain:microsoft.com)->proxy- 然后开启透明代理/系统代理,选择分流规则与规则端口所选模式一致。
这样chrome自身的流量也会被系统代理接管,chrome自带的翻译就恢复了。