Add and install the MonMikroTik VPN on your MikroTik router

Updated on · MonMikroTik team

The MonMikroTik VPN connects your MikroTik router to our servers through a secure tunnel. Once installed, you manage your hotspot with Mikhmon Online, open Winbox remotely and access your antennas, without a public IP, without a static IP and without opening any port on your box. This guide shows you how to add it, step by step.

Before you start

  • A MonMikroTik account with credits (1 credit = 500 FCFA, top up with Orange Money or Moov Money).
  • A MikroTik router running RouterOS v6 or v7, connected to the Internet.
  • Access to the router with Winbox (or SSH) to paste a command in the terminal.
Why a VPN? 4G connections and many fiber boxes do not provide a reachable public IP. The details are explained in Access your MikroTik without a public IP.

Step 1: create the VPN client

  1. In your account, open the VPN menu and click Nouveau client VPN (New VPN client).
  2. Nom (Name): give a name that lets you recognize the site, for example “Main router” or “Cafe Central”.
  3. Serveur VPN (VPN server): choose the server offered.
  4. Interface: choose the protocol.
    • L2TP (recommended): lightweight and compatible with all routers;
    • OpenVPN: use it if your Internet provider blocks L2TP.
  5. Plan: choose the subscription length. The price in credits is displayed, along with your balance.
  6. Click Créer le client (Create client). The credits are deducted and the VPN page opens.

Step 2: install the VPN on the router

On the VPN page, the Installation MikroTik block shows a personalized command. It looks like this:

/tool fetch url="http://<server>/scripts/<your-token>.rsc" mode=http dst-path=install.rsc; /import install.rsc;
  1. Click Copier (Copy).
  2. In Winbox, open New Terminal.
  3. Paste the command (right-click > Paste) and press Enter.

The router downloads its configuration script and applies it within seconds.

This command contains your VPN credentials: do not share it. Each VPN client has its own command.

What the script configures

  • a VPN interface (L2TP or OpenVPN) to our servers, marked with the comment by-monmikrotik;
  • firewall rules that allow the API (8728), Winbox (8291) and the web interface (80) only from MonMikroTik servers;
  • a scheduled task that monitors the tunnel and reports its status to the platform.

The script does not touch your hotspot, your profiles or your users.

Step 3: check the connection

  • On the platform, the client switches to En ligne (Online) in the VPN list.
  • On the VPN page, click Ping VPS → Routeur: the result should be Joignable (Reachable).
  • On the router, you can also check that the interface is active (letter R for running):
    /interface print where comment="by-monmikrotik"

Step 4: use the VPN

With Mikhmon Online

When adding the router to Mikhmon Online, enter the IP Tunnel shown on the VPN page as the router address, with your API user. The API service must be enabled (IP > Services > api, port 8728).

With Winbox or a browser, from anywhere

The Ports d'accès (Access ports) block on the page shows a server address and a port for each service:

ServiceUsage
WinboxIn Winbox, Connect To field: server:port, then your router username and password.
APIFor tools that connect to the RouterOS API (Mikhmon installed on a PC, mobile apps…).
HTTPOpens the router's WebFig web interface in a browser.

For your antennas

The VPN also enables device access for equipment behind the router (Ubiquiti, TP-Link, Ruijie, Grandstream): automatic detection, online or offline status, and remote opening of their interface for a limited time.

Renew the subscription

On the VPN page, section Renouveler l'abonnement (Renew subscription), choose a plan: the credits are deducted and the duration is added to the current expiration date. So you lose no days by renewing early. An expired VPN switches to Expiré (Expired) status and the router can no longer be reached remotely until renewal.

Troubleshooting

ProblemSolution
The /tool fetch command fails (could not resolve or timeout)The router has no Internet access or no DNS. Check with /ping google.com. If the name does not resolve, add a DNS: /ip dns set servers=8.8.8.8,1.1.1.1, then try again.
The client stays Hors ligne (Offline)Wait a minute, then refresh. Check the interface with /interface print where comment="by-monmikrotik". If it never shows R, your operator may be blocking L2TP: create an OpenVPN client.
The ping shows Injoignable (Unreachable) although the tunnel is upA firewall rule placed before the script's rules blocks access, or the API/Winbox service is disabled or restricted (IP > Services, Available From field).
Mikhmon Online does not connectMake sure you use the IP Tunnel as the address, and check the API user and password.
The status is Expiré (Expired)Renew the subscription from the VPN page.

Need help? Write to serviceclient@monmikrotik.cloud or call +226 64 38 15 91.

Manage your MikroTik hotspot from the cloud

Mikhmon Online, ticket sales via Orange Money and Moov Money, resellers and VPN. Free sign-up.