Are you an LLM? You can read better optimized documentation at /en\wiki\vless.md for this page in Markdown format
VLESS protocol
VLESS (Very Lightweight Encrypted Socket Agent) is a lightweight network transport protocol designed for high-performance proxying.
Characteristics
- 🚀 High performance: minimal protocol overhead and excellent throughput
- 🔐 Flexible encryption: works with TLS, Reality, XTLS and more
- 📡 Many transports: TCP, WS, gRPC, H2, QUIC and others
- 🎯 Anti-censorship: Reality effectively counters deep packet inspection
Configuration examples
Basic configuration
json
{
"outbounds": [
{
"type": "vless",
"tag": "vless-out",
"server": "example.com",
"server_port": 443,
"uuid": "your-uuid-here",
"flow": "xtls-rprx-vision",
"tls": {
"enabled": true,
"server_name": "example.com",
"reality": {
"enabled": true,
"public_key": "your-public-key",
"short_id": "your-short-id"
}
}
}
]
}WebSocket transport
json
{
"outbounds": [
{
"type": "vless",
"tag": "vless-ws-out",
"server": "example.com",
"server_port": 443,
"uuid": "your-uuid-here",
"transport": {
"type": "ws",
"path": "/vless",
"headers": {
"Host": "example.com"
}
},
"tls": {
"enabled": true,
"server_name": "example.com"
}
}
]
}Flow control
xtls-rprx-vision: recommended, best security and performancextls-rprx-vision-udp443: allows UDP over port 443flow control: choose according to what the server supports
Use cases
- High-performance internet access
- Game acceleration (latency sensitive)
- High-volume data transfer
- Resisting network censorship
Pros and cons
Pros
- Very low protocol overhead with excellent performance
- Supports a range of modern encryption methods
- Reality provides strong anti-censorship capability
- Blends well with TLS, making it hard to detect
Cons
- Security depends on pairing it with TLS/Reality
- Configuration is comparatively complex and requires understanding the transport options
Comparison with other protocols
| Protocol | Performance | Security | Compatibility | Configuration complexity |
|---|---|---|---|---|
| VLESS | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐ |
| VMess | ⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐⭐ |
| Trojan | ⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐ | ⭐⭐ |
| Shadowsocks | ⭐⭐⭐⭐ | ⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐ |
Notes
- TLS/Reality is mandatory: VLESS itself does not encrypt, so always pair it with TLS or Reality in production
- Choose the right flow: pick the flow control that both server and client support
- Port choice: port 443 offers the best compatibility
- Certificates: make sure the server certificate is configured correctly to avoid man-in-the-middle attacks