Restarting the VPN on a router
VPN on routers is unstable right now. The tested options are Keenetic and OpenWrt routers. On phones and computers, use VLESS.
What to do on Keenetic and OpenWrt when the VPN on your router stops working after server maintenance.
Which routers work
VPN on routers is unstable right now. The tested options are Keenetic and OpenWrt routers. On phones and computers, use VLESS.
Router key (VLESS): Keenetic or Netcraze with USB (XKeen) and OpenWrt (Podkop or Passwall). You create the key yourself — in your account, the Mini App or the bot (see "Router key" below).
AmneziaWG on a paid plan: Keenetic, Netcraze, OpenWrt and some GL.iNet models.
Support depends on the model and firmware version — check yours before you buy. Keenetic: KeeneticOS 4.2 or later (AmneziaWG parameters via the router command line; on 5.1.1 and later they import from the .conf automatically). OpenWrt: the amneziawg-openwrt packages; the kernel module must match your build.
A router needs a .conf file, not a QR code. One config or key on a router is one device in your plan.
Plain WireGuard: for routers that support only plain WireGuard (TP-Link, Cudy, MikroTik and others).
Router key
A key is one to three vless:// lines, one per location you pick. If one doesn't answer, the router switches to the next.
Where to create one: in the bot, "Profile" → "My subscriptions" → VLESS → "Router keys"; in the Mini App, VLESS → "Router keys"; on the website, in the VLESS card.
Podkop or Passwall (OpenWrt): copy the lines, open the router's proxy settings, add each line as a separate server, save and restart the proxy.
XKeen (Keenetic): download 04_outbounds.json, copy it to the router into /opt/etc/xray/configs/ replacing the old one, run xkeen -xtest (the check must pass without errors), then xkeen -restart.
Each key takes one device place. On the free plan, only the free locations, and the router's traffic counts toward your monthly limit.
Don't forward the key lines: anyone with them can connect with your key.
Why a router does not reconnect on its own
During server maintenance the server's address can change. Your configuration file stays valid (unless you downloaded it with “Download with IP address”): it holds the server's name, not its address, and the name points to the new address right away.
But WireGuard and AmneziaWG look the name up only when the connection starts. A phone restarts its connection often; a router keeps it on for weeks and keeps talking to the old address: the connection looks on, but no traffic passes.
To make the router pick up the new address, turn the VPN connection on it off and on. When a server's address changes, we send you a notification.
If the VPN on your router stopped working
- 1If you downloaded the file with “Download with IP address”, a restart will not help: the file holds the previous address. Download it again with the same button and import it in place of the old one.
- 2Otherwise, turn the VPN connection on the router off and on — the steps for your router are below.
- 3Not connected yet — wait 5 minutes and restart the connection once more.
- 4If that did not help, download the configuration again in your dashboard, the mini app or the Telegram bot and import it on the router in place of the old one.
Of these routers, only OpenWrt 25.12 and newer has an automatic restart described in the vendor's documentation — see the OpenWrt section.
Keenetic / Netcraze
AmneziaWG on Keenetic is the same WireGuard connection, so the steps are the same for both protocols.
How to restart the connection
- 1Open the router's web interface and go to Internet → Other connections.
- 2In the WireGuard section, find the RuSolv connection.
- 3Turn its switch off, then set it back to On.
Or run these in the router's command line (Telnet, SSH or the web CLI — the router's address with /a at the end, for example http://192.168.1.1/a), replacing WireguardN with the interface name that the show interface command lists:
interface WireguardN down interface WireguardN up
- ⚠KeeneticOS 4.1.3 or newer is required: from this version on, restarting the connection makes the router look the server address up again. On older firmware a restart does not update the address — update the firmware to the current version.
OpenWrt
The steps are the same for WireGuard and AmneziaWG (the amneziawg-openwrt packages).
How to restart the connection
- 1Open the LuCI web interface and go to Network → Interfaces.
- 2In the VPN interface's row, click Restart.
Over SSH (replace wg0 with the name of your VPN interface):
ifup wg0
- ⚠A restart brings the interface up again, and the router looks the server address up by its name.
Automatic restart
On OpenWrt 25.12 and newer, the watchcat package restarts the interface by itself when pings through it stop getting through:
- 1Install the luci-app-watchcat package: System → Software.
- 2Open Services → Watchcat and click Add.
- 3In the Mode field, choose Restart Interface.
- 4In the Interface field, choose the VPN interface (for example, wg0).
- 5In the Period field, replace 6h with 5m (5 minutes): otherwise watchcat waits six hours.
- 6Leave Hosts To Check and Check Interval at their defaults.
- 7Click Save & Apply.
- ⚠If pings through the VPN interface fail for 5 minutes, watchcat restarts it and the router picks up the new server address.
- ⚠On OpenWrt 24.10 and older this mode does not restart a WireGuard interface — restart the connection by hand there.
MikroTik
RouterOS supports only plain WireGuard. Write to support — we'll pick WireGuard for your MikroTik. Since RouterOS 7.11, MikroTik states that a peer with a server name follows an address change; if the tunnel still does not come back, restart the peer as below.
How to restart the connection
- 1Open WinBox or WebFig and go to WireGuard → the Peers tab.
- 2Select the RuSolv peer, disable it (Disable), then enable it again (Enable).
- ⚠On RouterOS 7.24, disabling and enabling a peer could leave the tunnel not working — fixed in 7.24.1. Update RouterOS to the current stable version.
GL.iNet
The steps are for connections you have already set up. AmneziaWG on GL.iNet is only in select firmware (from 4.9); the tested options are Keenetic and OpenWrt.
How to restart the connection
- 1Open the router's admin panel and go to VPN → VPN Client Profile (on firmware before 4.9: VPN → WireGuard Client).
- 2Turn the RuSolv profile's connection off, then start it again: the three-dot icon → Start. Once it is connected, a green dot lights up next to the profile.
- ⚠On firmware 4.9 and newer, Kill Switch is on by default for VPN tunnels: if the VPN stops working, devices whose traffic goes through it have no internet at all until you restart the connection.
Keenetic and Netcraze: AmneziaWG does not connect (0 bytes)
On KeeneticOS 5.0 and earlier the router imports the AmneziaWG configuration file but does not apply its AmneziaWG parameters (Jc, Jmin, Jmax, S1, S2, H1–H4): the connection sends data but receives nothing. From KeeneticOS 5.1.1 the router takes these parameters from the file on its own. On older firmware, enter them with one command:
- 1Open the router's web interface, go to Internet → Other connections and look at the RuSolv connection's statistics: data is being sent, but 0 bytes are received.
- 2Open the router's command line: the router's address with /a at the end, for example http://192.168.1.1/a.
- 3Run the show interface command and find your connection by its description: its name is in the interface-name field, for example Wireguard0.
- 4Enter the command interface Wireguard0 wireguard asc Jc Jmin Jmax S1 S2 H1 H2 H3 H4, replacing Wireguard0 with your connection's name and Jc … H4 with the numbers from your .conf file, in the same order. You can copy the ready command with the numbers from the config card in your dashboard or the Mini App — the “Keenetic / Netcraze setup” section.
- 5Save the settings with system configuration save and restart the connection: turn it off and on again, as described in the Keenetic / Netcraze section.
interface Wireguard0 wireguard asc Jc Jmin Jmax S1 S2 H1 H2 H3 H4 system configuration save
- ⚠After you switch location, enter the command again with the numbers from the new file: each server has its own numbers.
