How to Set Up 3X-UI VPN on Your VPS — Step-by-Step Guide
Published: July 6, 2025
Reading Time: ~5 min
Category: Guides
// 1. What Is 3X-UI VPN?
3X-UI is a free, open-source graphical user interface for managing VPN servers, built on top of the Xray-core project. It gives you a full web-based admin panel to manage users, protocols, traffic, and SSL certificates — all from your browser.
Supported protocols:
- VMess — Classic V2Ray protocol with encryption and obfuscation
- VLESS with REALITY — Next-generation protocol for maximum security and anti-detection
- ShadowSocks — Lightweight encrypted proxy protocol
- WireGuard — Modern, high-performance VPN protocol
- Trojan — Disguises VPN traffic as normal HTTPS connections
Built-in features include user management, traffic monitoring, bandwidth limits, expiration dates, and automatic SSL via Let's Encrypt.
Who it's for:
- Privacy-conscious users who want full control over their VPN
- Developers and system administrators managing remote access
- Small VPN providers serving clients or teams
- Remote workers needing secure connections to company resources
- Gamers looking to reduce latency with custom routing
// 2. Why Self-Host Your VPN?
Commercial VPN services are convenient, but they come with tradeoffs. Self-hosting with 3X-UI eliminates most of them:
- No logging by third parties — You control all data. No one else sees your traffic or keeps logs.
- No bandwidth limits — Commercial VPNs throttle speeds. Your VPS gives you the full pipe.
- Choose your server location — Pick from 12 global locations for the lowest latency to your needs.
- Multi-user support — Share your VPN with family or team members, each with their own credentials and limits.
- Much cheaper long-term — A $24.99/mo VPS replaces multiple commercial VPN subscriptions.
- Complete protocol flexibility — Choose the best protocol for your situation, including advanced options like VLESS+REALITY for bypassing restrictions.
// 3. VPS Requirements
| Use Case |
RAM |
CPU |
Storage |
Recommended Plan |
| Personal VPN (1-3 users) |
2 GB |
2 vCPU |
30 GB SSD |
VPS Start ($24.99/mo) ★ |
| Family/Team VPN (5-10 users) |
4 GB |
3 vCPU |
40 GB SSD |
VPS Medium ($39.99/mo) |
| Small VPN provider (10+ users) |
8 GB |
4 vCPU |
50 GB SSD |
VPS Premium ($64.99/mo) |
3X-UI itself is lightweight, but bandwidth and concurrent connections scale with your hardware. For a personal VPN serving 1-3 users, VPS Start ($24.99/mo) is all you need. For multi-user deployments, step up to VPS Medium ($39.99/mo) for unmetered bandwidth and more headroom.
CPU:
████████░░░░░░░░
Xeon 2x2.20 GHz
DRIVE:
██████░░░░░░░░░░
30 GB SSD
1GBPS PORT
WEEKLY BACKUP
KVM
Order Now
CPU:
████████████░░░░
Xeon 3x2.20 GHz
DRIVE:
████████░░░░░░░░
40 GB SSD
BANDWIDTH:
████████████████
Unmetered
1GBPS PORT
WEEKLY BACKUP
KVM
Order Now
// 4. Step-by-Step: Install 3X-UI on DejavuHost
1
Order Your VPS
Want it pre-installed? Select "Other (Raise a Ticket)" from the OS dropdown and mention "3X-UI VPN panel" in your ticket. We'll deliver your VPS with 3X-UI installed and SSL configured — just log in to the web panel and add your first client. No extra cost.
Prefer to install it yourself? Choose Ubuntu 22.04 LTS or Debian 12, then follow the steps below.
- Head to our VPS Hosting page and select VPS Start or VPS Medium
- Pick a server location closest to where you'll use the VPN
- Complete checkout (we accept Bitcoin via BTCPay!)
2
Update and Prepare Your Server
Once your VPS is provisioned (typically within a few hours), you'll receive your server credentials via email.
ssh root@YOUR_SERVER_IP
sudo apt update && sudo apt upgrade -y
apt-get install wget curl -y
3
Install 3X-UI Panel
Run the official 3X-UI installer:
bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh)
The installer will ask you to:
- Set a custom admin username and password
- Choose a panel port (use a non-standard port for security)
- Set a web base path (e.g., /secretpath)
Pro tip: Write down your admin credentials and panel port. You'll need them to access the web interface.
4
Access the Web Panel
Open your browser and navigate to your panel:
http://YOUR_SERVER_IP:YOUR_PORT/YOUR_PATH
Log in with the credentials you set during installation. You'll see the 3X-UI dashboard with system stats, connection status, and the inbound management panel.
5
Create Your First VPN Connection
Set up your first inbound connection:
- Go to Inbounds and click Add Inbound
- Set a descriptive name for your connection
- Select protocol: VLESS (recommended with REALITY for best security)
- Configure REALITY settings: uTLS fingerprint, destination domain, generate keys
- Add a client with an identifier email
- For REALITY: set Flow to "xtls-rprx-vision"
- Save and copy the connection URL
6
Connect from Your Devices
Use the connection URL or QR code from Step 5 with one of these clients:
◆ macOS
Download FoXray from the App Store. Import your connection URL. Activate the VPN and browse privately.
◆ Windows
Download Invisible Man XRay from GitHub. Import the connection URL from your clipboard. Click Run to connect.
◆ iOS
Use FoXray or Streisand from the App Store. Paste or scan your connection URL to connect instantly.
◆ Android
Use v2rayNG from Google Play. Import your configuration via QR code or connection URL.
// 5. Pre-Installation & Custom Setup
Unlike other providers that hand you a blank server, DejavuHost offers application pre-installation at no extra cost. Whether it's 3X-UI, OpenVPN, WireGuard standalone, or any other VPN solution — tell us what you need and we'll set it up.
Here's how it works:
- Select "Other (Raise a Ticket)" from the OS dropdown during checkout
- In your ticket, mention the application you want pre-installed (e.g., "3X-UI VPN panel on Ubuntu 22.04")
- Complete your order as normal
- Our team provisions your VPS with 3X-UI installed, SSL configured, and ready to add clients
- You receive your panel login credentials and get started immediately
This applies to 3X-UI and any other application you need. No extra cost, no hassle — your server arrives ready to use.
// 7. Wrap-Up
3X-UI gives you a full-featured VPN management panel for free — multi-protocol support, user management, traffic monitoring, and SSL automation, all through an intuitive web interface.
Our VPS Start plan ($24.99/mo) is all you need for a personal VPN serving 1-3 users. Scale up to VPS Medium ($39.99/mo) for multi-user deployments with unmetered bandwidth, or VPS Premium ($64.99/mo) if you're running a small VPN provider.
Or skip setup entirely — we'll pre-install 3X-UI and have it ready for you to add clients the moment you log in.