Guides

MikRouter Guides

Step-by-step guides for configuring VPN clients and remote access on your MikroTik router. Pick a guide below to get started.

VPN Client Setup

Remote Access

Agent Tunnel

Overview

Agent Tunnel — Overview

One agent reaches TCP services across every routable part of your site network — from the local LAN to permitted VLANs and subnets — through a cheap board, a Linux box, a Windows PC or Mac you already have, or the site's own router when it runs OpenWrt, dialling out to MikRouter. No MikroTik and no port forwarding required. Start here to see how it fits together.

ESP32

Flash an ESP32

Put the MikRouter agent firmware onto a supported ESP32 board over USB — with the desktop flasher or the guided macOS Terminal script.

Connect

Connect ESP32 agent

The step after flashing: join the board's setup Wi-Fi, give it your Wi-Fi network and your agent token, and watch the tunnel come up — until this is done the agent stays offline in the dashboard.

Linux Agent

Set up an agent on Linux (Debian/Ubuntu/etc)

Already have a Debian or Ubuntu machine, mini-PC, or VM on the target LAN? The one-line installer turns it into an agent in under a minute.

Windows Agent

Set up an agent on a Windows PC

Already have a Windows PC that stays on at the site? One download turns it into an agent — no extra hardware, and nothing else to install.

macOS Agent

Set up an agent on a Mac

A Mac mini, or any Mac that stays on at the site, can be the agent. Download the app and click through it, or paste one line into Terminal — both end up at the same place.

OpenWrt Router

Set up an agent on an OpenWrt router

Already running OpenWrt? Put the agent on the router itself — no extra box to buy or power, and everything on your network becomes reachable.

Small-flash Router

Set up an agent on a small-flash OpenWrt router

Router too small for the agent? The loader takes a few kilobytes and loads the agent into memory at every boot.

Which board to buy

Which ESP32 works with MikRouter?

Not every board with "ESP32" on the box runs the agent firmware. Here's what to buy, what to avoid, and how to tell which one you already have.

Dev Server

Put a local dev server or API online

Give the app running on your own laptop a public HTTPS address, the way a tunnelling tool like ngrok does — for webhooks that have to call you back, for showing work in progress, and for testing on a real phone. The address belongs to your account, so it is the same every time.

Help