当前位置:首页 > 系统 > google cloud搭建v2ray

google cloud搭建v2ray

系统4年前 (2019-09-20)

google cloud搭建v2ray

google cloud搭建v2ray,推荐使用一键脚本v2ray+tls+websocket+cloudflare CDN方式,普通方式已被墙


配置服务端

wget https://install.direct/go.sh

google cloud搭建v2ray


chmod +x go.sh
bash go.sh

google cloud搭建v2ray


修改默认端口

vim /etc/v2ray/config.json

将"port": 14493改为需要的端口,这里改为57001


防火墙打开端口并自动服务

firewall-cmd --zone=public --add-port=57001/tcp --permanent
systemctl start v2ray
systemctl status v2ray

google cloud搭建v2ray


配置客户端

v2ray

https://github.com/v2ray/v2ray-core/releases

google cloud搭建v2ray


v2rayN

https://github.com/2dust/v2rayN/releases

google cloud搭建v2ray


google cloud搭建v2ray

将下载的v2ray-windows-64.zip和v2rayN.zip解压,放到同一个目录下,运行v2rayN.exe


google cloud搭建v2ray

勾选“启用HTTP代理”,HTTP代理模式改为“仅开启HTTP代理,不自动配置代理服务器(直连模式)”


google cloud搭建v2ray

双击任务栏v2ray图标,弹出框中选择“服务器”--“添加VMess服务器”


google cloud搭建v2ray

填写服务器信息


google cloud搭建v2ray

浏览器SwitchyOmege插件将代理端口改为10809


google cloud搭建v2ray

测试浏览一个网站,没问题的话会有输出信息


一键脚本


google cloud搭建v2ray

bash <(curl -s -L https://git.io/v2ray.sh)


常用命令

v2ray info 查看V2Ray配置信息

v2ray config 修改V2Ray配置

v2ray link 生成V2Ray配置文件链接

v2ray infolink 生成V2Ray配置信息链接

v2ray qr 生成V2Ray配置二维码链接

v2ray ss 修改Shadowsocks配置

v2ray ssinfo 查看 hadowsocks配置信息

v2ray ssqr 生成Shadowsocks配置二维码链接

v2ray status 查看V2Ray运行状态

v2ray start 启动V2Ray

v2ray stop 停止V2Ray

v2ray restart 重启V2Ray

v2ray log 查看V2Ray运行日志

v2ray update 更新V2Ray

v2ray update.sh 更新V2Ray管理脚本

v2ray uninstall 卸载V2Ray


cloudflare CDN大致流程

google cloud搭建v2ray

Add site---选择free套餐---设置DNS解析---将域名服务器改为cloudflare


如果遇到错误提示“[Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound:

 failed to find an available destination > v2ray.com/core/common/retry: [v2ray.com/core/transport/internet/websocket:

 failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://crosswall.com/train/): 

301 Moved Permanently > websocket: bad handshake] > v2ray.com/core/common/retry: all retry attempts failed”

google cloud搭建v2ray

将SSL/TLS加密模式改为full




本站所有文章均可随意转载,转载时请保留原文链接及作者。

本文链接:https://www.vos.cn/os/354.html

相关文章

解决SecureCRT连接linux无配色

解决SecureCRT连接linux无配色

SecureCRT默认ssh连接linux是无配色的,看起来很难受左侧选中需要调整的会话名称->右键->Properties ->Session Options -> Term...

CentOS7安装cacti

CentOS7安装cacti

网上有一种叫cactiez的集成版本,rrd组件一直有问题,版本也太老,于是就想着重新搭建一个环境试试配置环境关闭Selinux vi /etc/selinux/config 将SELI...

CentOS7 NFS配置

CentOS7 NFS配置

网络文件系统(Network File System)是一种将远程主机上的分区(目录)经网络挂载到本地的一种机制,通过对网络文件系统的支持,用户可以在本地系统上像操作本地分区一样来对远程主机的共享分区...

CentOS6 安装Oracle11gR2

CentOS6 安装Oracle11gR2

使用oracle-rdbms-server-11gR2-preinstall工具,自动安装oracle所需的RPM包,自动创建oracle用户和dba、oinstall组,自动配置/etc/sysct...

Redhat 6.5网卡聚合绑定

Redhat 6.5网卡聚合绑定

linux下网卡bonding配置是通过多张网卡绑定为一个逻辑网卡,实现本地网卡的冗余,带宽扩容和负载均衡,在生产场景中是一种常用的技术,常用聚合模式为0,1,60(balance-rr)轮循(RR)...

RHEL6.5修复LVM错误

RHEL6.5修复LVM错误

RHEL6.5启动出现UNEXPECTED INCONSISTENCY RUN fsck MANUALLY,无法正常进入系统输入ROOT密码后然后输入init 0关机虚拟机“电源”--“打开电源时进入...