AmneziaWG and Amnezia VPN on a Keenetic router
Upload the AmneziaWG .conf file to your router once — and phones, TVs and laptops on your home Wi-Fi get a protected connection without installing anything. Below: which KeeneticOS you need, the steps from Amnezia’s docs and how to send only chosen devices through the VPN.
- 1Get a .conf filein your Amnezia Premium account
- 2Upload it to the routerInternet → Other connections → Upload from file
- 3Turn it onand choose which devices use the VPN
What you need for the setup
Four things — and all of them come from official places: your router’s own web interface, Amnezia’s documentation and your Amnezia account.
my.keenetic.net
The router’s settings page (or 192.168.1.1). You need the administrator login, admin by default.
cp.amnezia.org
Your account: this is where you create the AmneziaWG .conf file for the router. Create it with the VPN turned off.
AmneziaVPN
Self-hosted: in the app, share the connection and choose the “Original AmneziaWG format”.
docs.amnezia.org
Instructions for Keenetic/Netcraze: the current one and a separate one for the older interface.
Back up your settings first
Before any changes, download the firmware and startup-config files in System settings → Files. A developer build may be less stable than the release one, so Amnezia recommends turning off automatic updates.
Will your router work
The version of KeeneticOS decides which guide you follow. You can see it on the router’s start page and in System settings.
| What to check | What you need | If not |
|---|---|---|
| Model | Keenetic or Netcraze from Amnezia’s list (Giga, Hero, Start, Air, Ultra, Viva, Speedster, Hopper and others) | check the list in the documentation |
| KeeneticOS | 5.2 Alpha 11 or later — AmneziaWG 3.1 built in | update via the developer channel, or use the older guide |
| Older KeeneticOS | 4.2 or later — AmneziaWG 1.0, older interface | below 4.2 — update the firmware |
| Component | WireGuard VPN | install it in “Change component set” |
| Access | Amnezia Premium or your own server | Amnezia Free does not work on a router |
Set up your Keenetic
Start with your KeeneticOS version, then set up DNS and choose how traffic goes. Menu names follow the Russian interface used in the docs; the English one may word them slightly differently.
AmneziaWG 3.1 on KeeneticOS 5.2+
Current Amnezia guide: built-in support from 5.2 Alpha 11 (developer channel)
- Download a backup: System settings → Files, the
firmwareandstartup-configfiles. - In System settings switch to the developer update channel and update to KeeneticOS 5.2 Alpha 11 or later. Can’t see the new version? Refresh the page.
- Click Change component set, tick WireGuard VPN and click Update NDMS. Wait for the router to restart.
- Set up DNS (the “DNS” tab of this guide).
- Go to Internet → Other connections and click Upload from file. Choose your AmneziaWG
.conffile. - Tick Use for internet access, click Save and switch the connection to On.
AmneziaWG 1.0 on the older interface
Amnezia’s separate guide for KeeneticOS 4.2 and later
- Save a backup in Management → System settings (startup-config) and make sure KeeneticOS is 4.2 or later with the WireGuard VPN component installed.
- Go to Internet → Other connections, in the WireGuard section click Upload from file and choose your
.conf. - Open the new connection (click the row, not the switch) and check that its internal IP address differs from your other WireGuard connections.
- Tick Use for internet access and click Save.
- On KeeneticOS 4.3.4 and later the extra AmneziaWG parameters are imported from the file automatically. On 4.2–4.3.3 add them by hand in the command line:
interface {name} wireguard asc {jc} {jmin} {jmax} {s1} {s2} {h1} {h2} {h3} {h4}, thensystem configuration save. - Turn the connection on: after a few seconds the peer indicator turns green and the last handshake time appears.
show interface command.DNS that goes through the VPN
So that address lookups are protected too
- In Network rules → Internet filters, on the DNS setup tab add the servers
8.8.8.8,8.8.4.4,1.1.1.1,1.0.0.1and9.9.9.9. - In Internet → Ethernet cable turn on Ignore ISP DNSv4 (recommended, optional) and set IPv6 to Not used.
- In Network rules → Routing, on the IPv4 routes tab click Add: type Host route, destination — one of the DNS servers, interface — your WireGuard connection, gateway — empty.
- Tick Add automatically, save, and repeat for every DNS address.
All traffic of chosen devices via the VPN
A separate “VPN” policy: you decide which devices use it
- In Internet → Connection priorities check that in the Default policy your main connection is above WireGuard.
- Click Add policy, name it, for example, VPN, and save.
- Open the VPN policy, tick only the WireGuard connection and save. With only WireGuard in it, traffic won’t go out through the main connection if the VPN drops.
- On the Policy application tab move the devices or segments you need into the VPN policy and confirm. The guest network is handy here.
- Open ipinfo.io on such a device: it should show the VPN server’s IP.
Only part of the traffic via the VPN
Routes by domain name or by IP subnet
- On every device turn off custom DNS: Private DNS on Android, secure DNS in browsers, DNS in apps — otherwise domain routes won’t work.
- Everything except .ru, .рф and .su: put WireGuard above the main connection in the Default policy; on the DNS routes tab add a list with
ru,рф,su(one per line, no asterisks) and a rule to the main internet interface. - Only chosen domains: keep the main connection on top; on DNS routes create a domain list (up to 300 lines) and add a rule to the WireGuard interface.
- Only chosen IP subnets: on IPv4 routes click Upload, choose the WireGuard interface and a routes file in Keenetic Routes (.bat) format — up to 1024 lines per file.
- Tick Add automatically for every rule and save.
How to upload the .conf file
A router doesn’t take a vpn:// link — it needs a .conf file in the native AmneziaWG format. One file works on one device only.
- STEP 1 Other connections Upload from file
- STEP 2 amnezia-router.confOpen
- STEP 3 Use for internet access ✓ Save
- STEP 4 On
A scheme of the router screens, not a screenshot. The file name is an example — yours will differ.
Your own server or Premium
Amnezia self-hosted
- You rent and maintain the server yourself.
- In AmneziaVPN: share the connection → “Original AmneziaWG format”.
- Amnezia Free does not work on a router.
A ready .conf in your account
- Create the router file at cp.amnezia.org with the VPN turned off.
- The router counts as one of 7 devices — and covers everyone on its Wi-Fi.
- Servers and updates are on Amnezia’s side.
Common Keenetic errors
The update fails: not enough space
In Change component set turn off components you don’t use, then update again.
The new KeeneticOS version isn’t shown
After switching to the developer channel, refresh the page in your browser.
Two WireGuard connections conflict
Each connection’s internal IP must be unique. Create a new .conf file with a different address.
“Failed to import routes from file”
The file is longer than 1024 lines. Split it into several files and upload each one.
Routing doesn’t work on one device
That device has its own DNS set — in the system, the browser or an app. Turn it off.
The peer doesn’t turn green
Check the log in Management → Diagnostics → Show log. Still stuck? Amnezia support: support@amnezia.org or @amneziahub_bot on Telegram.
How to tell it works
- In Other connections the WireGuard switch is on, the peer is green and the last handshake time is updating.
- On a device in the VPN policy, ipinfo.io shows the VPN server’s IP and country.
- With split routing: a local IP-check site shows your ISP’s IP, ipinfo.io — the VPN’s.
Common questions
How do I set up Amnezia VPN on Keenetic?
Install the WireGuard VPN component, upload the AmneziaWG .conf file in Internet → Other connections → Upload from file, tick “Use for internet access” and turn the connection on. Then set up DNS and choose which devices use the VPN.
Does Keenetic support AmneziaWG?
Yes. According to Amnezia’s docs, AmneziaWG 3.1 is built into KeeneticOS from 5.2 Alpha 11, and the older guide covers AmneziaWG 1.0 on KeeneticOS 4.2 and later.
Which VPN should I use on a Keenetic router?
You need a service that gives a WireGuard-compatible .conf file. Amnezia Premium gives a ready AmneziaWG file in your account, and the router counts as one of 7 devices.
Where do I get an AmneziaWG config for a router?
With Premium — create it in your account at cp.amnezia.org with the VPN off. With your own server — in the AmneziaVPN app, share the connection in the “Original AmneziaWG format”.
Can only some devices use the VPN?
Yes: create a “VPN” policy with only the WireGuard connection and move the devices you need into it on the Policy application tab. The rest stay on the main connection.
Does this guide work for Netcraze routers?
Yes, Amnezia’s guide is written for Keenetic and Netcraze routers; its example uses a Netcraze Giga.
Why put Amnezia VPN on a router at all?
The router protects every device on your Wi-Fi at once — including a TV or console where you can’t install a VPN app — and takes up only one device slot.
One file — the whole home is protected
With Premium the router file is ready in your account, and the router takes just one of the 7 device slots.
🎟 Coupon AMDI••••• — How to apply