Community discussions

MikroTik App
 
Cooperdale
just joined
Topic Author
Posts: 10
Joined: Fri Feb 17, 2017 8:35 pm

Question about Hotspot configuration

Fri Feb 28, 2020 11:29 pm

Hello guys, I need to configure a Hotspot like this: the user has a limited time of 2 days since the first login with his Hotspot credentials. When the 2 days have passed, he can't use the Hotspot anymore.

Problem is, I need the 2 days to be counted since his first connection. So, if he connects on Monday at 11, he should be allowed to use the Hotspot until Wednesday at 11.

Instead it seems to me the 2 days are counted as effective connection time. So, if the user logs in at 11 and logs out at 12 and doesn't login for the rest of the day, only 2 hours will be subtracted from his total 48 hours. Instead, I need 24 hours a day to be subtracted, whether he stays connected or not.

Is this possible? I've read the wiki, articles and threads but I can't find a way.

Thanks.
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: Question about Hotspot configuration

Sun Mar 01, 2020 6:55 pm

Yes it is possible.
Use Mikrotik User manager and set the validity of the user's profile to 2 days...
If you dont want to use the User manager, you can do it with a script...
 
Cooperdale
just joined
Topic Author
Posts: 10
Joined: Fri Feb 17, 2017 8:35 pm

Re: Question about Hotspot configuration

Sun Mar 01, 2020 7:14 pm

Yes it is possible.
Use Mikrotik User manager and set the validity of the user's profile to 2 days...
If you dont want to use the User manager, you can do it with a script...
Thanks. I installed it but never used it before. Is it only accessible with a browser?
 
Cooperdale
just joined
Topic Author
Posts: 10
Joined: Fri Feb 17, 2017 8:35 pm

Re: Question about Hotspot configuration

Sun Mar 01, 2020 11:21 pm

Or, if I should use a script, is it possible to get first connection date and time for a user? The script worries me because it should check all users at each run I think, and there are 3000 premade users on the routerboard. I don't know if it'd be heavy on the cpu. The routerboard is an RB1100AHx4.
 
brams
just joined
Posts: 2
Joined: Sat Mar 14, 2020 11:01 pm

Re: Question about Hotspot configuration

Sat Mar 14, 2020 11:11 pm

Hello Guy,

Sorry to introduce me like this in your topic. Since a moment a try to find out how create my topic.

but the main topic is the same as your, it's about hotspot.
I try connect a conneted device to my hotspot, but the fact is I don't have any web interface on this device to enter the credentials to access to the hotspot.
how could I setup my hotspot to allow device to be connect bypassing the hotspot ?

Who is online

Users browsing this forum: Bing [Bot], meshnet, pdiegosilva, samotoka, superreeen and 54 guests