In your Mayak account you can get a settings file for plain WireGuard and open it in the official WireGuard app on Windows, macOS, Android and iPhone, or load it into a Keenetic router. Below: where to get the file, how to open it on each system, how to choose on Keenetic which devices and networks go through the tunnel, and how to tell the connection works.
In short. You get the file in your account: the “File for a computer” card → “Static connections (WireGuard)” → location → system (“Windows” or “Linux, macOS, router”) → “Get a WireGuard file”. Then, in the WireGuard app, import the file (or scan the QR code) and switch the tunnel on. There is one file per location and per device, and the same file cannot be downloaded twice. Keenetic needs only the stock firmware: the “WireGuard VPN” component → “Other connections” → import from file, then set the routes (see the section below). We tested the file on one device; on the other systems the steps are the standard ones of the official WireGuard app, and what we did not go through is stated below.
We make Mayak, a private network with an Android app. A WireGuard file is the second way to connect, for those who want the standard WireGuard program on a computer or a router. The file takes one device slot of your plan; 3 days free once you sign up with your email, no card needed.
🍎 On iPhone Mayak works with the subscription link from your account. INCY was removed from the Russian App Store on 27 October 2026: if you already have it, it keeps working — do not delete it, it cannot be downloaded again from the Russian store right now. With a Russian Apple account, Clash Mi and Shadowrocket are available now (we have not verified them live with our link); Happ and INCY need an Apple account of another country.
What the file is and when you need it
Most people connect to Mayak through our Android app or with a subscription link. A WireGuard file is another way, for those who want to open the connection in the standard WireGuard program: on Windows, on a Mac, on a router, or simply because it is more familiar.
We call this connection static: its settings do not change, even when we replace machines on our side. The file leads to our entrance in Russia, and from there the traffic goes to the country you chose. At the moment in the account these are the Netherlands and Germany; the list of locations comes from our server and may change. How a static file differs from a dynamic AmneziaWG file is explained in a separate article, and routers in general are covered on the page for routers.
What to know before the first click:
- the file takes one slot of your plan, like any device;
- for one location in an account there is one WireGuard file: if you get a new one, the previous one stops connecting, and the same file cannot be downloaded again;
- the file is for one device. For a second device you need another location, the Mayak app or an AmneziaWG file (also in your account);
- the file contains the device’s private key. Keep it like a password: our server creates the key at the moment of issue and does not store it.
Step 1. Get the file in your account
- Sign in to your account.
- Find the “File for a computer” card and the “Static connections (WireGuard)” section. It comes first and is collapsed: click its heading to open it.
- Choose a location.
- Choose the system: “Windows” for Windows computers; “Linux, macOS, router” for everything else: Mac, phone, router.
- Click “Get a WireGuard file” and confirm. The account reminds you that the file takes a device slot and cancels the previous file of this location.
- Download the file (extension
.conf). For the “Linux, macOS, router” file the account also shows a QR code, handy for a phone: open the account on a computer and point the phone camera from the WireGuard app at the screen. The Windows file has no QR code.
Why Windows has its own file: its routes are written differently so that the WireGuard app does not cut off the internet. Do not take the “Linux, macOS, router” file for Windows, and the “Windows” file will not work on a router or Linux; the account warns about this too.
If there are no free slots in your plan, the account offers to replace your AmneziaWG file of the same location: the old one then stops working at once. If the account says the entrances are unavailable, wait a little and try again. You can get and reissue files only a few times per hour per account.
Step 2. Install the official WireGuard app
Take the program only from the official WireGuard installation page or from the app store of your system. It is a free app by the WireGuard developers and has nothing to do with Mayak. Which stores are available depends on the country of your store account, and we did not check that.
Step 3. Open the file in the app
Windows
- Start WireGuard.
- Click “Add Tunnel” → “Import tunnel(s) from file…” and choose the file you got marked “Windows”.
- Click “Activate”. Windows asks for permission to change the network: agree.
The Windows file is written so that in the app it has no built-in “kill switch” (the checkbox that cuts off the internet when the tunnel drops): that is exactly why the app does not cut it off. How this file behaves on a live Windows machine when the connection drops, we did not test.
macOS
- Install WireGuard.
- Choose importing a tunnel from a file (“Import tunnel(s) from file”) and pick the file marked “Linux, macOS, router”.
- Allow adding the network configuration when macOS asks, and click “Activate”.
Android
- Install WireGuard.
- Tap “+” and choose “Import from file or archive” (the
.conffile) or “Scan from QR code” and point the camera at the QR code from the account open on a computer. - Switch the tunnel on. Android asks for permission to connect: agree.
Take the file marked “Linux, macOS, router”. The account serves it as a plain .conf file; if your phone added .txt to the name, rename the file back to .conf.
iPhone and iPad
- Install WireGuard from the App Store.
- Tap “Add a tunnel” → “Create from file or archive”, or “Create from QR code” and point the camera at the QR code on a computer screen.
- Allow adding the configuration and switch the tunnel on.
For iPhone, Mayak also has the familiar way: the subscription link from your account (how to connect Mayak). A WireGuard file is for those who want the WireGuard program itself.
Keenetic router: importing the file and routes
A router needs the static file marked “Linux, macOS, router”. Keenetic’s stock firmware is enough for it: you do not have to switch to the developer channel (the beta). The beta is needed only by the dynamic AmneziaWG file, which is a different story covered in the article about AmneziaWG on Keenetic. The steps below follow Keenetic’s help (links in the text); the names of menu items in your KeeneticOS version may differ slightly. We were told that our file imports on the stock firmware; we have not gone through the whole path with routes on different Keenetic models.
Importing the file
- Install the “WireGuard VPN” component: “General settings” → “Updates and components of KeeneticOS” → “Change set of components”. After that a WireGuard section appears on the “Other connections” page (Keenetic help “WireGuard VPN”; the links in this article lead to Keenetic’s Russian-language help, and the menu names here are our translation of it).
- Get the “Linux, macOS, router” file in your account (step 1).
- “Other connections” → WireGuard → “Import from file” and point to the downloaded file.
- Switch the connection on. Our file already has
PersistentKeepalive = 25; Keenetic’s help requires this parameter to be filled in on the client.
Routes: what goes through the tunnel
A tunnel is a road; routes decide which devices and addresses take it. In our file the AllowedIPs line holds 0.0.0.0/0 (and on locations with IPv6, ::/0 as well), meaning “any addresses may be sent into the tunnel”. Keenetic explains this field so: “Allowed IPs” define which addresses are passed to the other side, and to allow any, the subnet 0.0.0.0/0 is needed. But whether a device’s traffic really goes there is decided not by the file but by the router’s settings. Pick what you need.
Option 1. The whole home through the tunnel. According to Keenetic’s help “Internet access through a WireGuard tunnel” you need to:
- In the WireGuard connection settings, turn on the option for using it for internet access (that help words it as “use for entering the Internet”, while the “Connection priorities” help words the same option as “use for exiting to the internet”: look for the one that makes this connection serve internet access).
- Open “Internet” → “Connection priorities” and drag the WireGuard connection to the top of the list. According to the help, “the highest priority makes a connection the main one”, and when the router starts, the gateway of the connection with the highest priority becomes the default gateway (help “Connection priorities”).
The same help says that if the main connection fails, the next available connection with internet access by priority becomes the gateway. Whether Keenetic considers a WireGuard tunnel “failed” when the server stops answering (for example, access has ended or the file was replaced by a new one) the help does not say, and we did not test it. So after setting up, check the result (step 4) and remember this if the internet suddenly stops or shows your provider’s address.
Option 2. Only the devices you choose (for example, one computer and a TV). Keenetic has internet access policies for this, on the same “Connection priorities” page:
- Make sure the option for internet access is on for the WireGuard connection (option 1, item 1): the help asks to check this before creating a policy.
- The “Internet access policies” tab → “Add policy”, enter a name, tick WireGuard in the right-hand “Connection” column and save.
- The “Policy assignment” tab: select the devices and drag them onto the new policy. Other devices keep going out through the main connection. You can check each device’s policy on the “Client list” page.
Two notes from the same help. First, a policy gets the DNS servers only of the connections that belong to it. Second, there can be no more than 16 policies.
Option 3. Only the networks or addresses you choose. Two ways, both per Keenetic’s help:
- in the peer settings, replace
0.0.0.0/0in the “Allowed IPs” field with the list of subnets you need (the help describes this field in manual setup; whether your version lets you edit the peer after import, check on the router); - or add static routes: “Network rules” → “Routing” → “Static routes” → “Add route”. In the “Static route parameters” window you choose the “Route type” (“Route to host”, “Route to network” or “Default route”), the “Destination address” and the “Interface”, where you put the WireGuard connection (help “Static routes”). The example in the help “Setting up selective routing” is a route to a single host through a chosen connection; it also warns that a domain’s IP address may change, and then the setup stops working.
What must stay outside the tunnel: the home network and DNS
The home network. Addresses of the form 192.168.x.x are the private addresses of your flat (more): a printer, a network drive and the router’s own page exist only inside it, and there is no reason for them to travel through the tunnel to our server. What exactly Keenetic does with such addresses under the route 0.0.0.0/0 the help does not describe separately, so we claim nothing: after setting up, check that the router page and your home devices still open. If you write your own routes or change Allowed IPs (option 3), do not include your home subnet in them.
DNS. What Keenetic does with the DNS line of our file on import, the help does not describe, and we did not test it. The line itself is built like this: first comes the internal address 10.111.111.111 (name lookups go through the tunnel), then fallback public addresses. If not all traffic goes into the tunnel (options 2 and 3), the road to 10.111.111.111 must also go through WireGuard: add a route to 10.111.111.111/32 (“Route to host”, the interface is the WireGuard connection). Without it the router asks for names outside the tunnel: the connection is up, but sites do not open. Details are in the section “DNS in the file” on the page for routers.
Another router or modem
A router’s WireGuard client usually has “Import from file”: load the “Linux, macOS, router” file. The particulars (DNS addresses, the route to the internal DNS) are described on the page “WireGuard files for routers”. If your firmware has no import, enter the values from the file by hand: the key, the address, the server’s key and address (the Endpoint line), the allowed addresses and the PersistentKeepalive interval. We do not cover routers other than Keenetic on this page and give no steps for them.
Need the file? Create an account. A WireGuard file takes one device slot of your plan, there is no separate charge for it. 3 days free once you sign up with your email, no card needed.
🍎 On iPhone Mayak works with the subscription link from your account. INCY was removed from the Russian App Store on 27 October 2026: if you already have it, it keeps working — do not delete it, it cannot be downloaded again from the Russian store right now. With a Russian Apple account, Clash Mi and Shadowrocket are available now (we have not verified them live with our link); Happ and INCY need an Apple account of another country.
Step 4. Check that it works
- Switch the tunnel on in the app: the status should change to “active” and the counters of received and sent data should grow. On a router, look at the connection state on the “Other connections” page.
- Open a page that shows your internet address (for example, our guide on how to find your IP). The address should change to that of the chosen country. For devices you did not send into the tunnel on the router it naturally does not change.
- Open any site that opened before.
If the address did not change or pages do not open, switch the tunnel off and on again and check that the file is from your latest download (after a new file the old one does not work). Heavy pages hang while light ones open? Most likely it is the packet size: what MTU to set for WireGuard. A file from Mayak already has 1420.
What is in the file
Three groups of lines, and you usually need to change nothing by hand:
- Interface: your private key, the device’s internal address, the DNS list and the packet size (
MTU = 1420). In DNS the internal address10.111.111.111comes first, then fallback public addresses in case the first does not answer. - Peer: the public key of our entrance and its address (name and port; the port depends on the location).
- AllowedIPs, PersistentKeepalive: all of the device’s traffic goes through the tunnel; a keepalive every 25 seconds keeps the connection alive behind a home router. In the Windows file the default route is written as two halves (
0.0.0.0/1and128.0.0.0/1) that cover the same addresses.
What we checked
- The file from the account on a live device. A file obtained in the account on 28 November 2026 was opened in the WireGuard app, the connection came up, pages opened and data flowed, on the mobile network of one operator (MegaFon, LTE). One measurement on one device: 81 Mbit/s down, 7.7 Mbit/s up, latency 89 ms. This is not a promise of speed on your network.
- The contents of the file and the issuing rules were checked against our code and the service description as of 28 November 2026: two locations, one file per location and account, a QR code only for the “Linux, macOS, router” file, at most six issues per hour, the slot released after 30 days without a single connection.
- Keenetic help pages: “WireGuard VPN”, “Internet access through a WireGuard tunnel”, “Connection priorities”, “Static routes”, “Setting up selective routing”, read on 28 November 2026; the menu names and conditions are given per them.
What we do not know
- How the file behaves on each system other than the check above: on Windows, macOS, iPhone and on routers our steps are the standard ones of the official WireGuard app, and we did not film them live here. If it did not work for you, write to support: attach the system, the app version and what the log in the WireGuard program shows (do not send the file itself).
- How the file connects on the mobile networks of different operators: the check was on one, and we have not measured it systematically. Away from home, on a phone, the Mayak app is more convenient.
- How the Windows file behaves when the connection drops: it has no built-in leak protection (see above), and what that looks like in practice we did not test.
- How Keenetic treats home-network addresses, the DNS line of our file and priorities when the server stops answering: Keenetic’s help does not say, and we did not test it. Whether your model has the same firmware and the same menu names, see on your own router.
- The availability of the WireGuard app in the stores of different countries.
Short answers
Can one file be used on two devices? No. One file is one device; for one location in an account there is one WireGuard file. For a second device take another location, the Mayak app or an AmneziaWG file.
Can I download the same file again? No. You can get a new one; the old one stops working.
How does a WireGuard file differ from an AmneziaWG file? AmneziaWG is the same WireGuard with a different look of packets; it is opened in the AmneziaWG app and is tied to a specific exit. A WireGuard file is plain, opens in the standard program and does not change. More: AmneziaWG: what it is and how it differs.
Does Keenetic need beta firmware? For a static WireGuard file, no: the stock firmware is enough. The beta (developer channel) is needed by the dynamic AmneziaWG file; see the article about AmneziaWG on Keenetic.
How to send only a TV or only a computer through the tunnel on Keenetic? Create an internet access policy with the WireGuard connection and assign the devices to it: option 2 above.
How do I turn it off? Switch the tunnel off in the app, or the connection on the router. The slot stays with the file until you get a new file of this location or until 30 days pass without a single connection; then the slot is released by itself and the file stops working. Whether deleting the device in the account releases the slot, we did not check in this article.
How much does it cost? There is no separate charge for the file: it takes one device slot of your plan. Plans are in the help.
WireGuard® is a registered trademark of Jason A. Donenfeld. Mayak is not affiliated with the WireGuard developers; we use the open protocol and refer to its official app.