By Hadi
Hi,
I know someone who lives in a country with very harsh internet access, and they can’t access free internet. The only way they can access internet is to use V2ray VPN.
Could you help me how I can use DigitalOcean to build a Vmess server to have access to free internet?
I can use DigitalOcean for Shadowbox internet access now; however, I don’t know if I can access Vmess VPN later with that, or I can’t. Please help me how I can use DigitalOcean server for V2ray Vmess internet.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Heya,
First, create a new droplet on DigitalOcean:
SSH into your server and run these commands:
# Update system
sudo apt update && sudo apt upgrade -y
# Install curl if not present
sudo apt install curl -y
# Install V2Ray using official script
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)
Generate a UUID for your VMess configuration:
cat /proc/sys/kernel/random/uuid
Save this UUID - you’ll need it for both server and client configuration.
Create the configuration file:
sudo nano /usr/local/etc/v2ray/config.json
Add this configuration (replace YOUR_UUID_HERE
with your generated UUID):
{
"inbounds": [{
"port": 443,
"protocol": "vmess",
"settings": {
"clients": [{
"id": "YOUR_UUID_HERE",
"alterId": 0
}]
},
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "/v2ray"
}
}
}],
"outbounds": [{
"protocol": "freedom",
"settings": {}
}]
}
# Start V2Ray service
sudo systemctl start v2ray
# Enable auto-start on boot
sudo systemctl enable v2ray
# Check status
sudo systemctl status v2ray
# Allow port 443
sudo ufw allow 443
# Enable firewall if not already enabled
sudo ufw enable
For your friend to connect, they’ll need these details:
For better security and to avoid detection, consider adding TLS:
Your existing Shadowbox (Shadowsocks) setup and V2Ray VMess are different protocols. You can:
V2Ray VMess often performs better in heavily censored environments due to better traffic obfuscation.
This setup should provide reliable access to unrestricted internet. The WebSocket configuration helps disguise traffic as regular HTTPS traffic, making it harder to detect and block.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.