Community discussions

MikroTik App
 
shivathapa
just joined
Topic Author
Posts: 21
Joined: Fri Jul 08, 2011 9:58 am

How to redirect hotspot login page to new external server

Mon Oct 17, 2011 9:33 am

- We have a mikrotik router acting as hotspot gateway.
- Radius Manager 3.0 is used as authentication server.

what We are trying to do is :

- Mikrotik will only used as gateway.
- All the request will be redireted to external server(web server).
- Hotspot user will login from the login page hosted in external server.

Is it possible ? How ?

We have designed a login page with php and all .

Thanx in advance.
 
User avatar
sadeghrafie
Long time Member
Long time Member
Posts: 514
Joined: Sat Nov 14, 2009 11:28 am
Location: Bushehr, IRAN

Re: How to redirect hotspot login page to new external serve

Mon Oct 17, 2011 10:07 am

Hi shivathapa,
You can customized Mikrotik HotSpot login page. After setup Hotspot Server, go to /file and in there you'll see a folder with name Hotspot that contains some files. copy the folder to your system and edit.
For more info http://wiki.mikrotik.com/wiki/Manual:Cu ... ng_Hotspot
 
shivathapa
just joined
Topic Author
Posts: 21
Joined: Fri Jul 08, 2011 9:58 am

Re: How to redirect hotspot login page to new external serve

Tue Oct 18, 2011 10:13 am

I have tried and is not working.

I need it very badly.

Pls help me out .


Regards,
Shiva
 
User avatar
sadeghrafie
Long time Member
Long time Member
Posts: 514
Joined: Sat Nov 14, 2009 11:28 am
Location: Bushehr, IRAN

Re: How to redirect hotspot login page to new external serve

Tue Oct 18, 2011 10:41 am

What did you do? While edit login page, there is certain code that shouldn't change. Here is an example http://wiki.mikrotik.com/wiki/Use_HOTSP ... nt_purpose
 
shivathapa
just joined
Topic Author
Posts: 21
Joined: Fri Jul 08, 2011 9:58 am

Re: How to redirect hotspot login page to new external serve

Tue Oct 18, 2011 12:24 pm

Thanx for the reply.

Current scenario :

- I'm currently using the default hotspot Directory page ie login.html and other under files.
along with Radius Server 3.9.

What I'm trying to do is :

- Design a page login.php and hosted in external server(web server) not in mikrotik.
- Just need to redirect to login.php to some domain(www.wifi.com) or something else.

Will it work ? Does it make any difference while authenticating with radius server ? How can I make it work ?

I have read in teh forum , it is possible but It didn't

If it does, How ?

Pls help.


Regards,
Shiva
 
User avatar
sadeghrafie
Long time Member
Long time Member
Posts: 514
Joined: Sat Nov 14, 2009 11:28 am
Location: Bushehr, IRAN

Re: How to redirect hotspot login page to new external serve

Tue Oct 18, 2011 4:12 pm

 
shivathapa
just joined
Topic Author
Posts: 21
Joined: Fri Jul 08, 2011 9:58 am

Re: How to redirect hotspot login page to new external serve

Wed Oct 19, 2011 10:17 am

HotSpot Redirect To External Login Page
From MikroTik Wiki
Jump to: navigation, search
When login page is hosted on the another server, and HotSpot users should be redirected to external login page.

Create rlogin.html page, which redirects to external server login page.
Make the copy of the rlogin.html page to the following pages,
rlogin.html(How to and what should be included)
falogin.html (How to and what should be included)
fstatus.html (How to and what should be included)
flogout.html (How to and what should be included)
fadvert.html (How to and what should be included)

HTML knowledge is required to make correct rlogin.html and other pages, but it is not covered in the topic.
 
shivathapa
just joined
Topic Author
Posts: 21
Joined: Fri Jul 08, 2011 9:58 am

Re: How to redirect hotspot login page to new external serve

Wed Oct 19, 2011 1:12 pm

Now its working from login.php hosted in external server.

- but need to following the steps as following (I have name called ttdcwifi:

- have to manually type ttdc.wifi/login (redirects to ttdcwifi.mos.com.np/login.php(this is hosted in one of our server).
- have to manually logout. What happens logout successfull but returns http error 404.
- Status page is not showing as we used to have earlier after sucessful login.

What I have done is , I have login.php along with others files that we have in default mikrotik hotspot folder (error.html,logout.html,status.html,alogin.html,redirect.html to external server.

Is there nything to left so that i can have the same as we used to have while in router.

Thanx in advance and waiting the reply.

Thanx ,
 
angboontiong
Forum Guru
Forum Guru
Posts: 1136
Joined: Fri Jan 16, 2009 9:59 am

Re: How to redirect hotspot login page to new external serve

Wed Oct 19, 2011 1:30 pm

Now its working from login.php hosted in external server.

- but need to following the steps as following (I have name called ttdcwifi:

- have to manually type ttdc.wifi/login (redirects to ttdcwifi.mos.com.np/login.php(this is hosted in one of our server).
- have to manually logout. What happens logout successfull but returns http error 404.
- Status page is not showing as we used to have earlier after sucessful login.

What I have done is , I have login.php along with others files that we have in default mikrotik hotspot folder (error.html,logout.html,status.html,alogin.html,redirect.html to external server.

Is there nything to left so that i can have the same as we used to have while in router.

Thanx in advance and waiting the reply.

Thanx ,

Have you put the external server ip to the wall-garden.
 
shivathapa
just joined
Topic Author
Posts: 21
Joined: Fri Jul 08, 2011 9:58 am

Re: How to redirect hotspot login page to new external serve

Wed Oct 19, 2011 1:37 pm

yes Already.

Now I just want the status and logout page to be displayed.

- status page just after sucessful login.
- logout for customer logout purpose.
 
angboontiong
Forum Guru
Forum Guru
Posts: 1136
Joined: Fri Jan 16, 2009 9:59 am

Re: How to redirect hotspot login page to new external serve

Wed Oct 19, 2011 2:59 pm

yes Already.

Now I just want the status and logout page to be displayed.

- status page just after sucessful login.
- logout for customer logout purpose.
The status page is depend have you user blocked the pop on page or not.
and regarding the logout page, it actually inside the pop out page when user successfully login.
 
shivathapa
just joined
Topic Author
Posts: 21
Joined: Fri Jul 08, 2011 9:58 am

Re: How to redirect hotspot login page to new external serve

Thu Oct 20, 2011 6:44 am

Allowed all the popups.

Actually I dont understand , Shoud I have to place the status and logout page in the router or
It has to be with the login.php hosted in external server ?....
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: How to redirect hotspot login page to new external serve

Thu Oct 20, 2011 1:15 pm

Only the login.html page is redirected to the external server. The status.html and other pages stay in the router.

If you did not find the wiki article on external login pages, this might help.
http://wiki.mikrotik.com/wiki/HotSpot_e ... login_page
 
shivathapa
just joined
Topic Author
Posts: 21
Joined: Fri Jul 08, 2011 9:58 am

Re: How to redirect hotspot login page to new external serve

Thu Oct 20, 2011 1:57 pm

I did the same already and it worked.

Thanx to all and hope for the same in the future.
 
nirmal
newbie
Posts: 44
Joined: Fri May 24, 2013 10:15 am

Re: How to redirect hotspot login page to new external serve

Fri May 24, 2013 11:13 am

Hi siva

I also wanted to do that extact thing, I want to know that where to edit where i can give the my external server IP?

If you see the hotspot Directory lot of file are there which are the file has to be edited?
 
dlhai
just joined
Posts: 2
Joined: Mon Jul 29, 2013 6:00 am

Re: How to redirect hotspot login page to new external serve

Mon Jul 29, 2013 6:21 am

Hi all,

I am going to deploy an External Web Server and Radius Server. I want to clearly know about below sthings:

1. Is variables defined and put somewhere in Mikrotik Gateway ?? And can we know where? Can we edit them ?
2. If we are using External web server, so user will be redirected to External Web Server, after that External Web Server will handle these variables, e.g username and password. So how External Web Server contact with Radius Server for authentication? If these password and username wrong, so how External Web Server return result to Mikrotik gateway ??


Thank for your help and advices
 
nepal
newbie
Posts: 28
Joined: Thu Apr 11, 2013 10:42 am

Re: How to redirect hotspot login page to new external serve

Wed Oct 30, 2013 5:14 pm

Please can anyone tell me how this can be useful? Rather, I am thinking about integrating Mikrotik for billing automation. If anyone have links to useful resources please kindly provide it.

Thanks in advance
 
keysers0ze
just joined
Posts: 10
Joined: Mon Sep 01, 2014 5:19 pm

Re: How to redirect hotspot login page to new external serve

Tue Sep 02, 2014 2:48 pm

Hi web specialists,

- i have external web server problem for hosting multiple hotspot router login page.. more network guy than /php /css /html builder... :)

Whats working:
- DMA radiusmanager + Mikrotik hotspot (registering + paypal payments + login successfully).
- External Web server hosting Mikrotik Userman login (Mikrotik Hotspot redirects login to external web server). used php from "http://wiki.mikrotik.com/wiki/HotSpot_e ... login_page"


Not Working (don't know what files needs modification):
- External Web server hosting Mikrotik hotspot login.html with DMA radiusmanager authentication)


wandering thoughts:
- Best way to secure login communication between hotspot routers <-> servers ?
- Best protocol for using between router <-> servers ? http-chap, http-pap, https ? or even simple answer when/why to use for. ex. https ?


Network pic:
Image


Visio-mtik-hotspot-radius-auth.pdf

br.
K
You do not have the required permissions to view the files attached to this post.
 
keysers0ze
just joined
Posts: 10
Joined: Mon Sep 01, 2014 5:19 pm

Re: How to redirect hotspot login page to new external serve

Tue Sep 09, 2014 1:48 am

Hi all,

I am going to deploy an External Web Server and Radius Server. I want to clearly know about below sthings:

1. Is variables defined and put somewhere in Mikrotik Gateway ?? And can we know where? Can we edit them ?
2. If we are using External web server, so user will be redirected to External Web Server, after that External Web Server will handle these variables, e.g username and password. So how External Web Server contact with Radius Server for authentication? If these password and username wrong, so how External Web Server return result to Mikrotik gateway ??


Thank for your help and advices


- Did you find answers to your questions ? Did you get ext. Web server hosting login for radius ?
- im struggling with the same questions.. :)

Br.
.K
 
serhansezgin
just joined
Posts: 5
Joined: Wed May 06, 2015 4:27 pm

Re: How to redirect hotspot login page to new external server

Fri May 08, 2015 6:22 am

Hi, in this method is the client authenticated to the local mikrotik's captive portal or remote external server's captive portal?
when i tried this method, it worked, client could go out to the internet, but client logon to the local mikrotik's captive portal,
i need to make the client log on to the externel server's captive portal, i did this via editing the php files, now client logs on to the external server pfsense's captive portal, but client can not go to the internet, i think i must give some permissions on the mikrotik too. do you know this method, how can i achieve this situation?
 
dlhai
just joined
Posts: 2
Joined: Mon Jul 29, 2013 6:00 am

Re: How to redirect hotspot login page to new external serve

Wed Aug 12, 2015 12:17 pm

Hi all,

I am going to deploy an External Web Server and Radius Server. I want to clearly know about below sthings:

1. Is variables defined and put somewhere in Mikrotik Gateway ?? And can we know where? Can we edit them ?
2. If we are using External web server, so user will be redirected to External Web Server, after that External Web Server will handle these variables, e.g username and password. So how External Web Server contact with Radius Server for authentication? If these password and username wrong, so how External Web Server return result to Mikrotik gateway ??


Thank for your help and advices


- Did you find answers to your questions ? Did you get ext. Web server hosting login for radius ?
- im struggling with the same questions.. :)

Br.
.K
Long time no accessing here. Yes I did successfully.
 
Anshul
just joined
Posts: 4
Joined: Thu Aug 20, 2015 11:01 am

redirecting to hotspot login page taking time

Tue Sep 15, 2015 3:17 pm

hey guys,

i just did my hotspot configuration but i'm facing issues while redirecting to login page....its taking almost
2 to 3 mins for login page to appear on my browser...i want to tweak this redirecting time to 10 secs....anyone can tell me how to do that????

Who is online

Users browsing this forum: Bing [Bot], cyrq, jerogabe, sybadi, vkp and 37 guests