Community discussions

MikroTik App
 
parfait02
just joined
Topic Author
Posts: 17
Joined: Sat Jun 26, 2021 10:39 pm

how to kick off hotspot user only if they reach time and data limit

Sat May 14, 2022 7:56 pm

I configured mikrotik hotspot user profile with a specific data limit.
But sometimes users reached this data limit too quickly.
So I want to add a second condition on a minimum time limit.
How to configure user profile so that user are kicked off only if they matched the two conditions, which are time lime and data limit?
 
msatter
Forum Guru
Forum Guru
Posts: 2897
Joined: Tue Feb 18, 2014 12:56 am
Location: Netherlands / Nīderlande

Re: how to kick off hotspot user only if they reach time and data limit

Sat May 14, 2022 8:50 pm

If you can define only time limit then use that, because if using and the data limit becomes obsolete.
 
parfait02
just joined
Topic Author
Posts: 17
Joined: Sat Jun 26, 2021 10:39 pm

Re: how to kick off hotspot user only if they reach time and data limit

Sat May 14, 2022 11:00 pm

If you can define only time limit then use that, because if using and the data limit becomes obsolete.
So I assume what I want to achieve is not possible with routerOS.
Okay, thanks.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18958
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: how to kick off hotspot user only if they reach time and data limit

Sat May 14, 2022 11:34 pm

So basically you want

user1 that reaches data CAP before time limit to keep going until time limit reached??
user2 that reaches time limit to keep going until data CAP is reached??

Sounds like a script to be run on the router ..............
Run every 5 minutes or so that:
compares all users login time and current time to see if exceeds TIME XX
compares all users data usage to see if exceeds Amount YY
If both cases are true then stop user.

So it can be done, but it will take some work, there is no cookie cutter settings to do this for you.
 
parfait02
just joined
Topic Author
Posts: 17
Joined: Sat Jun 26, 2021 10:39 pm

Re: how to kick off hotspot user only if they reach time and data limit

Sat May 14, 2022 11:50 pm

So basically you want

user1 that reaches data CAP before time limit to keep going until time limit reached??
user2 that reaches time limit to keep going until data CAP is reached??
Exactly, or to put it simpler : enable data limitation only after a certain amount of time.
Maybe i should have asked if there is a script to plan a data limitation to take effect after a certain period in future.
 
reinerotto
Long time Member
Long time Member
Posts: 519
Joined: Thu Dec 04, 2008 2:35 am

Re: how to kick off hotspot user only if they reach time and data limit

Tue May 17, 2022 10:12 am

What you want, can be controlled using RADIUS (i.e. freeradius). I do exactly what you want on hotspots, running openwrt, using coova-chilli as captive portal (which is the most flexible, but most complicated CP), which cooperates with RADIUS. To get rid of the bad guys, downloading or watching high res videos, on a free hotspot, blocking WiFi airtime.
Dunno how to integrate this RADIUS functionality into MTs hotspots, which I consider not to be suitable for hotspots with "above basic" requirements.

Who is online

Users browsing this forum: BinaryTB, GoogleOther [Bot] and 69 guests