Dojo
Practical howtos on MikroTik and RouterOS 7: tested configurations, ready-to-copy commands.

Netwatch on MikroTik: alert me on Telegram when a device goes down
Netwatch is RouterOS's sentry: it knocks on an address and, when it stops answering or comes back, it runs a script. We use it to watch a camera and the internet line, with the alerts on Telegram, and we go over the thresholds and the behavior after a reboot that the manuals don't mention.
DojoConnect MikroTik to Telegram: router alerts on your phone
A router that messages you on Telegram when something happens is worth more than ten graphs you look at the next day. In seven steps we create the bot, find the chat_id, and write a reusable telegram script, which the other Dojo howtos then use to send alerts: Netwatch, reboots, rogue DHCP.
DojoBasic hardening of a MikroTik router with RouterOS 7
A MikroTik just reset with no-defaults=yes has no firewall: perfect on the bench for learning, but never put it on a network like that. Before installing it you need seven hardening steps: update RouterOS, replace the admin user, turn off the services you don't use and limit the others to the authorized addresses, close the service ports on the external interfaces, a minimal firewall that blocks everything coming from the internet, and a VPN for remote management.
DojoHotspot and PPPoE MikroTik: the username in every log line
A hotspot's connection log contains IP addresses, not people: to know who was behind an address you have to cross-reference it with the logins. With a login and logout script you can create a log rule for every connected user, with the username in the log-prefix: every log line already contains the name. It works with the hotspot (on-login / on-logout of the user profile) and with PPPoE (on-up / on-down of the PPP profile).
DojoMikroTik hotspot: how to record your users’ traffic
In a hotspot the guests go out to the internet with a single public address: to know who did what, you need a connection log. With RouterOS 7 you generate it with a firewall action=log rule on new connections only and send it to an external syslog server, because the router's memory is not an archive. As an alternative, or in addition, there is Traffic Flow (IPFIX/NetFlow) toward a collector.
DojoHotspot 2.0 and Passpoint with MikroTik: interworking in the wifi package
Hotspot 2.0 (the commercial name is Passpoint, the standard underneath is 802.11u) lets a phone connect on its own and encrypted to a public Wi-Fi network, with no login page, recognizing its own carrier or its own organization. Back in 2017 I dug up an undocumented menu in RouterOS 6; today, in the wifi package of RouterOS 7, there's an official menu, /interface wifi interworking, to use together with a RADIUS server.
DojoSend email from MikroTik with Gmail: SMTP and app passwords
A MikroTik can send email (alerts, backups, reports) using a Gmail account as the SMTP server: smtp.gmail.com, port 587, STARTTLS. The password, though, isn't the account one: you need an app password, a 16-character password generated by Google, valid only for sending and revocable at any time. In RouterOS 7 the configuration lives in /tool e-mail.
DojoUnauthorized DHCP server: how to detect and block it with MikroTik
An unauthorized DHCP server, often a shopping-mall Wi-Fi router plugged in "backwards", can throw a LAN into chaos in minutes. With MikroTik you spot it with /ip dhcp-server alert, which warns you when a server other than the valid one answers, and you block it with the bridge's DHCP snooping, which in RouterOS 7 accepts DHCP replies only from the trusted ports.
DojoWireless scan on a remote MikroTik without losing the result
A frequency scan stops the radio for a few seconds: if you reach the remote router through that very wireless link, you lose the connection and the result. The fix is to run the scan in the background on the router itself, with the result saved to a file you read when the link comes back up. In RouterOS 7 you do it with :execute and the file= parameter, which works with both the wifi package and wireless.
DojoHow to hide your network’s MikroTik routers from traceroute
A traceroute launched from a client shows your network's routers one by one, with their addresses. With a mangle rule that increments the TTL (action=change-ttl new-ttl=increment:1) every MikroTik router becomes invisible to traceroute, because the packet crosses it without "spending" a hop. The rule must be limited to client traffic and placed with care, so it doesn't complicate troubleshooting.
DojoCAPsMAN and RouterOS 7 WiFi: turning on client isolation
Client isolation stops devices connected to the same WiFi from talking to each other: on a hotspot or a guest network it's the first defense against anyone snooping on other people's phones. In RouterOS 7, with the new wifi package and its CAPsMAN, you turn it on with client-isolation=yes in the datapath; with the old wireless package there's still default-forwarding and, in CAPsMAN v1, client-to-client-forwarding.
DojoHow to combine multiple internet connections with MikroTik: ECMP and PCC in RouterOS 7
With a MikroTik you can use two or more internet connections together. ECMP (several default routes with the same distance) is the simplest method but it doesn't let you decide which line a connection uses; PCC (Per Connection Classifier) assigns each connection to a line and keeps it there until it ends. In RouterOS 7, PCC uses routing tables (/routing table) and gateway checking with check-gateway. Here we build it in six steps.
DojoHow to reset a MikroTik’s configuration on RouterOS 7
To wipe a MikroTik from the terminal the command is /system reset-configuration: with no-defaults=yes the router comes back empty instead of with the factory configuration, and with run-after-reset it runs a script right after it reboots. If the router stops responding there's the reset button and, as a last resort, Netinstall.