NEED HELP WITH SOME HOTSPOT FUNCTIONALITY

hye guys…

i really need some big help here…Ive been working with MT products for quite awhile due to the fact that the company im working for is handling a big project to use MT product as a controller for their hotpsot project in my country…Ive some several issue in implementing MT as the controller…here i’ll list down problems that i’ve encounter:-

  1. The principals request for an automated logout system for MT hotspot servers. Is it possible to be implement? for example…Let’s just say i registered a url (lets say ap.logout) in the local DNS that points to my hotspsot gateway. So, if i login and then i wanna logout, i’ll just have to type ap.logout in the url bar in my browser and it will be directed to the status page where i can logout by pressing the logoff button. But the way i want it to function is when i type ap.logout, rather than going to the status page, it automatically redirect you to the logout page and logs you out from the hotspot service. is it possible?

  2. The second thing is, about whitelisting some sites in my hotspot landing page…I have a media rich landing provided by the principal that contains videos and some pictures grap from an advertisement server…Ive tried including the host address such as cdn.innity.net (the principals gave me that) in the walled garden section but it just not seems to work. I cant grap that video from the server…How does MT walled garden worked anyway? how can i make my media rich landing page grap all the necessary media that i need from the server?

  3. The third and the final one is about blacklisting some sites. I manage to use the MT web proxy but it could only work for a period of time. Lets say i blacklist http://www.youtube.com, i manage to not enter the website for the first login attempt. After a numbers of logins and logouts, i suddenly can enter the blacklist page. that doesn;t make my client happy. how can i settle this problem? is there a duration i need to set?

I know thats a lot of problem im asking here…but if anybody can give a heads up it’ll be much appreciated…

Thanks for the help guys :smiley:

Hi,

point1: I’m sure that “YOURHOTSPOTIP/logout” do this.

Point2 and 3: Read the walled garden and proxy documentation. It works fine.

http://wiki.mikrotik.com/wiki/Manual:IP/Hotspot#ip_hotspot_walled-garden


I hope this helps!

Just to elaborate on 1):

Yes, but there are some restrictions. The logout happens by hitting the “/logout” servlet on the router the customer is behind. If all your customers can reliably reach that router via a common name you can make a DNS name that resolves to a webserver that in turn redirects in that fashion. Example: all your routers carry a common IP address 10.255.255.255 as a loopback on a bridge. You can now make “logmeout.mycompany.com” that points to a webserver that in turn when hit on anything throws an HTTP 302 to “http://10.255.255.255/logout”. Since every router carries that IP the customers can log themselves off anywhere.

It’s easy www.mycompany.com/logout isn’t it?

thanks for the head up guys…

can i just called the logout page to logout?
i cant seem to understand the point…
can i not include the status page?
if there is any sample it’ll be a great help :smiley:

kudos for u guys :smiley: :smiley: :smiley: :smiley:

Yes. Navigating to http://router/logout logs the user out.

owh…
so i just need to call the logout page then…
is it possible to set a dns name just for the ease of usage since the principal ask us to use a short url such as ap.logout…
how can i link that to the logout page rather than prompting the status page?

My post from Mon Jun 14, 2010 6:49 am describes how. You need to have a web server that listens to that domain name and redirects the customer to the /logout servlet on the router.

how can i configure a web server in the router?
or should i use external web server?

im sorry cause im such a newb at this :confused:

thanks fewi…

it will help a lot if you could explain to me how does MT default hotspot landing page does the process..
Maybe from there I can start planning what to do…

http://www.mikrotik.com/testdocs/ros/2.9/ip/hotspot.php
That’s the outdated manual, but the “customizing HTTP servlet pages” hasn’t made it into the current wiki manual yet. It explains how the Hotspot works internally.

If you really want just a domain name a la “http://logmeoff.com” to log the user off you need an external web server that redirects to the logout servlet described in the link.

kudos fewi!!

you hav been a great help :smiley:

hye fewi…

im such a noob in this but i really need your help…
i run through the documentation u gave me earlier on…
but still i dont have any idea on how the router read the servlet…
my requirement is simple…
i just want after login, i’ll type the hotspot gateway, rather than going to the status page it’ll automatic logout…
i cant change the scripting in the status page because it’ll effect after i login again…
help me please :frowning:

Either go to http://routerIP/logout, or build an external webserver that has an index.html containing:

<html><head><meta http-equiv="refresh" content="0;url=http://routerIP/logout"></head></html>

Then when you access just that server, it’ll redirect to the same logout servlet.

I don’t know how to help you any more than what I posted. If that still doesn’t help you should go pay a consultant or hire someone else that can do this for you.