View Categories

WireGuard server and peers

Pro

What it is #

The WireGuard server connects remote routers and laptops to MikroWizard over an encrypted tunnel. It generates the router script, QR code or config file, and can add the router to Devices automatically.

Example uses

  • Manage a router at a site with no public IP.
  • Give a field engineer’s laptop access to the management network.

Pro Included in MikroWizard Pro. Bring routers without a public IP, and remote engineers, into MikroWizard over WireGuard.

Compare Free and Pro · Pricing

The WireGuard Server page manages the MikroWizard WireGuard addon. Install the addon first: see Install the WireGuard server addon/a>.

WireGuard Server page with status, traffic and peers
WireGuard Server: status, connected peers, live speed, traffic and peers.

Server configuration #

Click Server Config:

FieldWhat to enter
API EndpointAddress of the WireGuard addon API.
API TokenOptional token if the addon requires one.
VPN SubnetAddress range for peers, e.g. 10.8.0.0/24.
Public Server IP/HostThe address peers connect to.
VPN Server Configuration dialog
VPN Server Configuration.

Add a peer #

Click Add Peer and follow the steps:

  1. General Info: peer name and an optional description.
  2. Addressing: Assigned IP (empty = automatic) and Keepalive (default 25 seconds).
New VPN peer, step 2 addressing
Addressing.
  1. Routing: Full Tunnel (all traffic through the tunnel; the generated script keeps a route to MikroWizard through the router’s current gateway), Split Tunnel (only the subnets you list) or Off (direct routing).
New VPN peer, step 3 routing
Routing.
  1. Identity & Integrations: tick Link & Manage as MikroTik Device and enter the router’s username, password and API port. When the peer comes online, MikroWizard adds the router to Devices automatically.
New VPN peer, step 4 link and manage as MikroTik device
Linking the peer as a MikroTik device.
  1. Summary: check and create the peer.

Peer actions #

ActionWhat it does
MikroTik ScriptA RouterOS script that sets up the tunnel on the router. Copy it and paste it into the router’s terminal.
QR CodeFor the WireGuard mobile app (Create from QR code).
Download ConfigA .conf file for desktop clients.
Edit / Delete / Reset CountersManage the peer.
State switchEnable or disable the peer.

The table shows status, routing mode, linked device (View Device), last handshake, speed and total volume. Export Report downloads the peer list.

Example: a router behind CGNAT #

A remote site gets internet through a mobile provider without a public IP.

  1. Add Peer Site-17, automatic IP, Keepalive 25, routing Off (only the tunnel subnet).
  2. Tick Link & Manage as MikroTik Device with the router’s API user.
  3. Copy the MikroTik Script and paste it into the router’s terminal on site.

The router opens the tunnel itself, so no port forwarding is needed. When it connects, it appears in Devices with its tunnel address.

Common problems #

ProblemCause and fix
The peer never shows a handshakeThe router can’t reach the Public Server IP/Host on the WireGuard port. Check the server’s firewall.
Internet on the router stops after the scriptFull Tunnel sends all traffic through MikroWizard. Use Split Tunnel or Off for routers that only need management.
The page can’t reach the addonCheck API Endpoint and API Token in Server Config.

Next step #