Hotspot, Trial access (limit user access only 30min/day)

Hello,

How do I limit a user (per MAC) to allow only 30 minutes of Internet usage a day?

In this post (http://forum.mikrotik.com/t/free-hotspot-user-time-limitation/7697/1) I read that I should enter “30m/1d” value in the trial-uptime, but I don’t have this parameter :slight_smile: I can set only the “Trial Uptime Limit” and “Trial Uptime Reset” parameters.

Using RB951Ui-2Hnd and ROS v6.15.

Thanks for your help.

Perhaps set “Trial Uptime Limit” to “30m”, and “Trial Uptime Reset” to “1d”? I’m just guessing…

Well, my clients opening hours are from 08.00 - 24.00. So, if a guest logs in at 22.00 he’s unable to use the Internet next 24 hours - in this case the client should be able to use the Internet again at 08.00 the next day :slight_smile:

Any other ideas?

In that case, I suppose you could make a profile with 30m, and no reset.

Then, in “/system scheduler”, create a script that every day at 8:00 will recreate the profile (and assign all users with the old profile to this new profile). The recreated profile will provide new 30m, starting at that time.

Thanks for that.

Is there maybe a more “elegant” solution rather than scripting?

Normis, perhaps this feature could be added - the parameter “Trial Uptime Limit” could accept something like “30m / 1d” :wink:

You’re saying that as if it’s a long and complicated script, when it’s literally just two lines:
/ip hotspot user unset [find where profile=“trialProfile”] limit-uptime
/ip hotspot user set [find where profile=“trialProfile”] limit-uptime=30m(or at least it should be)

Actually… make that one line:
/ip hotspot user reset-counters