Network Engineer

Case File: The Open Router

A new MikroTik router comes out of its box with the default login, every service switched on and nothing asking who you are. On a simulated RouterOS router in this page, close the door before anything else is connected: name it, replace the default account, switch off the insecure services, limit management to the office network, set the clock and stop the router announcing itself. Names, networks and servers are generated for you alone.

45 min

Sabi Logistics · Router 1

The Open Router

A new branch router is about to be connected, and the factory settings would let anybody in

Halima CISO · Phone call

Halima. A new router has arrived for a branch office and it is in its factory state. I know what that means: the account called admin with no password, every management service switched on, and a router that tells anybody on the cable exactly what it is. If we plug it in like that, it will be found before lunch.

I do not want it plugged in until it is closed. You will configure it from the console, before it is connected to anything. I have a short list: a proper name, one named administrator and the default account gone, the insecure services off, management only from the office network, the clock set, and the announcements off.

Do it in an order that cannot lock you out. And keep the commands: the next branch will get the same treatment.

The brief

What you need to know first.

  • RouterOS is organised in menus. Paths such as /user, /ip service and /system identity are menus. Inside a menu you use a few verbs: add, set, remove, print, enable, disable. print shows what is there, and it is how you check your own work: a command that gives no output usually worked.
  • The factory state is open on purpose. The router ships with one account, admin, with an empty password, and services that are convenient and unsafe: telnet and ftp send everything including passwords in the clear, www is the web page without encryption, api is the unencrypted programming interface.
  • Users. /user add name=NAME group=full password=... creates an account in a group (read, write, full). Use a long password (at least 12 characters). /user disable admin switches the default account off; a disabled account cannot log in but can be re-enabled by another administrator.
  • Order matters for access. Create the new user, log in as it (on a real router: open a second session) and only then disable the old one. Never remove access before you have proved the replacement works.
  • Services are the fixed items of /ip service: you can set, enable and disable them but not add new ones. /ip service disable telnet switches one off. /ip service set ssh address=192.168.10.0/24 limits who may connect to that service to one network; keep SSH and WinBox for management and give them an address restriction.
  • NTP (/system ntp client set enabled=yes servers=...) sets the clock. Logs, certificates and the scheduler depend on correct time.
  • Discovery. /tool mac-server set allowed-interface-list=none stops the router accepting connections by MAC address, and /ip neighbor discovery-settings set discover-interface-list=none stops it announcing itself to neighbours. Where you need them, turn them on for one trusted interface list only.
  • The lab router is a simulation of RouterOS in this page. It understands the commands of this job, and a command it does not know says so. Type hint in the terminal to see help for the first task that is not done yet, and press Check my answers to test the router.

The lab generates the router name, the administrator, the office network and the time server for you alone.

Preparing your router…

🔒 The debrief unlocks when you close the case. Finish the lab above.

Write the hardening record

Write the record for the branch router: what you changed and why (the default account, the insecure services, the management restriction, the clock and the discovery protocols), the order you worked in and why that order cannot lock you out, how you checked your work, and what you would add so that a remote engineer can still reach the router on a Sunday without opening it to the internet.

0 words

🧪 Want to practise this on your own computer? See how to set up your lab →

📝

Knowledge Check

1 of 3

Why create the new administrator first and only then disable the default admin account?

Report a problem

About: /lessons/case-the-open-router