What is AnyTLS?
AnyTLS is a proxy protocol that runs over ordinary TLS. The client opens a TLS connection to the server, authenticates with a password and carries your traffic inside it. From the outside it looks like a regular encrypted TCP connection to a server, usually on port 443.
It was built to address the “TLS in TLS” signature. When a website is opened through a plain TLS proxy, a second TLS handshake runs inside the encrypted connection, and the sizes and order of the first packets can give it away. AnyTLS pads the first packets of a session according to a scheme set by the server, so their sizes no longer mirror the nested handshake. On top of that, one TLS connection carries several of your connections at once, and idle sessions are reused.
In short: AnyTLS is an option for networks where only TCP works and plain TLS proxies start getting recognised. It is not a replacement for VLESS + REALITY, but one more fallback profile.
When it helps
- The network allows only TCP. Unlike Hysteria 2 and AmneziaWG, AnyTLS does not need UDP.
- A plain TLS proxy has started dropping. If traffic is cut based on “TLS in TLS” patterns, padding the first packets can help.
- Your provider issues AnyTLS keys. v2RAGE then connects to them directly, without a separate client.
When it will not help
- The server address or its domain is blocked. No protocol gets around a block on the address itself.
- The network loses many packets. AnyTLS runs over TCP, and loss slows it down just as it slows VLESS over TCP. On such a network, if UDP works, Hysteria 2 is the better choice.
- You need speed on a clean network. Here AnyTLS is not faster than VLESS + XTLS Vision + REALITY; the VLESS options are compared in the VLESS vs XHTTP guide.
- Obfuscation is not a guarantee. It makes detection harder, but does not make a connection unblockable.
How to add your own AnyTLS key
An AnyTLS key from your own server or from another service is added to v2RAGE, the free app for your own keys and subscriptions. The RAGE app itself does not take your own keys: it works only with RAGE servers.
Key format
A key looks like this: anytls://password@address:port?sni=server.name#Name
- If no port is given, 443 is used.
- A key can use REALITY: it then carries
security=reality, the public keypbkandsid, as in VLESS. - A key can come as a single link or as a line in your provider's subscription.
- v2RAGE does not accept keys with certificate verification turned off (
insecure=1,allowInsecure=1) or with an empty password: the app would connect differently from what the key says.
Every parameter the app reads is listed in the v2RAGE documentation.
iPhone, iPad and Mac
- Open v2RAGE and go to Settings → Import Subscription.
- Tap Paste to insert the copied
anytls://link or subscription address, or Scan QR to scan a QR code. - Tap Import. Once the key is read, you will see “Server found” with its name, and the server appears in the list.
The hint under the input field does not yet list anytls:// among the schemes, but the key is accepted.
Where it works
| Device | AnyTLS |
|---|---|
| v2RAGE for iPhone, iPad and Mac | From version 2.5.1 |
| v2RAGE for Apple TV | Not yet: version 2.4.1 is released on Apple TV |
| v2RAGE for Android (beta) | Not yet: the beta does not accept anytls:// keys |
| RAGE | Your own keys cannot be added |
If a key does not import on iPhone, iPad or Mac, update v2RAGE from the App Store first.
Keep more than one profile. Networks block in different ways, and a fallback on another protocol helps when the main one stops working. How AmneziaWG, VLESS and Hysteria 2 differ, and how to add your own AmneziaWG key, is covered in AmneziaWG, VLESS or Hysteria 2.