如果你还没有安装 V2Ray,可以通过以下命令安装:
bash# 安装 V2Ray
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)
安装完成后,V2Ray 的配置文件通常位于 /usr/local/etc/v2ray/config.json
。
编辑 V2Ray 的配置文件 /usr/local/etc/v2ray/config.json
,添加以下内容:
json{
"inbounds": [
{
"port": 8899,
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": false
}
}
],
"outbounds": [
{
"protocol": "socks",
"settings": {
"servers": [
{
"address": "vpnx.com",
"port": 1088
}
]
}
}
]
}
保存配置文件后,启动或重启 V2Ray 服务:
bash# 启动 V2Ray
systemctl start v2ray
# 设置开机自启
systemctl enable v2ray
# 检查状态
systemctl status v2ray
设置好 中转机器IP、端口,使用TCP协议即可使用中转机器的代理进行上网。
本文作者:Dong
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 CC BY-NC。本作品采用《知识共享署名-非商业性使用 4.0 国际许可协议》进行许可。您可以在非商业用途下自由转载和修改,但必须注明出处并提供原作者链接。 许可协议。转载请注明出处!