v2ray是一个基于kcp协议的服务器通信实例,使用其自有协议VMess进行服务器之间建立加密通信,下面介绍如何在Debian8上配置v2ray
服务器端
手动安装
安装unzip
1 |
apt-get install unzip |
安装daemon
1 |
apt-get install daemon |
安装v2ray
1 |
curl -L -s https://raw.githubusercontent.com/v2ray/v2ray-core/master/release/install-release.sh | bash |
自动安装
unzip+daemon+v2ray
1 |
bash <(curl -L -s https://install.direct/go.sh) |
安装输出
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
root@vps:~# bash <(curl -L -s https://install.direct/go.sh) /dev/fd/63: line 88: /usr/bin/v2ray/v2ray: No such file or directory Installing V2Ray v1.24.2 on x86_64 Downloading https://github.com/v2ray/v2ray-core/releases/download/v1.24.2/v2ray-linux-64.zip directly. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 595 0 595 0 0 755 0 --:--:-- --:--:-- --:--:-- 755 100 2115k 100 2115k 0 0 694k 0 0:00:03 0:00:03 --:--:-- 1287k Extracting V2Ray package to /tmp/v2ray. Archive: /tmp/v2ray/v2ray.zip inflating: /tmp/v2ray/v2ray-v1.24.2-linux-64/systemd/v2ray.service inflating: /tmp/v2ray/v2ray-v1.24.2-linux-64/systemv/v2ray inflating: /tmp/v2ray/v2ray-v1.24.2-linux-64/v2ray inflating: /tmp/v2ray/v2ray-v1.24.2-linux-64/vpoint_socks_vmess.json inflating: /tmp/v2ray/v2ray-v1.24.2-linux-64/vpoint_vmess_freedom.json PORT:24147 UUID:de1960dd-94c5-4820-b442-527f489d0561 Created symlink from /etc/systemd/system/multi-user.target.wants/v2ray.service to /lib/systemd/system/v2ray.service. V2Ray v1.24.2 is installed. root@vps:~# |
运行状态输出
1 2 3 4 5 6 7 8 9 10 11 12 13 |
root@vps:~# service v2ray start root@vps:~# service v2ray status ● v2ray.service - V2Ray Service Loaded: loaded (/lib/systemd/system/v2ray.service; enabled) Active: active (running) since Tue 2016-08-16 21:43:31 CST; 14s ago Main PID: 910 (v2ray) CGroup: /system.slice/v2ray.service └─910 /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json Aug 16 21:43:31 vps systemd[1]: Started V2Ray Service. Aug 16 21:43:31 vps v2ray[910]: V2Ray v1.24.2 (New Order) 20160816 Aug 16 21:43:31 vps v2ray[910]: An unified platform for anti-censorship. root@vps:~# |
配置文件位置:/etc/v2ray/config.json
客户端
下载本地客户端
https://github.com/v2ray/v2ray-core/releases
- 解压
- 修改config.json中inbound下的PORT参数为本地监听端口(例如8086)
- 修改config.json中outbound下的PORT以及UUID参数为上面之前服务器安装时输出内容中标记部分,并修改address参数为服务器IP地址
- 运行v2ray.exe
SwitchyOmega中添加代理服务器,命名V2Ray,配置协议socks5,地址127.0.0.1,端口为之前配置中的inbound端口
切换到V2Ray配置
测试
打开Youtube,切换视频清晰度为1080P,在视频上方右键选择Stats for nerds
参考
http://k162.space/across_the_gfw_with_v2ray/
There are no comments yet