fbpx

Configuring Device Mode in MikroTik RouterOS: Limitations and Security

Facebook
Twitter
LinkedIn
WhatsApp
Telegram

In MikroTik RouterOS, the “Device mode” is presented as a key feature that sets specific limitations on a device or restricts access to specific configuration options.

At the end of the article you will find a small test that will allow you assess the knowledge acquired in this reading

This article will explore in detail what the “Device mode“, its available modes and how this function contributes to security and customization on MikroTik devices.

Available Modes: Enterprise and Home

MikroTik RouterOS offers two main modes: “enterprise"And"home".

By default, all devices use the “enterprise” mode, which allows all functionalities, except “container”.

El “home” mode disables features such as scheduler, socks, fetch, bandwidth testing, traffic generation, sniffer, romon, proxy, hotspot, email, zerotier and container.

[admin@MikroTik] > system/device-mode/print mode: enterprise

Device Mode Changes

The user can change the “Device mode“, but remote access is not enough to perform this action.

After changing the mode, it must be confirmed by pressing a button on the device or performing a “cold reset” (disconnect the power).

[admin@MikroTik] > system/device-mode/update mode=home
update: please activate by turning power off or pressing reset or mode button
         in 5m00s
-- [Q quit|D dump|Cz pause]

If a shutdown or button press is not performed within the specified time, the mode change is canceled. If update commands are executed in parallel, both will be cancelled.

Configuring Device Mode in MikroTik RouterOS: Limitations and Security

Properties and Settings

The available properties include options such as “container”, “fetch”, “scheduler”, “traffic-gen”, “ipsec”, “pptp”, among others.

The “activation-timeout” property sets the time to activate the reset button or turn off the device.

You can also enable or disable the “flagged” state that indicates a possible intrusion.

 

[admin@MikroTik] > system/device-mode/print
    mode: enterprise
flagged: yes
Sniffer: No.
  hotspot: no

 

Peripheral Changes

Specific changes can be made for each feature controlled by device-mode. For example, change “home” mode and enable email:

 

[admin@MikroTik] > system/device-mode/update mode=home email=yes

 

“Flagged” status

RouterOS scans the configuration at startup to detect intrusions. If a suspicious configuration is detected, it is disabled and set to a “flagged” state.

This imposes limitations, and certain actions, such as bandwidth testing or traffic generation, are not allowed.

 

[admin@MikroTik] > system/device-mode/print
    mode: enterprise
flagged: yes
Sniffer: No.
  hotspot: no

 

To exit the “flagged” state, use the command “/system/device-mode/update flagged=no”. It is crucial to audit the configuration before exiting the flagged state to ensure system integrity.

 

Conclusion

The “Device-mode” in MikroTik RouterOS provides an additional layer of security and customization, allowing network administrators to set specific limitations and detect intrusions.

By understanding how it works and how to apply specific settings, users can strengthen the security of their MikroTik devices and maintain finer control over enabled features.

Brief knowledge quiz

What do you think of this article?
Do you dare to evaluate your learned knowledge?

QUIZ - Configuring Device Mode in MikroTik RouterOS: Limitations and Security

Recommended books for this article

Do you want to suggest a topic?

Every week we post new content. Do you want us to talk about something specific?
Topic for the next blog

Leave a comment

Your email address will not be published. Required fields are marked with *

DISCOUNT CODE

AN24-LIB

applies to MikroTik books and book packs

Days
Hours
Minutes
Seconds

Introduction to
OSPF - BGP - MPLS

Sign up for this Free course

MAE-RAV-ROS-240118
Days
Hours
Minutes
Seconds

Sign up for this Free course

MAS-ROS-240111

Promo for Three Kings Day!

KINGS24

15%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the Three Kings Day discount code!

* promotion valid until Sunday January 7, 2024
** the code (KINGS24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

New Year's Eve Promo!

NY24

20%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the New Year's Eve discount code!

* promotion valid until Monday, January 1, 2024
** the code (NY24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

Christmas discounts!

XMAS23

30%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the discount code for Christmas!!!

**codes are applied in the shopping cart
Promo valid until Monday December 25, 2023

CYBER WEEK DISCOUNTS

CW23-MK

17%

all MikroTik OnLine courses

CW23-AX

30%

all Academy courses

CW23-LIB

25%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Cyber ​​Week!!!

**codes are applied in the shopping cart
Promo valid until Sunday December 3, 2023

BLACK FRIDAY DISCOUNTS

BF23-MX

22%

all MikroTik OnLine courses

BF23-AX

35%

all Academy courses

BF23-LIB

30%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Black Friday!!!

**Codes are applied in the shopping cart

codes are applied in the shopping cart
valid until Sunday November 26, 2023

Days
Hours
Minutes
Seconds

Sign up for this Free course

MAE-VPN-SET-231115

Halloween promo

Take advantage of discount codes for Halloween.

Codes are applied in the shopping cart

HW23-MK

11% discount on all MikroTik OnLine courses

11%

HW23-AX

30% discount on all Academy courses

30%

HW23-LIB

25% discount on all MikroTik Books and Book Packs

25%

Register and participate in the free course Introduction to Advanced Routing with MikroTik (MAE-RAV-ROS)

Today (Wednesday) October 11, 2023
7pm to 11pm (Colombia, Ecuador, Peru)

MAE-RAV-ROS-231011