Community discussions

MikroTik App
 
User avatar
Sky18
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 57
Joined: Sat Jan 13, 2018 9:21 am
Location: Germany

How to setup a time quota?

Sat Feb 17, 2018 7:57 pm

Hi guys,

I need to setup a time quota - means I want to limit access to internet for a device within a given time slot as soon as the total online time is reached.

E.g. the device can access the internet between 1:00pm and 11:00pm (firewall rule), but max for 2 hours, even if the device was connect in several time portions.
Online time 01:30pm-02:45pm --> 1h 15min
08:00pm-08:15pm --> 15min
10:00pm- ==> block internet at 10:30pm as time quota of 2 hours were reached

How can I collect the online time during the slot and stop internet access as soon as the given online time is reached?

Btw, the device cannot enter an user and passwort and therefore I assume hotspot time voucher cannot be used here.
# inactive time
add action=drop chain=forward comment=\
    "Block internet access for PCBT2015 (by mac-address & schedule)" \
    src-mac-address=78:24:AF:9C:BC:04 time=\
    13h00m-23h00m,sun,mon,tue,wed,thu,fri,sat
Thanks for your support.

Who is online

Users browsing this forum: FAB1150, hazem, Kanzler, Majestic-12 [Bot], Qanon and 197 guests