MikroTik MTCNA lab 15 of 19
WireGuard: site-to-site and remote access
Build RouterOS 7's modern VPN: a WireGuard hub at head office with a branch router and a travelling laptop as peers, keys exchanged by hand, allowed addresses doing the routing policy, routes for the remote LANs and a firewall hole for the tunnel.
Run this lab
It needs Lite: its 6 nodes are set to 6 vCPU and 3,072 MB in total. That fits the free demo too.
In your workspace: Shared, then MikroTik MTCNA RouterOS v7 guided labs, then 15 - WireGuard - site-to-site and remote access
- Level
- Intermediate
- Time
- About 60 minutes
- Nodes need
- 6 vCPU, 3,072 MB
- Smallest plan
- Lite
The scenario
An accountancy firm wants its branch office joined to head office and its partners able to reach the HQ file server from anywhere. Fernvale chooses WireGuard: fast, simple, built into RouterOS 7. HQ is the hub; the Branch router and the partner's Laptop (a RouterOS device here; on a real laptop you'd use the WireGuard app) are its peers. HQ already has an input firewall that drops everything from the Internet.
| Device | WAN | LAN | WireGuard |
|---|---|---|---|
| HQ | 203.0.113.2/30 | 192.168.1.0/24 (PC-HQ .10) | wg-hub 10.255.0.1/24, listens on UDP 13231 |
| Branch | 198.51.100.2/30 | 192.168.2.0/24 (PC-BR .10) | wg-hq 10.255.0.2/24 |
| Laptop | 192.0.2.50/24 (café) | – | wg-hq 10.255.0.10/24 |
What you’ll practise
- Explain WireGuard keys, peers, endpoints, allowed addresses and keepalive
- Create WireGuard interfaces and exchange public keys between routers
- Configure a hub with two peers: a site and a road warrior
- Route remote LANs through the tunnel
- Open the WireGuard port in an input firewall
- Check handshakes and traffic counters
The tasks
- Create the WireGuard interfaces
- Add the peers on the hub
- Point the spokes at the hub
- Open the door in HQ's firewall
- Route the LANs through the tunnel
- Read the tunnel state
The Lab Tasks pane has the scenario, these tasks, the checks to run, hints and the full solution.
Topology and devices
The network as it opens in EVE-NG, drawn from the lab’s own canvas, and the image each node runs.
Every link, as text
- ISP
ether1to HQether1 - ISP
ether2to Branchether1 - ISP
ether3to Laptopether1 - HQ
ether2to PC-HQeth0 - Branch
ether2to PC-BReth0
| Node | Device | Image in Add Node | Set to |
|---|---|---|---|
| ISP | MikroTik RouterOS | mikrotik-7.14.2 | 1 vCPU, 256 MB |
| HQ | MikroTik RouterOS | mikrotik-7.14.2 | 1 vCPU, 256 MB |
| Branch | MikroTik RouterOS | mikrotik-7.14.2 | 1 vCPU, 256 MB |
| Laptop | MikroTik RouterOS | mikrotik-7.14.2 | 1 vCPU, 256 MB |
| PC-HQ | VPCS host | Built in to EVE-NG | Counted as 1 vCPU, 1,024 MB |
| PC-BR | VPCS host | Built in to EVE-NG | Counted as 1 vCPU, 1,024 MB |
How to open this lab
Sign in to your workspace at
lab.cloudlabbox.com.In File Manager, open Shared, then the folder
MikroTik MTCNA RouterOS v7 guided labs.Open
15 - WireGuard - site-to-site and remote accessand start its nodes, then open Lab Tasks for the scenario and the steps.
The lab is read-only. You can start the nodes and configure the devices, but changes to the topology can’t be saved. To change it, rebuild it in your own folder.
More MikroTik MTCNA labs
Related labs in other courses
CloudLabBox is independent of MikroTik. The lab follows exam topics and isn’t vendor training material; vendor names identify the exams and the images in the workspace.