Safe Mode is the same as a second SSH session while editing sshd (Keep the old session open), only built in. While
the mode is on, RouterOS remembers every change. If the session closes normally after leaving the mode, the changes
stay. If it drops, the router rolls them back on its own.
# Ctrl+X
[netadmin@MikroTik] <SAFE> /interface bridge set bridge vlan-filtering=yes
# connection lost → after a while the router puts back vlan-filtering=no
# connection still there → Ctrl+X again, the changes are saved
A router has one Safe Mode. If it’s already on in another session — a second Winbox window or a colleague’s —
RouterOS 7.24 prints Safe Mode is taken by current user in another session. and asks
Unroll, release or abort [u/r]?: u rolls back that session’s changes and takes the mode, r keeps them and takes
it, any other key gives Action aborted. and leaves everything as is.
Don’t start without Safe Mode on:
- the firewall, especially the
inputchain and “drop all not coming from LAN”; - bridge ports and
vlan-filtering; - addresses and the default route;
/ip serviceand/user.
If it doesn’t work
Turned on vlan-filtering, the connection dropped and didn’t come back — with Safe Mode on
- Cause
- The router doesn’t learn about the drop right away: it waits until the Winbox or SSH connection is considered dead — up to 9 minutes per the documentation, the TCP timeout. There’s no setting for it.
- Fix
- Wait a few minutes and reconnect. If that doesn’t help — Winbox by MAC from a port that stayed in the home network.
<SAFE> vanished from the prompt though you never left the mode
- Cause
- Safe Mode has a limited history of the last 100 actions; past that, the mode turns itself off, and everything done up to that point stays.
- Fix
- Make big changes in parts, each in its own Safe Mode, or as a script from a file you’ve read through first.
How to check
Turn on the mode, change something harmless — a firewall rule’s comment — and close the Winbox window with the X without leaving the mode. After you reconnect, the comment is back to what it was: rollback works.