Page 1 of 1

Hotspot Authentication Even Without Internet

Posted: Fri Dec 10, 2010 7:07 am
by richarr68
Hi Guys,

Am looking at having a setup where it will be mandatory for every user of my network to authenticate through mikrotik hotspot to either have access to my localnet(LAN/ WLAN) or the internet. I have realized that, without internet access the hotspot login interface does not come up.

My question is, how do I get mikrotik hotspot to do authenticationon the LAN /WLAN even if internet is down?

Thanks




Re: Hotspot Authentication Even Without Internet

Posted: Fri Dec 10, 2010 7:43 pm
by fewi
You have to make all the necessary resources available locally.

All pictures, scripts, style sheets etc. that make up the login page have to be available without Internet access, the clients have to use a DNS server that is locally available (such as the router itself), and the DNS server must be able to resolve all required hostnames without relying on another resolver further upstream.

Re: Hotspot Authentication Even Without Internet

Posted: Thu Feb 10, 2011 4:21 am
by richarr68
Hello guys,

I tried Fewi’s suggestions and it works but I seem to be experiencing a few other problems which I think are basically configuration problems.

Actually I did try my hands on setting up this scenario with RB450G using the example under Hairpin NAT and this http://forum.mikrotik.com/viewtopic.php ... web+server. It seems to work fine when the public interface as well as the local are all up. However, when the public interface is down, the hotspot page does not come up automatically on the local side. I am logged directly into my local applications without authentication irrespective of whether I try to log in by IP or www. Sometimes I get the login page and it takes me through authentication but after that am not directed to the requested application. I get page not found.

I will really appreciate it if any of you seasoned programmers would suggest alternatives to get my setup up and running fully with hotspot working as it should.

Fewi had mentioned that I needed to make all pictures, scripts, style sheets etc. that make up the login page to be available without Internet access. How do I make this?

Thanks

Re: Hotspot Authentication Even Without Internet

Posted: Thu Feb 10, 2011 5:19 am
by fewi
You just host them on the router (or local web server) and don't refer to any pictures, stylesheets etc. on Internet web servers. The tricky thing really is name resolution. The client first asks for DNS for whatever page they're trying to load, only then do they actually request the web page. Until they do, the router cannot redirect them and show the login page instead. Now, with the Internet unavailable how is your DNS server going to answer a client request if it does not have the answer cached? After all, it cannot possibly know about all existing DNS records. You'd need some sort of specialty DNS server you can redirect to when the Internet is down that gives a bogus reply to any question asked. I guess it wouldn't be horribly difficult to write such a DNS server, but I am not aware of any out of the box solution that provides such a service.

Re: Hotspot Authentication Even Without Internet

Posted: Tue Sep 18, 2012 7:14 pm
by ibermi
Hello,

to solve the problems of DNS, you can make a DNS entry as ".*.*" as IP OF THE HOTSPOT.. to get "all" DNS working.

example in static DNS:

10.1.50.1 my.wifi.com
10.1.50.1 .*.*


This will show you the hotspot login page without internet in the router.

If you connect to hotspot and go to www.google.es will work... and show your login page.
The problem is when you try to go to www.myweb.com/something.php... as something.php doesn't exists in the /files menu, it will return a 404 error... We don't know how to fix this. Any idea? : D!

Re: Hotspot Authentication Even Without Internet

Posted: Wed Feb 20, 2013 1:12 pm
by apolon10
Is any way to redirect to login page without internet access(when internet link is down by isp), a try to set dns server on local PC as secundary DNS server to redirect all requsts to specific IP, but not working if URL looking for specific page on domain(for example if you type nba.com it's works but if you type nba.com/something it won't work), now I'm looking to catch unresolved DNS request using Regular expressions but it's so complicated...

Is any way to redirect unresolved DNS requests to specific local IP address ?
Any suggestions ?

Re: Hotspot Authentication Even Without Internet

Posted: Wed Oct 30, 2013 2:30 am
by mecmaster
example in static DNS:

10.1.50.1 my.wifi.com
10.1.50.1 .*.*
but it does not solve a problem on iOS (
maby it is some way to install local dns server on mikrotik and redirect to local hotspot page?

I need to install some information hotspot on a local network without any internet connection

Re: Hotspot Authentication Even Without Internet

Posted: Fri Oct 09, 2015 9:28 pm
by panosla
Any solutions yet? :(

Re: Hotspot Authentication Even Without Internet

Posted: Mon Mar 12, 2018 4:24 pm
by ilja
Has anyone solved this problem? :/

Re: Hotspot Authentication Even Without Internet

Posted: Tue Mar 13, 2018 6:06 am
by esquirrel
Is it possible for a business to use the "hotspot" to give customers who visit their store access to their web site via a Virtual AP that has no login, password or encryption that just serves up their web site and nothing else? (from a local disk or server like one running on a Raspberry Pi or similar very low cost server.)

Even if for some reason the net is down? If so how is it done?

Re: Hotspot Authentication Even Without Internet

Posted: Tue Mar 13, 2018 2:59 pm
by reinerotto
Did several commercial systems, like you are asking for. However, MT is not the wright platform for this, because not flexible enough.
openwrt is the way to go.
I.e. I did a "local hotspot" for on board aircraft, without internet connection, to work as media server, for order processing etc.
In case of commercial interest, you can mail me on augustus_meyerATyahoo.de

Re: Hotspot Authentication Even Without Internet

Posted: Tue Mar 13, 2018 4:07 pm
by ilja
Found a working solution!

Check out - viewtopic.php?f=2&t=86552&p=647763#p647763