Community discussions

MikroTik App
 
JohnServerDev
newbie
Topic Author
Posts: 26
Joined: Thu Jan 22, 2015 11:56 am

Login a user to HotSpot with MikroTik commands

Sun Feb 08, 2015 9:37 am

Hi,

Can we login a user to HotSpot with MikroTik commands instead of using "login.html" or redirection solutions?

Imagine I have a user with the following username and password: (User1 / 123456)
How can I login the user without redirect him/her to the login.html page?

Is there any command (via MikroTik console) available?

Thank you in Advance.
 
User avatar
czolo
Member
Member
Posts: 423
Joined: Fri Mar 04, 2005 9:49 am
Location: Poland (Warsaw)
Contact:

Re: Login a user to HotSpot with MikroTik commands

Sun Feb 08, 2015 11:36 am

You can walledgarden him by MAC or IP
 
JohnServerDev
newbie
Topic Author
Posts: 26
Joined: Thu Jan 22, 2015 11:56 am

Re: Login a user to HotSpot with MikroTik commands

Sun Feb 08, 2015 11:42 am

Thank you for the reply czolo.

But I have a Radius Server for my HotSpot and I want to use username/password of the user for login him/her into the system.
Is there any command that I can add the user in the "Active Users" or other commands to login them?

Thank you in Advance.
 
User avatar
czolo
Member
Member
Posts: 423
Joined: Fri Mar 04, 2005 9:49 am
Location: Poland (Warsaw)
Contact:

Re: Login a user to HotSpot with MikroTik commands

Sun Feb 08, 2015 12:02 pm

No, you can;t add a username into active. This action is dynamicly, and only way for that is to manually bind a specific mac to ip and than walledgarden it.
 
JohnServerDev
newbie
Topic Author
Posts: 26
Joined: Thu Jan 22, 2015 11:56 am

Re: Login a user to HotSpot with MikroTik commands

Sun Feb 08, 2015 12:07 pm

Thanks again.

Could you please provide me an example?
I can't really understand the way you said.

Thank you in Advance.
 
User avatar
czolo
Member
Member
Posts: 423
Joined: Fri Mar 04, 2005 9:49 am
Location: Poland (Warsaw)
Contact:

Re: Login a user to HotSpot with MikroTik commands

Sun Feb 08, 2015 12:24 pm

OK. I can try
If user connects to your hotspot, it creates a row int "/ip hotspot host".
User have to login first time, and after that it will create a row in "/ip hotspot active". There you can check username IP.
Now you can bind that user with specific MAC, and choose "bypassed" for a type of authorization.
On the end you will have a MAC (not a username) in ip-bindings, that will allow to connect that device to hotspot without login process.

I know that you want to do that with username, but try to thing: how you can know that a user want to use a specific username without login form? Answer is: You just can't. But you can do that if you know that user, and a user can be defined by it;s MAC addres or static ip (so MAC anotherway).
Last edited by czolo on Sun Feb 08, 2015 12:28 pm, edited 2 times in total.
 
JohnServerDev
newbie
Topic Author
Posts: 26
Joined: Thu Jan 22, 2015 11:56 am

Re: Login a user to HotSpot with MikroTik commands

Sun Feb 08, 2015 12:28 pm

Thank you czolo,
It really helps.
 
User avatar
czolo
Member
Member
Posts: 423
Joined: Fri Mar 04, 2005 9:49 am
Location: Poland (Warsaw)
Contact:

Re: Login a user to HotSpot with MikroTik commands

Sun Feb 08, 2015 12:31 pm

I'm happy that I make it clear.
PS. You can always give me some KARMA :lol:

Who is online

Users browsing this forum: No registered users and 35 guests