Community discussions

MikroTik App
 
spaxton
Member Candidate
Member Candidate
Topic Author
Posts: 192
Joined: Fri Jan 01, 2010 12:18 pm

Hotspot redirect

Thu Jan 29, 2015 7:52 pm

Hello friends,

Before I start... I have searched the forum for the answer but no topic about hotspot solved my problem so I have to start a new one.

I am pretty new in hotspot but I have managed to make something that may work. Partially work... The thing is that I need hotspot where users don't need to add any kind of username or password, it will login automatically. So, user connects to the network, opens the browser and there is a login page which has predefined user/pass and it will login automatically but I would like the user click somewhere and then auto login activates.

Second thing is alogin.html page. It is displayed only if I use cookie login in server settings and it doesnt redirect me to the predefined page. Only shows that the user is successfully loged in. I followed instructions from this topic http://forum.mikrotik.com/viewtopic.php?f=10&t=51199

Next... If I disable cookie login then I see status page every time after login. This is what I would like to avoid.
BTW, Is it possible to redesign those pages and add custom photos?

Best Regards.
 
spaxton
Member Candidate
Member Candidate
Topic Author
Posts: 192
Joined: Fri Jan 01, 2010 12:18 pm

Re: Hotspot redirect

Thu Jan 29, 2015 9:09 pm

Is it possible to edit those pages without much trouble? By default (when I leave it untouched) it doesn't seem that it works like it should...

Anyone with knowledge ??? Help?
 
User avatar
czolo
Member
Member
Posts: 423
Joined: Fri Mar 04, 2005 9:49 am
Location: Poland (Warsaw)
Contact:

Re: Hotspot redirect

Thu Jan 29, 2015 11:32 pm

All is possible :)
Our system use responsive web pages, like this:
login_demo.png
As you can see, you login with just ACCEPT button, or by typing your e-mail, or... by login with your social accout in facebook, google, twitter etc.

See this demo: http://hotspot.aforte.pl/Trinity_Park_III/
It use only Accept button with accept terms checkbox.

More info you can find on our facebook profile:
https://www.facebook.com/afortenetworks

Nice trick is also logging with only password, without username :)
Ofcourse you can also add a printer, and print coupons, and it will look like this:
login_printer.png
You do not have the required permissions to view the files attached to this post.
 
spaxton
Member Candidate
Member Candidate
Topic Author
Posts: 192
Joined: Fri Jan 01, 2010 12:18 pm

Re: Hotspot redirect

Fri Jan 30, 2015 12:52 am

All is possible :)
Our system use responsive web pages, like this:
login_demo.png
As you can see, you login with just ACCEPT button, or by typing your e-mail, or... by login with your social accout in facebook, google, twitter etc.

See this demo: http://hotspot.aforte.pl/Trinity_Park_III/
It use only Accept button with accept terms checkbox.

More info you can find on our facebook profile:
https://www.facebook.com/afortenetworks

Nice trick is also logging with only password, without username :)
Ofcourse you can also add a printer, and print coupons, and it will look like this:
login_printer.png
Thanks for reply, friend. Is this powered by mikrotik?
I need login page which will say for example "To login, please click here". No usernames and passwords. user/pass can be predefined or automatically generated. after this I need redirection to some webpage... for example http://www.yahoo.com.
The only thing missing here is how to do it. :D Like I said... I am pretty new in hotspots.
 
User avatar
czolo
Member
Member
Posts: 423
Joined: Fri Mar 04, 2005 9:49 am
Location: Poland (Warsaw)
Contact:

Re: Hotspot redirect

Fri Jan 30, 2015 10:00 am

Yes, all above works with Mikrotik.
First of all, read wiki:
http://wiki.mikrotik.com/wiki/Manual:Cu ... ng_Hotspot
http://wiki.mikrotik.com/wiki/HotSpot_e ... login_page

You can just create a html page, where you have a <form>, with login, password and submit button. You can write login name inside that file, and let the user to type only the password. If you don't know how to send variables from MT to external PHP, just enable HTTP-PAP in hotspot server profile. Of course it's less secure, but it's easier for a start.
 
spaxton
Member Candidate
Member Candidate
Topic Author
Posts: 192
Joined: Fri Jan 01, 2010 12:18 pm

Re: Hotspot redirect

Fri Jan 30, 2015 11:58 am

Yes, all above works with Mikrotik.
First of all, read wiki:
http://wiki.mikrotik.com/wiki/Manual:Cu ... ng_Hotspot
http://wiki.mikrotik.com/wiki/HotSpot_e ... login_page

You can just create a html page, where you have a <form>, with login, password and submit button. You can write login name inside that file, and let the user to type only the password. If you don't know how to send variables from MT to external PHP, just enable HTTP-PAP in hotspot server profile. Of course it's less secure, but it's easier for a start.
Thanks friend. This is going to be free wifi internet but I want to limit users by bandwidth and time. They should stay connected for about 2 hours and after that they will need to login again. So, I dont need user type anything. All I need is this:

1. User connects to wifi
2. User opens the browser and custom login page is displayed with welcome screen saying: "To login click the photo"
3. After successful login user will be redirected to some webpage . http://www.facebook.com for example.

This is more HTML and web programming and I am not familiar too much eith it. Is there a simple way to do what I described above?

Best Regards.
 
User avatar
czolo
Member
Member
Posts: 423
Joined: Fri Mar 04, 2005 9:49 am
Location: Poland (Warsaw)
Contact:

Re: Hotspot redirect

Sat Jan 31, 2015 12:52 pm

Thanks friend. This is going to be free wifi internet but I want to limit users by bandwidth and time. They should stay connected for about 2 hours and after that they will need to login again. So, I dont need user type anything. All I need is this:

1. User connects to wifi
2. User opens the browser and custom login page is displayed with welcome screen saying: "To login click the photo"
3. After successful login user will be redirected to some webpage . http://www.facebook.com for example.

This is more HTML and web programming and I am not familiar too much eith it. Is there a simple way to do what I described above?

Best Regards.
I can understand you, but you asking to much if you expecting that someone will do that job for you.
No there isn't any simple way. There is only one right way to do that: start reading and trying to do that.
You can buy "know how", or try to do this by yourself. You have all the puzzles above, and all is described in wiki.
Respect our time and ask specific questions as you hit a problem.
 
spaxton
Member Candidate
Member Candidate
Topic Author
Posts: 192
Joined: Fri Jan 01, 2010 12:18 pm

Re: Hotspot redirect

Sat Jan 31, 2015 10:12 pm


I can understand you, but you asking to much if you expecting that someone will do that job for you.
No there isn't any simple way. There is only one right way to do that: start reading and trying to do that.
You can buy "know how", or try to do this by yourself. You have all the puzzles above, and all is described in wiki.
Respect our time and ask specific questions as you hit a problem.
Yes, I do respect Your time and apreciate every single reply posted in order to help. I just thought that there are some templates, easy to edit or similar... Yes, I read but it's not that fast and I have time limits to make it really work so I bought "know how". Hehe... 30 EUR and all problems with HTML are past now.

As for real problems... may not a problem but it is a question. :) Is it possible to have autogenerated passwords for every user when clicked on login? Autologin after that...

Best Regards.
 
User avatar
czolo
Member
Member
Posts: 423
Joined: Fri Mar 04, 2005 9:49 am
Location: Poland (Warsaw)
Contact:

Re: Hotspot redirect

Sun Feb 01, 2015 10:05 am

It's possible, if you are using external authentication server. You can redirect to external server, and make every user unique account based on MAC addres. You can take MAC from MT-hotspot (it's one of the variables in session). If you have a MAC, you can generate password and put it in Radius database, and on the end generate a html-link with specific login and password.
 
spaxton
Member Candidate
Member Candidate
Topic Author
Posts: 192
Joined: Fri Jan 01, 2010 12:18 pm

Re: Hotspot redirect

Mon Feb 02, 2015 3:24 pm

It's possible, if you are using external authentication server. You can redirect to external server, and make every user unique account based on MAC addres. You can take MAC from MT-hotspot (it's one of the variables in session). If you have a MAC, you can generate password and put it in Radius database, and on the end generate a html-link with specific login and password.
Ok. Thanks, friend.

Who is online

Users browsing this forum: No registered users and 51 guests