Community discussions

 
alaqmar2013
just joined
Topic Author
Posts: 4
Joined: Thu Feb 14, 2019 9:43 am

Username/Password hotspot

Thu Feb 14, 2019 10:01 am

Hello, I have routerboard 1100 4x, when i create hotspot user/pass all went Ok, The iphone and android users need to re-enter the username and pass every time they logged in even if they left the device unused for 2 minuted or so, this disturb my client as I set the the subscribtion for 1 day/ 1 month, is possible to enter the user/pass for one time?
 
ianngrh
just joined
Posts: 18
Joined: Thu Aug 30, 2018 6:53 am

Re: Username/Password hotspot

Mon Feb 18, 2019 7:15 am

Hi alaqmar2013,

On /ip hotspot user profile, turn off the keepalive-timeout and set idle-timeout the same as session-timeout.
You can also use mac-cookies feature to do that.

Hope this help your problem. :D
Still trying to be better than before
 
alaqmar2013
just joined
Topic Author
Posts: 4
Joined: Thu Feb 14, 2019 9:43 am

Re: Username/Password hotspot

Tue Feb 19, 2019 12:17 pm

Hi alaqmar2013,

On /ip hotspot user profile, turn off the keepalive-timeout and set idle-timeout the same as session-timeout.
You can also use mac-cookies feature to do that.

Hope this help your problem. :D
Thank you for your support, I will give it a try. Now i set user manager to work on, How to set setting mac, idle/session timeout you mentioned in user manager, to test it?

Edited:
After test one iphone using winbox IP user profile works as expected, but when I use the user manager profile i got the Iphone asking for login page over and over when Iphone got off, any advice to use the profile i create in winbox within user manager? or sync the user profile to winbox?

Edited1
I notice
User manager profile/ user Active
idle keepalive timeout set to 2 minutes, how to disable it please? and enable idle and session timeout?
 
ianngrh
just joined
Posts: 18
Joined: Thu Aug 30, 2018 6:53 am

Re: Username/Password hotspot

Wed Feb 20, 2019 6:20 am

The keepalive-timeout & idle-timeout is located on "/ip hotspot server" and "/ip hotspot user profile". The differences are :
  1. Keepalive-timeout & idle-timeout on /ip hotspot server is applied when first time the user connected to the hotspot. If the user reached those timeout limit, the user will removed from /ip hotspot host.
  2. Keepalive-timeout & idle-timeout on /ip hotspot user profile is applied when the user logged in successfully.

My suggestion is to turn off the keepalive-timeout & keep idle-timeout value as 00:05:00 on /ip hotspot setting. Then set the keepalive-timeout & idle-timeout on user profile to none.
So the unauth user will be removed from hotspot on 5 minutes idle and the successful logged in user have no keepalive & idle timeout assigned.

On this case it seems the user profile is not pointed on the usermanager so it following the default user profile on mikrotik hotspot. Therefore you just need to set the default user profile. No need to edit the user manager.
/ip hotspot user profile set default keepalive-timeoute=none idle-timeout=none add-mac-cookie=yes

To enable the mac-cookies you can enable it on "/ip hotspot profile".
/ip hotspot profile set hsprof1 login-by"mac-cookies,http-pap,http-chap"
Note : please change hsprof1 to your actual hotspot profile.

Please see the wiki for more detail
https://wiki.mikrotik.com/wiki/Hotspot
https://wiki.mikrotik.com/wiki/Manual:RADIUS_Client
https://wiki.mikrotik.com/wiki/Manual:User_Manager

Hope this help.
Still trying to be better than before
 
alaqmar2013
just joined
Topic Author
Posts: 4
Joined: Thu Feb 14, 2019 9:43 am

Re: Username/Password hotspot

Sat Mar 23, 2019 3:14 pm

Thank you so much working as expected. I have one question please: I want to lock users for one device, i notice If the user logout, can use the login credentials on another device. I want to prevent that, Please your assistance. I'm using winbox and usermanager. Thanks again
 
alaqmar2013
just joined
Topic Author
Posts: 4
Joined: Thu Feb 14, 2019 9:43 am

Re: Username/Password hotspot

Sat Mar 23, 2019 6:41 pm

Using User Manager by check bind on first use will prevent the users to use the login credentials on multiple devices.

Who is online

Users browsing this forum: Google [Bot] and 2 guests