Back to articles
AI & Cloud

Guide to Deploy VLESS Reality on VPS for Low Cost at Only $2/Month

A guide to deploying VLESS Reality on a VPS for under $2/month, bypassing network restrictions and providing secure, stable, and anonymous connectivity for users in Vietnam.

DPTCloud Engineering4 min read
Guide to Deploy VLESS Reality on VPS for Low Cost at Only $2/Month

Introduction to VLESS Reality and Benefits of Deployment on VPS

VLESS Reality is a modern network protocol designed to optimize performance and anonymity, especially suitable for regions with strict internet censorship like Vietnam. By mimicking HTTPS traffic, VLESS Reality enables users to bypass network restrictions and access the internet securely and reliably. Deploying VLESS Reality on a VPS (Virtual Private Server) at a cost of approximately $2/month offers a cost-effective, flexible, and efficient solution for individuals, small businesses, or organizations requiring secure and anonymous connectivity.

Requirements and Preparations Before Deployment

To deploy VLESS Reality on a VPS, ensure the following conditions are met:

  • Reputable VPS provider with servers located in countries such as Singapore, Japan, the United States, or Europe (preferably with IP addresses not blocked in Vietnam).
  • Running a Linux operating system (Ubuntu 20.04/22.04 or Debian 11/12).
  • SSH access to the VPS with root privileges.
  • A domain name (or a subdomain if one is not available).
  • Ports 443 (HTTPS) and 80 (HTTP) must be open on the VPS.

Deploying VLESS Reality on VPS

Below is a detailed guide to deploying VLESS Reality on a VPS at low cost:

1. Install Required Tools

SSH into the VPS and update the system:

sudo apt update && sudo apt upgrade -y
sudo apt install -y curl wget git

2. Install XrayR (Integrates VLESS Reality)

XrayR is a user-friendly tool for managing V2Ray protocols, including VLESS with Reality. Install XrayR using the following command:

wget -qO- https://github.com/XTLS/XrayR/releases/latest/download/XrayR-linux-64.tar.gz | tar -xz
sudo mv XrayR /usr/local/bin/
sudo chmod +x /usr/local/bin/XrayR

3. Configure VLESS Reality

Create a configuration file at /usr/local/bin/XrayR/config.json:

{
  "log": {
    "level": "info",
    "access": "/usr/local/bin/XrayR/access.log",
    "error": "/usr/local/bin/XrayR/error.log"
  },
  "inbounds": [
    {
      "port": 443,
      "protocol": "vless",
      "settings": {
        "clients": [
          {
            "id": "your-uuid-here",
            "level": 0
          }
        ],
        "decryption": "none",
        "fallbacks": [
          {
            "dest": 80
          }
        ]
      },
      "streamSettings": {
        "network": "tcp",
        "security": "reality",
        "realitySettings": {
          "publicKey": "your-public-key-here",
          "shortId": "your-short-id-here",
          "serverName": "your-domain.com"
        }
      }
    }
  ],
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {}
    }
  ]
}

4. Configure Domain and SSL

Ensure the domain is pointed to the VPS IP address. Install Let's Encrypt to obtain a free SSL certificate:

sudo apt install -y certbot
sudo certbot certonly --standalone -d your-domain.com

Testing and Verifying the Connection

After configuration, start XrayR:

sudo XrayR

Test the connection from a client device (Windows, Android, iOS) using an application that supports VLESS Reality, such as V2RayNG, Clash, or Quantumult X. Configure as follows:

  • Server Address: your-domain.com
  • Port: 443
  • UUID: your-uuid-here
  • Security: Reality
  • Public Key: your-public-key-here
  • Short ID: your-short-id-here
  • Server Name: your-domain.com

Troubleshooting Solutions

  • Cannot connect: Check if port 443 is open, verify firewall settings (UFW/iptables), and ensure the domain resolves correctly via DNS.
  • SSL errors: Run certbot renew to update the certificate.
  • No connection received: Check logs at /usr/local/bin/XrayR/access.log and /error.log.

Reference Resources

Disclaimer: Deploying protocols like VLESS Reality must comply with local laws and regulations. This guide is for technical and educational purposes only.

DPTCloud Tier III Infrastructure

High-RAM Cloud VPS Plans Optimized for AI, Databases & Cache

Enterprise RAID 10 NVMe SSDs, CMC & FPT District 9 uplinks with Anycast Anti-DDoS and 99.99% SLA.

View 22 VPS Plans
ECO · vn-02Recommended

VPS-4E

297.000 ₫ / mo

10% VAT included

  • CPU: 4 vCPU
  • RAM: 8 GB
  • SSD: 50 GB NVMe
ECO · vn-02

VPS-5E

614.900 ₫ / mo

10% VAT included

  • CPU: 8 vCPU
  • RAM: 16 GB
  • SSD: 100 GB NVMe
ADVANCED · vn-03Recommended

VPS-4T

548.900 ₫ / mo

10% VAT included

  • CPU: 4 vCPU
  • RAM: 8 GB
  • SSD: 50 GB NVMe

Related Articles

View all
ZaloZalo SupportDiscord0384 753 478