· 4 min read · By BSafe Group
VLESS vs Trojan vs Shadowsocks: which VPN protocol should you use?
How the modern proxy protocols behind BSVPN work, how they differ from OpenVPN and WireGuard, and which one to pick for your network.
Protocols · Technology
Most people never choose a VPN protocol, and they should not have to: a good app picks one for them. But if you have ever wondered why BSVPN talks about VLESS, REALITY, Trojan and Shadowsocks rather than OpenVPN or WireGuard, this article explains the reasoning.
Why not just OpenVPN or WireGuard?
OpenVPN and WireGuard are excellent at what they were designed for: building secure tunnels between networks. They are also easy to recognise. Their handshakes and packet shapes are distinctive, so a firewall that wants to block VPNs can identify them in a fraction of a second. That happens on some hotel and corporate networks, on some mobile operators, and in countries that restrict internet access.
The protocols below come from a different tradition. They were built to look like ordinary web traffic, so that blocking them would mean blocking a large part of the web.
VLESS
VLESS is a lightweight protocol from the V2Ray and Xray projects. On its own it does very little: it identifies the user with a random id and then passes traffic through. It deliberately has no encryption of its own, because it is meant to run inside a transport that already provides it.
That transport is what makes VLESS interesting:
- VLESS over TLS wraps the connection in standard TLS, the same protocol your browser uses for HTTPS.
- VLESS over WebSocket runs inside a WebSocket connection, which passes through many proxies and content delivery networks.
- VLESS with REALITY goes a step further. Instead of presenting its own certificate, the server borrows the TLS handshake of a real, popular website. An observer who probes the server sees that genuine website. Only a client that knows the server's public key can authenticate and reach the VPN behind it.
REALITY is currently one of the hardest protocols to detect, which is why BSVPN prefers it on restrictive networks.
Trojan
Trojan takes a simple idea seriously: if you want your traffic to look like HTTPS, make it HTTPS. A Trojan server is a real TLS server on port 443. A client sends a hash of its password as the first bytes inside the encrypted connection; if the hash is correct, the server forwards the traffic. If it is not, the server behaves like an ordinary web server and serves a normal website.
Trojan is fast, simple and robust. Its weak point is that it needs a valid certificate and domain, and that a determined observer can sometimes spot patterns in how TLS-inside-TLS traffic behaves. For most networks, that does not matter.
Shadowsocks and Shadowsocks-2022
Shadowsocks started as a simple encrypted proxy and became one of the most widely used circumvention tools. Its traffic looks like random bytes rather than like any particular protocol, and modern versions use authenticated encryption (AEAD) such as AES-GCM and ChaCha20-Poly1305.
Shadowsocks-2022 is the modern edition. It fixes the weaknesses researchers found in older versions:
- keys are proper pre-shared keys instead of passwords;
- timestamps and salts protect against replay attacks;
- the handshake resists the active probing that was used to detect older servers.
It is a very fast choice on networks that throttle other VPN protocols but do not inspect traffic deeply.
VMess with AEAD
VMess is the original protocol of the V2Ray project. Early versions had design problems, but the AEAD header format introduced in 2020 addressed them. BSVPN supports VMess AEAD mainly for compatibility with networks and setups where it is the best available option.
Which one should you choose?
The honest answer is that it depends on the network, so here is the practical version:
- Leave it on automatic. BSVPN tests the network and picks a protocol that works.
- Restrictive network, VPNs blocked: VLESS with REALITY.
- Corporate proxy or a network that only allows web traffic: VLESS over WebSocket, or Trojan.
- Network that slows VPNs down but does not block them: Shadowsocks-2022.
- Something odd with everything else: try VMess AEAD.
Encryption is not the whole story
All four protocols protect your traffic with modern, authenticated encryption. What they cannot do is decide what the server does with your traffic. That depends on the provider: what it logs, where it is based and how its network is built. Read our security and no-logs policy to see how BSVPN handles that part.
Updated . Questions or corrections? Write to benelux@bsafegroup.be.