Skip to main content

Securing remote management on MikroTik: a practical checklist

· · 4 min read

Seven steps to harden a MikroTik router you manage remotely: users, services, allowed addresses, Safe Mode, updates and backups.

Remote management is convenient, and it is also the first thing attackers probe. These steps take a few minutes and remove most of the risk. Every command is standard RouterOS; run them in a terminal while you can still reach the router locally.

1. Keep management off the open internet

Bots scan the internet for Winbox (port 8291), SSH and the web interface all day. The safest setup is not to publish those services at all and to reach them through a tunnel instead, which is what remote access without a public IP does.

2. Use a named user with a strong password

Create your own user with a long, unique passphrase, check that you can log in with it, and only then disable the default account.

/user add name=ops group=full password="a-long-unique-passphrase"
/user disable admin
Test the new login in a second Winbox window before you disable admin.

3. Turn off services you don't use

List what is listening, then switch off what you don't need. Telnet, FTP and the plain web interface are rarely required.

/ip service print
/ip service set telnet disabled=yes
/ip service set ftp disabled=yes
/ip service set www disabled=yes

Keep the ones you actually use, for example winbox, ssh and api.

4. Limit who can connect

Each service can be restricted to the addresses that should reach it. Replace the example with your own network:

/ip service set winbox address=192.168.88.0/24
If you manage the router through a tunnel, allow the tunnel's address range as well, or you will cut off your own remote access.

5. Use Safe Mode when you change access rules

Safe Mode undoes your changes if the connection drops, so a mistake in a firewall rule or service setting can't lock you out. In Winbox click the Safe Mode button; in a terminal press Ctrl+X. Make the change, confirm you still have access, then leave Safe Mode to keep it.

6. Update RouterOS

/system package update check-for-updates

Install updates for the release channel you use, and read the release notes first on production routers.

7. Back up before you change things

/system backup save name=before-changes

Download the file from Files so that you keep a copy away from the router.

With these in place, a remotely managed router is in good shape. If you haven't set up remote access yet, start with our guide, and see which VPN protocol fits your network.

Keep reading