fbpx

Can I suspend service at a certain time to a customer through simple queues in MikroTik?

Completely suspending service to a customer at a given time using simple queues on MikroTik is not directly possible, because simple queues are designed to limit broadband speed, not to completely disable or block network access. However, you can achieve a similar sleep effect by configuring queues to minimize bandwidth allocation at specified times. Here I explain how you could configure it:

Configuring Simple Queues to Limit Access

Access your MikroTik router: You can do this through WinBox, WebFig, or SSH.

Navigate to the queues section: Generally found under “Queues” in WinBox or in the web interface.

Create a new simple queue: Click the plus sign (+) to add a new queue. Here you will configure the parameters for the specific client.

Configure queue parameters:

Name: Assigns a descriptive name to the queue.

Target: Specifies the client's IP address or range of IP addresses to which the queue will apply.

Max Limit: Set this value to the lowest possible, such as 1Kbps, to effectively throttle the connection to an unusable speed for the specified times.

Schedule changes using scripts: To automate the activation and deactivation of this limitation at specific times, you can use the MikroTik scripting system to modify the properties of the simple queue. Here is an example of how you could write a script:

:if ([/clock get time] = "22:00:00") do={
    /queue simple set [find name="nombre_de_la_cola"] max-limit=1K/1K
}
:if ([/clock get time] = "08:00:00") do={
    /queue simple set [find name="nombre_de_la_cola"] max-limit=100M/100M
}

This script reduces the speed limit to 1 Kbps at 10 PM and resets it to 100 Mbps at 8 AM, for example.

Deploy the script: You must add the script to MikroTik's scheduled tasks so that it runs at the desired times.

Considerations

  • Better approach: Although single queues can limit speed to almost zero, a more effective approach to completely suspend service would be to use firewall rules to block all traffic to/from client IPs at specific times.
  • Service implications: Limiting speed to extremely low values ​​may not be the best practice for managing client access as it may result in poor user experience and technical issues. Consider the implications of this action and evaluate if it is the best solution for your needs.

This method provides a viable solution within MikroTik's capabilities to manage client access on a scheduled basis, albeit with certain limitations.

There are no tags for this post.
Did this content help you?
Facebook
Twitter
LinkedIn
WhatsApp
Telegram

Other documents in this category

Leave your comment

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

Tutorials available at MikroLABs

No Courses Found!

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