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: [ Ссылка ]
Get a discounted Namecheap .COM domain name: [ Ссылка ]
How To Get $200 In Free DigitalOcean Cloud Credits [ Ссылка ]
Bash script for installing V2Ray [ Ссылка ]
UUID Generator [ Ссылка ]
Qv2ray Client [ Ссылка ]
V2Ray Client Config Files [ Ссылка ]
How To Install PuTTY on Windows [ Ссылка ]
How to use WinRAR on Windows PC - How to Extract or Unzip RAR and ZIP files [ Ссылка ]
Steps To Setup A V2Ray Proxy Server:
1. Spin up a DigitalOcean droplet [ Ссылка ]
2. Buy a Namecheap domain name [ Ссылка ]
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 [ Ссылка ])
Note 1: Replace ⬅️ with the "less-than sign" on your keyboard or copy the command from [ Ссылка ]
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 [ Ссылка ];
}
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 [ Ссылка ];
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 [ Ссылка ]
Project V (V2Ray) [ Ссылка ]
Project V (V2Fly) [ Ссылка ]
Certbot [ Ссылка ]
Let’s Encrypt [ Ссылка ]
#V2Ray #VMESS #Proxy
![](https://i.ytimg.com/vi/V0YV0_n1-nI/maxresdefault.jpg)