Menu
User

DropVPS Team

Writer: John hens

How to Config V2Ray on Ubuntu 25.04

How to Config V2Ray on Ubuntu 25.04

Publication Date

08/10/2025

Category

Articles

Reading Time

3 Min

Table of Contents

V2Ray is a powerful proxy tool that supports protocols like VMess and VLESS. On Ubuntu 25.04, you can set up V2Ray easily using the official installer and a simple JSON config.

Step 1: Install required dependencies

Before installing V2Ray, make sure `curl` and `sudo` are available on your system:

sudo apt update
sudo apt install curl -y

These tools are needed to fetch the installation script and run commands.

Step 2: Install V2Ray using official script

Use the official script from the V2Fly project to install V2Ray system-wide:

bash <(curl -Ls https://github.com/v2fly/fhs-install-v2ray/raw/master/install-release.sh)

After this, the v2ray binary and service will be installed to system paths.

Step 3: Enable and start the service

Once installed, you should enable and start the V2Ray service using systemd.

sudo systemctl enable v2ray
sudo systemctl start v2ray

To confirm it’s running, use: sudo systemctl status v2ray

Step 4: Configure the V2Ray client

Edit the config file to add your VMess server details. The config file is located at:

sudo nano /usr/local/etc/v2ray/config.json

Use this sample config (replace with your own server IP and UUID):

{
  "inbounds": [{
    "port": 1080,
    "protocol": "socks",
    "settings": {}
  }],
  "outbounds": [{
    "protocol": "vmess",
    "settings": {
      "vnext": [{
        "address": "example.com",
        "port": 443,
        "users": [{
          "id": "your-uuid-here",
          "alterId": 0,
          "security": "auto"
        }]
      }]
    }
  }]
}

Make sure to replace example.com and your-uuid-here with actual values.

Step 5: Restart to apply config

After editing the config, restart the V2Ray service to apply changes:

sudo systemctl restart v2ray

You can view logs to check for errors:

sudo journalctl -u v2ray -e
Linux VPS
U
Loading...

Related Posts