Device Provisioning Guide

Onboard a New MikroTik

Follow these simple steps to enroll a router. The platform uses a secure, file-based configuration import that eliminates terminal paste-truncation issues and ensures a flawless setup.

Firewall Prerequisites (UDP 51820)

The MikroTik must be able to reach the platform on outbound UDP port 51820. If the site firewall blocks it, the tunnel handshake will fail silently, and the device will never appear online.

Allow outbound UDP asg-mikromanagement.asginfo.com:51820
1

Download the Configuration File

In the platform web interface, navigate to your Client > Devices tab and click the Add Device button.

Fill in the necessary device details and click Create & Generate Script. The platform will automatically generate and download an .rsc file tailored specifically for this device, complete with unique WireGuard keys.

Step 1 illustration
2

Upload to the Router via WinBox

Open WinBox and connect to your MikroTik router. Click to open the Files window from the left sidebar.

Drag and drop the downloaded .rsc file directly into the WinBox file list.

Need WinBox?

Step 2 illustration
3

Run the Import Command

In WinBox, click New Terminal. Type the import command below to apply the configuration. Be sure to replace the filename with the exact name of the file you uploaded.

/import file-name=asg-enroll-YOUR_ID_HERE.rsc verbose=yes
Once complete, the device will appear as "Online" in your dashboard.
Step 3 illustration

Security Architecture Notes

Privileges & Access

The 'mikrocloud' user is created with api, read, ssh, and rest-api access. Write privileges are only elevated dynamically during config pushes.

Encrypted at Rest

Device passwords are never stored in plaintext. They are encrypted using Fernet keys derived from a platform master key and tenant UUID salt.

NAT Traversal Built-in

The generated script automatically configures WireGuard with persistent-keepalive=25 to punch through site NAT firewalls flawlessly.

Single-Use Artifacts

Enrollment scripts contain unique, one-time WireGuard keys. Never reuse the same .rsc file on multiple devices or it will cause key collisions.