What MikroTik RouterOS is and how it works
MikroTik RouterOS is the network operating system for MikroTik routers, switches and wireless devices. It combines routing, a firewall, VPN, Wi-Fi management, queues (QoS) and monitoring tools.
RouterOS comes preinstalled on MikroTik devices and can be upgraded even on models that were discontinued long ago, except for the MIPS-LE family: RouterOS v7 does not run on the RB100 or some of the RB700 series. It can also be installed on x86 computers, and CHR (Cloud Hosted Router) is RouterOS built for virtual machines. With the default configuration v7 needs at least 32 MB of memory, and 64 MB or more for complex setups.
CHR has its own perpetual licence: the free tier is limited to 1 Mbps per interface, while the paid P1, P10 and P-Unlimited levels allow up to 1 Gbps, 10 Gbps and unlimited speed. All other RouterOS features work at every level, and you can try the paid levels free for 60 days (/system/license/renew).
How a packet passes through the router
The packet flow determines which rules see a packet. An incoming packet first passes through prerouting: connection tracking and dstnat. Then comes the routing decision: a packet addressed to the router itself goes to the input chain, and the rest go to forward and postrouting, where srcnat is applied. Packets created by the router itself go through output.
If a packet arrives on a bridge port, the bridging decision comes first, based on the destination MAC address. A packet reaches routing only if it is addressed to the router itself or to another network. On devices with a switch chip, the chip forwards packets between bridge ports without loading the CPU.
WinBox, WebFig or the terminal
All management methods change the same configuration: WinBox windows mirror the terminal menus. The “IP → Firewall” path in WinBox is /ip/firewall in the terminal, and the CLI Reference on the MikroTik website follows the same paths: /interface, /ip/address, /routing/bgp, /system.
| Method | What it is | When to use it |
|---|---|---|
| WinBox | A graphical application for Windows, Linux and macOS; connects by IP or MAC address | Everyday configuration and the first connection |
| WebFig | The router’s own web interface | You only have a browser at hand |
| Terminal (CLI) | A command line over SSH, Telnet or a serial console, with built-in scripting | Precise commands, scripts, moving settings as text |
| MikroTik app | An app for Android and iOS | You only have a phone at hand |
| API | A programming interface | Your own configuration and monitoring tools |
What to know first
- IP addresses and masks, routing, NAT and DNS as mechanisms are covered in the “TCP/IP and DNS” reference, in the sections “IPv4: addresses, masks and subnets”, “Routing, ARP and NAT” and “DNS: how a name is resolved”.
- What a port is and how TCP differs from UDP are covered in the same reference, in the sections “Ports and sockets” and “UDP and comparison with TCP”.
Section sources
the section is written from these pages- Packet Flow in RouterOSmanual.mikrotik.com/docs/7.25/firewall-and-quality-of-service/packet-flow-in-routeros/(opens in a new tab)
- Introductionmanual.mikrotik.com/docs/7.25/introduction/(opens in a new tab)
- Software Specificationsmanual.mikrotik.com/docs/7.25/getting-started/software-specifications/(opens in a new tab)
- WinBoxmanual.mikrotik.com/docs/7.25/management-tools/winbox/(opens in a new tab)
- CHR: Licensingmanual.mikrotik.com/docs/7.25/getting-started/routeros-licensing/chr/chr-licensing/(opens in a new tab)