Skip to main content

Introduction

This guide simplifies the process of installing MikroTik Router OS on a VPS. By automating the installation with a script, there’s no need to manually enter commands in the MikroTik CLI console. Once complete, you’ll have a fully operational VPS running MikroTik Router OS.

Getting started: prerequisites and VPS preparation

Open a terminal and create a script file:
Copy and paste the following script into the file:
Script
Press CTRL+O to save your changes, then exit by pressing CTRL+X.

Set script permissions

Set the script execution rights:

Run the script

The VPS will reboot automatically once the installation completes.

Install settings manually in RouterOS

  1. Log in to your VPS Management Portal
  2. Locate your VPS from the Services tab
  3. Enable VNC Server
  4. Open noVNC or connect using a VNC client
  5. Log in to the Router OS using admin account and blank password (no password)
  6. Set up a new password for the admin account
  7. Show the name of interfaces:

Check name of interface

Check name of interface in RouterOS
  1. Check your Network Information in the billing panel. Configure the IP address of the server (192.168.1.100 - IP address of the server & ether1 - name of interface):
  1. Configure the gateway (192.168.1.1 - IP address of gateway):
  1. Configure DNS:
After you have finished configuring Router OS in VNC, connect to MikroTik Router OS using Winbox.

Connect to the server using Winbox

  1. Download and Install Winbox from the MikroTik website.
  2. Open Winbox and create a new connection: • Enter your VPS IP address. • Use admin for the Login field and enter the Password that you set before. • Click Connect. Install MikroTik RouterOS
Congratulations! MikroTik Router OS is now successfully installed and operational on your VPS. With the automated script, accessing and managing Mikrotik CHR via Winbox is quick and efficient. After securing your credentials and testing the setup, your infrastructure setup is ready for seamless network management.
Last modified on September 5, 2026