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.
Code: Select all
# 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