−53%2 years of NvoVPN at 1.70 €/mo instead of 3.61 €Get the deal
Router

VPN on MikroTik: WireGuard in RouterOS 7, and what about AmneziaWG

8 min read

MikroTik understands WireGuard "out of the box": import the file with one button (RouterOS 7.12+), then add DNS, a route and NAT by hand. No AmneziaWG in RouterOS — for Russia, a container or a second router.

VPN on MikroTik: WireGuard in RouterOS 7, and what about AmneziaWG

A VPN on MikroTik installs with no third-party software: RouterOS 7 understands plain WireGuard "out of the box", and the file from your NvoVPN account imports with a single button. After importing, you will need to add three things by hand — DNS, a route and NAT; the whole thing takes 15–20 minutes. An honest caveat: RouterOS has no AmneziaWG (WireGuard with traffic obfuscation). Where VPNs are not throttled, you do not need it anyway. If you are in Russia, read the "Are you in Russia?" block below: plain WireGuard is blocked there, and the route is different.

  1. Download the WireGuard variant of the file

    In your account → "Connection" → "Manual", choose a server, the device "Router", and click "Create". Next to the AmneziaWG file is a plain WireGuard variant — that is the one MikroTik needs. Download it and note two lines: Address (the router's address in the tunnel) and DNS.

  2. Upload the file to the router and import it

    You need RouterOS 7.12 or later — file import (wg-import) arrived in that version. In WinBox or WebFig, open "Files" → "Upload" → choose the .conf file. Then "WireGuard" → "WG Import" → point it to the uploaded file. If your version does not have that button, type /interface/wireguard/wg-import file=filename.conf in "New Terminal". The import creates a WireGuard interface with your key, and a peer (a record for our server) with its key, Endpoint and AllowedIPs.

  3. Add by hand what the import does not do

    "IP" → "Addresses": the address from the Address line needs to sit on the WireGuard interface — add it if it is not there. "IP" → "DNS" → the "Servers" field: enter the address from the DNS line, since the import does not read it. "IP" → "Firewall" → the "NAT" tab → "+": Chain srcnat, Out. Interface — your WireGuard interface, Action masquerade.

    Routing all home traffic into the tunnel: "Routing" → "Tables" → a new table (call it WG, tick "FIB"); "Routing" → "Rules" → a rule: Src. Address — your home network (for example 192.168.88.0/24), Action "lookup only in table", Table WG; "IP" → "Routes" → "+": Dst. Address 0.0.0.0/0, Gateway — the WireGuard interface, Routing Table WG. Do not touch the interface's MTU: 1420 is the default.

  4. Check the IP from a device behind the router

    On a laptop or phone connected to the MikroTik, open the "What is my IP" page. It should show the NvoVPN server's address, not your provider's. Seeing your provider's address? See the "If it will not connect" section below.

The import creates the interface and peer; you add DNS, the route and NAT yourself.

MikroTik will not understand the AmneziaWG file from your account

RouterOS has no AmneziaWG support — only plain WireGuard. On networks with no blocks, the WireGuard variant is enough. In Russia, plain WireGuard is throttled, and only AmneziaWG will connect — how to get it on MikroTik is in the next block.

Are you in Russia? AmneziaWG on MikroTik only comes via a container or a second router

Russian carriers recognize WireGuard and cut it off — the WireGuard variant of the file will not connect on MikroTik in Russia. Only AmneziaWG works, and RouterOS does not have it. Three routes are left.

Option 1 — an AmneziaWG container on the MikroTik itself (advanced)

A container is a small separate program inside the router. MikroTik only allows containers on models with an ARM, ARM64 or x86 CPU: hAP ax², hAP ax³, RB5009, hAP ac². MIPS models, including the hEX (RB750Gr3), have no containers — AmneziaWG is impossible on them. You need RouterOS 7.4 or later, the container package, device-mode turned on (confirmed by pressing the reset button on the case), and, per MikroTik's recommendation, an external drive for the image. Ready-made AmneziaWG containers for RouterOS are built by third-party developers, not MikroTik: the container sits between the router's stock WireGuard interface and our server and adds obfuscation; it understands the AmneziaWG 1.0 file from your account. MikroTik warns: a container on a compromised router lets malicious code run. This route is for people comfortable working with RouterOS — MikroTik's container documentation.

Option 2 — a second router with AmneziaWG behind the MikroTik

A Keenetic (KeeneticOS 4.3.4 or later imports the AmneziaWG file from your account with a single button), or a GL.iNet with firmware 4.9 or later. Run a cable from the MikroTik's LAN port to the second router's WAN port, upload the AmneziaWG file on it, and connect your devices to it. The "router behind a router" setup is covered in detail in the guide about provider routers.

Keenetic guide

Option 3 — the app on your devices

The MikroTik stays without a VPN, and NvoVPN installs on your phone, computer and Android TV. If the network throttles the VPN, the app switches to stealth mode by itself — there is nothing to turn on.

NvoVPN apps

If the WireGuard client on MikroTik will not connect

  • "Could not parse" during import. The file starts with a comment line beginning with # — delete lines like that in a text editor and try again. RouterOS below 7.12 has no wg-import command — update the system.
  • The tunnel is up, sites will not open. That is DNS: the DNS line from the file is not imported. Enter the address in "IP" → "DNS" → "Servers", and hand it to your devices in "IP" → "DHCP Server" → "Networks" too.
  • The internet bypasses the tunnel. Check three places: the WG table was created with "FIB" ticked, the rule in "Routing" → "Rules" names your network and "lookup only in table" WG, and the 0.0.0.0/0 route sits specifically in the WG table. So devices at home can see each other, add one more rule above this one: Src. Address and Dst. Address — your network, Action "lookup", Table main.
  • No masquerade rule. Without it, the server drops packets carrying home addresses — the tunnel is "connected", but there is no data.
  • Heavy pages hang, small ones open. Check the WireGuard interface's MTU: it needs to be 1420.
  • One file, one device. You cannot use the router's configuration on a phone at the same time: the connection will drop on both. A subscription covers up to five configurations.
  • Kill switch. RouterOS has no built-in "block internet if the tunnel drops" tickbox.
  • Your AmneziaWG router connects, but no traffic gets through. Message support — we will prepare a configuration with a route for Russia.

MikroTik models and RouterOS versions

Per the manufacturer's data as of September 2026. WireGuard exists on any model with RouterOS 7 (RouterOS 6 does not have it); file import (wg-import) arrived with 7.12, text import (config-string) with 7.19. The containers AmneziaWG needs are only available on the ARM, ARM64 and x86 architectures; MIPSBE, MMIPS, SMIPS, TILE and PPC do not have them — MikroTik's architecture support table. Your model's architecture is listed on its page at mikrotik.com.

ModelArchitectureWireGuardContainer for AmneziaWG
hEX (RB750Gr3)MMIPSyesno
hAP ac²ARM 32-bit, 128 MB RAMyesyes; 16 MB flash — image on a USB drive
hAP ax²ARM 64-bit, 1 GB RAMyesyes
hAP ax³ARM 64-bit, 1 GB RAMyesyes
RB5009UG+S+INARM 64-bit, 1 GB RAMyesyes
hEX refresh (EN7562CT)ARMyesyes, arm32v5 images only

The interface and peer parameters are described in MikroTik's official WireGuard documentation.

FAQ

Can I upload the AmneziaWG file from my account to MikroTik? No. RouterOS only understands plain WireGuard — take the WireGuard variant of the file. It will not connect in Russia: you need a container or a second router from the "Are you in Russia?" block.

How do I route only the TV through the VPN? In the "Routing" → "Rules" rule, put one device's address in Src. Address instead of the whole network. The rest will go to the internet directly.

I have RouterOS 6 — what do I do? WireGuard only exists in RouterOS 7. Update the system: "System" → "Packages".

How many devices behind the MikroTik does the subscription count? One: to NvoVPN, the router is one configuration, no matter how many devices sit behind it.

Will a VPN slow the router down? WireGuard encryption is light, but a weak CPU becomes the bottleneck. A reference point: the hAP ac²'s CPU gives about 136 Mbps in WireGuard, per measurements from the OpenWrt community. That is enough for a TV and everyday use.

Related guides: VPN on a router: an overview by firmware · VPN on Keenetic · AmneziaWG vs WireGuard: what is the difference · VPN on TP-Link

Did not work?Message support: tell us your device and the step you got stuck on — we will help.
Contact support
Works where VPNs are blocked

Ready to connect?

Download the app and sign in — you are protected. The free trial starts by itself, no card needed.