WireGuard on a MikroTik router
Updated 30 October 2026 · Applies to: MikroTik RouterOS 7
A MikroTik router connects your whole home network, or selected devices, to VPNonline - no app on every device.
Before you start
- A MikroTik router with RouterOS 7 (WireGuard built in).
- An active VPNonline service.
- Access to the router via WinBox or WebFig.
Step 1: Add a device in your account
In WireGuard choose “Add a device”, then “I have my own public key” and paste the router's public key.
Step 2: Paste the commands
RouterOS 7 example /interface wireguard add name=vpnonline private-key="<router private key>"Step 3: Check the connection
On a computer in your home network, open a page that shows your IP address. It should be the VPNonline server's address.
Did this help?
We only store the answer, nothing about you.
Still not working?
Write to us. We will include this article's name, so we know what you already checked.