How To Setup V2Ray Proxy Server With A VPS, Domain Name, Nginx, SSL Certificate, And Qv2ray Client



How To Setup V2Ray Proxy Server With A VPS, Domain Name, Nginx, SSL Certificate, And Qv2ray Client

How To Setup V2Ray Proxy Server With A VPS, Domain Name, Nginx, SSL Certificate, And Qv2ray Client

In this video, I will show you how to make a V2Ray proxy server with a virtual private server (VPS) or cloud server, domain name, NGINX web server, Certbot to get a Let’s Encrypt SSL Certificate for HTTPS:// encryption. and Qv2ray client.

Get $200 in cloud credits from DigitalOcean using my referral link: https://digitalocean.pxf.io/c/1245219/1373759/15890

Get a discounted Namecheap .COM domain name: https://namecheap.pxf.io/c/1245219/408750/5618

How To Get $200 FREE DigitalOcean Promotional Credit https://youtu.be/jrnHYRmvkg4

Bash script for installing V2Ray https://github.com/v2fly/fhs-install-v2ray

UUID Generator https://www.uuidgenerator.net/

Qv2ray Client https://github.com/Qv2ray/Qv2ray/releases

V2Ray Client Config Files https://github.com/v2fly/v2ray-core/releases/tag/v4.45.2

How To Install PuTTY on Windows https://youtu.be/0ptZPTTwRaE

How to use WinRAR on Windows PC – How to Extract or Unzip RAR and ZIP files https://youtu.be/bnM-WhO-ZPk

Steps To Setup A V2Ray Proxy Server:

1. Spin up a DigitalOcean droplet https://digitalocean.pxf.io/c/1245219/1373759/15890
2. Buy a Namecheap domain name https://namecheap.pxf.io/c/1245219/408750/5618
3. Point your Namecheap domain name to DigitalOcean’s DNS
4. Copy and paste each command below and each V2Ray/Nginx server/client side configuration information.

Commands:

apt-get update

bash ⬅️(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)

Note 1: Replace ⬅️ with the “less-than sign” on your keyboard or copy the command from https://github.com/v2fly/fhs-install-v2ray

systemctl enable v2ray
systemctl start v2ray
systemctl status v2ray
cd /usr/local/etc/v2ray
ls
nano config.json
cd
apt-get install nginx -y
apt-get install certbot python3-certbot-nginx
certbot –nginx
cd /etc/nginx/sites-available
ls
rm default
ls
nano default
cd
nginx -t
systemctl restart nginx
systemctl status nginx
systemctl restart v2ray
systemctl status v2ray

Note 2: Type the letter “q” on your keyboard if you see (END) and can’t type the next command after checking the the status of v2ray or nginx.

V2Ray Server Side config.json (replace the UUID with yours):

{
“inbounds”: [
{
“port”: 10000,
“listen”:”127.0.0.1″,
“protocol”: “vmess”,
“settings”: {
“clients”: [
{
“id”: “0446e7c7-b95d-45f8-a813-8fd9426cbe4e”,
“alterId”: 0
}
]
},
“streamSettings”: {
“network”: “ws”,
“wsSettings”: {
“path”: “/v2ray”
}
}
}
],
“outbounds”: [
{
“protocol”: “freedom”,
“settings”: {}
}
]
}

Nginx default file (replace bypass.domain.com with your domain name:

server {
listen 80;
server_name bypass.domain.com;
return 301 https://bypass.domain.com$request_uri;
}

server {
listen 443 ssl;
server_name bypass.domain.com;

ssl_certificate /etc/letsencrypt/live/bypass.domain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/bypass.domain.com/privkey.pem;

include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

location / {
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
}

location /v2ray {
if ($http_upgrade != “websocket”) {
return 404;
}
proxy_redirect off;
proxy_pass http://127.0.0.1:10000;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
proxy_set_header Host $host;

# Show real IP in v2ray access.log
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}

V2Ray Client Side Config (replace bypass.domain.com and UUID with your domain and UUID respectively):

{
“inbounds”: [
{
“port”: 1080,
“listen”: “127.0.0.1”,
“protocol”: “socks”,
“sniffing”: {
“enabled”: true,
“destOverride”: [“http”, “tls”]
},
“settings”: {
“auth”: “noauth”,
“udp”: false
}
}
],
“outbounds”: [
{
“protocol”: “vmess”,
“settings”: {
“vnext”: [
{
“address”: “bypass.domain.com”,
“port”: 443,
“users”: [
{
“id”: “0446e7c7-b95d-45f8-a813-8fd9426cbe4e”,
“alterId”: 0
}
]
}
]
},
“streamSettings”: {
“network”: “ws”,
“security”: “tls”,
“wsSettings”: {
“path”: “/v2ray”
}
}
}
]
}

Timestamps:
0:00 Intro & Context
0:48 Setup VPS, Buy Domain, & Point DNS
9:16 Configure V2Ray Server Side
15:15 Configure NGINX & Get HTTPS
22:38 Configure V2Ray Client Side
29:58 Closing & Outro

NGINX https://www.nginx.com/
Project V (V2Ray) https://www.v2ray.com/en/index.html
Project V (V2Fly) https://www.v2fly.org/en_US/
Certbot https://certbot.eff.org/
Let’s Encrypt https://letsencrypt.org/

#V2Ray #VMESS #Proxy

Comments are closed.