V2Ray Document(Server and Client)

1. Introduction:

V2Ray is the core of Project V which is a set of tools to help someone build their own privacy network over internet.

Here are some Features:

  • Multiple inbound/outbound proxies: one V2Ray instance supports in parallel multiple inbound and outbound protocols. Each protocol works independently.
  • Customizable routing: incoming traffic can be sent to different outbounds based on routing configuration. It is easy to route traffic by target region or domain.
  • Multiple protocols: V2Ray supports multiple protocols, including Socks, HTTP, Shadowsocks, VMess etc. Each protocol may have its own transport, such as TCP, mKCP, WebSocket etc.
  • Obfuscation: V2Ray has built in obfuscation to hide traffic in TLS, and can run in parallel with web servers.
  • Multiple platforms: V2Ray runs natively on Windows, Mac OS, Linux, etc. There is also third party support on mobile.

2. Server:

  • Premises:

    • VPS
    • ssh tool or panel

    Note: If you have no vps or have no idea about vps, Maybe you could try Virtono which is a cheaper web hosting solutions company and can pay for by AliPay. I think it will give you a best service for newer. Click here to Buy one vps.

  • Install:

  1. First step, you need to login your vps’s terminal by ssh-tool or ssh-panel which is offen offered by web hosts. Such like the following:

Vps_Panel

  1. Be sure that the login user is root, then input the command in terminal:
1
bash <(curl -s -L https://git.io/v2ray.sh)

Note: If you get the error info: curl: command not found, you need to input apt-get update && apt-get install curl -y firstly.

  1. Configure the V2ray, you can see this papper V2Ray一键安装脚本, it will help your more details to config v2ray.

3. Client:

  1. First step, the V2Ray is available on the Windows, Mac OS X 10.10 or later, Linux…

  2. Such as me, my pc is Ubuntu18.04, Luckly, the V2Ray team provides a script to install on Linux. So open the terminal:

1
curl -Ls https://install.direct/go.sh | sudo bash

The script installs the following files.

  • /usr/bin/v2ray/v2ray: V2Ray executable
  • /usr/bin/v2ray/v2ctl: Utility
  • /etc/v2ray/config.json: Config file
  • /usr/bin/v2ray/geoip.dat: IP data file
  • /usr/bin/v2ray/geosite.dat: domain data file
  1. After installation, you will need to:
  • Update /etc/v2ray/config.json file for scenario.
  • Check the config file by runing /usr/bin/v2ray/v2ray -test -config=/etc/v2ray/config.json.
  • Run service v2ray start to start V2Ray.
  • Optionally run service v2ray start|stop|status|reload|restart|force-reload to control V2Ray service.
Config file example:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"outbounds": [{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "45.**.96.***",
"port": 22**,
"users": [{
"id": "*****-5d2c-****-8517-b80**ffe***af",
"level": 1,
"alterId": 823
}]
}
]
}
}],
"inbounds": [{
"port": 1080,
"protocol": "socks",
"domainOverride": ["tls","http"],
"settings": {
"auth": "noauth"
}
}]
}
Mikoy Chinese wechat
Subscribe my public wechat account by scanning.

--------------------   ENDING   --------------------