One tap, four paths: how Mayak connects

You tap “Connect”, a second or two passes — and the screen says “Protected”. More happens in those seconds than meets the eye: the app knows several different ways to reach the server and picks, on the fly, the one that is alive on your particular network. Here is how that ladder works — with no extra buttons on your side.

In short. The app reaches the server by four different paths and walks them itself, top down: straight there first, then over the second protocol, X-ray, then through a nearby entry point inside the country, then through an allowlist address. You press nothing and choose nothing — the walk fits into the same seconds an ordinary connection takes. A path counts as alive not when the tunnel comes up, but when a real reply arrives from the other side.

We build Mayak. The article below is about how that walk works: four routes to the server, automatic selection of the live one, and an honest label showing which one you’re on. 3 days free, no card required.

Why one path isn't enough

Between your phone and the server lies a carrier's network, and conditions there differ every time: on one network everything glides through, on another encrypted traffic hits interference, on a third certain kinds of packets simply vanish. And today's picture says nothing about tomorrow — the same SIM behaves differently across town. A service with one fixed route goes silent in that situation, leaving you to guess what broke. So Mayak keeps several routes and walks through them itself.

Rung 1: direct

The shortest path: your device talks straight to the server of the country you picked (on “[Cascade]” directions it talks to an entry inside Russia instead, and the traffic goes on to the exit by itself). It runs AmneziaWG 3.1 — the same fast, battle-tested WireGuard inside, but with the outward pattern of the connection altered, so it doesn't stand out from ordinary traffic and suffers less from carriers' traffic-management systems. On most networks the story ends right here: it's the fastest option, and the app always tries it first.

There is a subtlety here that you can see on screen. If your carrier gave the phone a newer-style address (IPv6), the app first tries to reach the server over it, and only then over the familiar one. The reason is simple: with some carriers the older address path is squeezed for connections like ours, while the newer one is not. When the new address works, connecting takes about a second. When there is none, or it doesn't get through, you'll see the line “Trying the usual path…” — that is not an error but a second attempt at the same first rung, to the very same server. The ladder does not step down at that point.

Rung 2: X-ray

If the direct path doesn't answer, the app tries a second protocol — X-ray. From the outside such a connection looks like an ordinary visit to a website; inside, it carries the same tunnel to the very same server of the chosen country, with no intermediate entry point. The screen then shows an “X-ray” label next to the status. Not every country has X-ray yet: where it doesn't, the app moves straight on to the next rung.

If you don't need this path — or, the other way round, need only this one — Settings has “AmneziaWG” and “X-ray” switches in the “Network” section. Either one can be turned off, but not both at once.

Rung 3: through a nearby entry point

When the direct path doesn't answer, distance — in the network sense — is often the culprit: traffic can't reach the faraway server, yet reaches a point in your own country just fine. That's what this rung is for: the app connects to a nearby entry point, which relays the traffic onward to the very same server in the very same country.

How protection works here depends on the direction. On directions without a cascade the entry only passes sealed packets along without decrypting them: only the destination server can open them. Directions marked “[Cascade]” are built differently, and we say so plainly: the entry in Russia is part of the design there. It accepts your connection, decrypts the tunnel and passes the traffic on over a private link to the exit abroad. So technically the entry handles the traffic inside the tunnel and can see which addresses you contact; the content of sites and apps with their own encryption (https addresses) is not open to it. What we keep and what we do not keep is described in the privacy policy, and how a cascade works is in a separate article.

And the screen is honest about the route through a nearby entry point: a “Via Russia” label appears next to the status.

Rung 4: the allowlist address

Sometimes a mobile network lets through only the websites on its allowlist, and then none of the paths above gets through. If the app has already seen this on your network, we give it one more path — the allowlist address: the same X-ray, but through an address that stays open at such hours. The reserve path on port 443 is exactly X-ray: it travels over TCP like an ordinary visit to a website, and the app switches to it on its own.

The allowlist address can be slower than the direct path, and we don't hide it: the screen shows an “Allowlist address” label. It is in app version 1.0.24 and newer and works only while “X-ray” is on. What we measured about it and what we do not promise is in our article on the allowlist. And if your network is like this all the time, there is nothing to set up: the app picks the path itself when it is needed.

How the app knows a path is alive

The most interesting part isn't the paths themselves but how the working one gets chosen. A “connected” icon guarantees nothing: an encrypted channel can establish while its packets quietly go missing. So Mayak verifies not the fact of a connection but the actual way out: it sends a request through the tunnel and waits for an answer from the outside world. Answer received — the path works end to end, phone to open internet. No answer within a few seconds — the path is declared dead, and the app steps down to the next rung. That's why you see steps changing on the screen instead of an endless “Connecting…”: the ladder keeps descending until it finds footing.

The same check keeps running after you're connected. If traffic dies on a live tunnel, the app notices and says so plainly: “There is a connection, but no traffic — reconnect”. Why that happens is a separate article.

Small things that save seconds

  • Everything is prepared in advance. While you're choosing a country, the app is already fetching the connection settings — so the tap itself lands fast.
  • Connecting without our site. The last working configuration is stored on the device, encrypted: even if our issuing server is temporarily unreachable, you can still connect.
  • A network change is no reason to fall over. Wi-Fi hands over to mobile data, an elevator, the subway — the tunnel re-establishes itself without another round trip for settings.
  • An honest route label. “Direct”, “X-ray”, “Via Russia” or “Allowlist address” — you can always see which path you're on, because that's what your speed depends on.

For you, all this machinery folds into a single button: tap it, and the app finds a living path on its own. The ladder is its job, not yours.

Try Mayak

Four routes to the server, automatic selection of the live one, and an honest label showing which one you're on. 3 days free, no card required.

The account is created right in the app. 3 free days once you sign up with your email.