Automation & integrations

What is VLESS and Reality

What it is

VLESS is the light tunnel protocol of Xray with access by a personal UUID. Reality is the TLS layer on top that lets a server work without its own domain or certificate.

How we use it

Where a server has only an IP address. Alongside it we keep a WebSocket+TLS option through an ordinary web server, for older clients.

What it is in plain words

VLESS and Reality are two parts of an encrypted connection in Xray. VLESS is the protocol itself: it identifies the user by a UUID and carries traffic, but does not encrypt anything on its own. Reality is the encryption layer on top: a TLS connection set up so that the server needs neither its own domain nor a certificate.

Where it helps a business

  • You need an encrypted channel to a server that has only an IP address and no domain or certificate.
  • Users should get access by a short link, and the administrator should be able to revoke it per person.
  • Several connection types should be offered from one server, so that clients can choose the one that works best on their network.

How VLESS works

  • A UUID instead of a password. Each user has their own identifier; the server checks it and lets the traffic through.
  • Encryption comes from below. VLESS relies on TLS or Reality, so it does not encrypt data twice and adds almost no overhead.
  • Flow control. The xtls-rprx-vision mode handles TLS traffic inside the tunnel more efficiently and smooths the packet sizes typical of a tunnel.
  • A link. All settings fit into one vless:// link or a QR code, which is easy to send a user or put into a subscription.

How Reality works

  • Someone else's certificate. The server is set up with the name of a real public website (SNI). During the TLS handshake the client sees that site's certificate, so the server needs no domain of its own.
  • Its own key pair. The server has an x25519 key pair; the client knows the public key and a short identifier (shortId). Only a client with these values gets into the tunnel.
  • Strangers see the target site. Any other connection is passed on to the real site, and the server answers like that site.

Reality and WebSocket+TLS

VLESS + RealityVLESS + WebSocket + TLS
Domain and certificatenot neededyour own domain and certificate needed
Behind nginx or a CDNno, Reality listens on the port itselfyes, on the same domain as a website
Speedhigh, a direct TLS connectiona little lower, extra layers
Client supportmodern clientsalmost every client, including old ones

A sensible setup offers both: Reality as the fast main option and WebSocket+TLS as a fallback through an ordinary web server.

Common mistakes

  • A poor target site. The site named in the SNI must support TLS 1.3 and HTTP/2 and be reachable from the server; otherwise connections fail in odd ways.
  • Keys mixed up. The client gets the public key, the private key stays on the server. A swapped pair gives a silent failure with no clear error.
  • Old clients. Not every app supports Reality, so a subscription with Reality only leaves some users without access.
  • One port for everything. Reality takes the port itself; if a website should live on 443 too, the traffic is split by SNI in front of both.

When you do not need it

If the task is a private network between an office and servers, WireGuard is simpler. If the server already has a domain, a certificate and nginx, VLESS over WebSocket+TLS may be the more natural choice.

โ† All terms

Need a website, a bot or automation?

Terms explained โ€” now let's get to work: tell us about the task and we'll turn it into a clear work plan.