VLESS
What is VLESS? VLESS is a proxy protocol—remember, it's not a VPN. VLESS is an ultra-fast, minimalistic protocol that strips out the unnecessary parts of VMESS. It is being developed by Xray, a fork of V2Ray.
You can configure VLESS to use no encryption or to use TLS for encryption. Because it relies on TLS, it is very lightweight. VLESS supports multiple ways of transporting data under different censorship scenarios, such as WebSockets (WS), TCP, QUIC, KCP, HTTP, HTTP upgrade, and gRPC.
We recommend TLS over VLESS because it adds encryption, and a CDN provides a way to hide the proxy—almost making it unblockable.
Terms Explanation
Term | Meaning |
---|---|
VLESS | A protocol used in V2Ray configurations. |
WS | WebSocket, an upgraded HTTP protocol supporting real-time data syncing. |
TLS | Encrypts data to not be visible to firewalls. |
CDN | Content Delivery Network; puts content closer to users for speed and makes blocking servers much more difficult. |
Setup: VLESS + CDN + WS + TLS
Requirements
- A domain name with cloudflare
- A Linux VPS with port forwarding for 443 and a random port (Other web hosting services like Render or Koyeb will also do; they provide a domain and CDN in most cases.)
- Basic command line skills
- Root
Install X-UI
- To install x-ui, execute the following in a terminal:
bash <(curl -Ls https://raw.githubusercontent.com/NidukaAkalanka/x-ui-english/master/install.sh)
To install, just follow on-screen instructions. Make sure you enable system startup.
Disable Firewall
If you're using a Debian-based distro:
- If
ufw
is not installed, install it:
sudo apt install ufw
- Disable the firewall:
sudo ufw disable
Access X-UI Panel
- Open your browser and access the:
http://<server-ip>:<port-you-set>
This will be shown to you after launching X-UI withsudo x-ui
- Log in with the credentials.
Configure VLESS Endpoint
- Tap "Inbounds".
- Click the "+" button to create a new inbound.
- Settings as below:
Remark: Name your server
Protocol: vless
Listening IP: blank (default)
Port: 443
Total Traffic (GB): blank (default)
Expiry Date: blank (default)
Disable Insecure Encryption: Disabled (default)
Transmission: ws
Accept Proxy Protocol: Disabled (default)
TLS: Disable
Sniffing: Enabled (default)
- Click "Add To" to save.
Forward Port 443
- Go to the control panel or router of your VPS.
- forward port 443.
Configure Cloudflare
- Activate your domain in Cloudflare if you don't already have it.
- Set an A Record pointing to your VPS public IP. Make sure to turn on proxy.
- Go to SSL/TLS on Cloudflare: Make sure it is on Flexible, not Full Strict.
You're Done!
Click Operate on your inbound on X-UI and click QR Code. You can use this QR code to import to your client or click the QR to copy share link to clipboard
Hint: Check the documentation of your client or online for configuration.