Community discussions

MUM Europe 2020
 
richarr68
just joined
Topic Author
Posts: 6
Joined: Thu Oct 07, 2010 6:31 pm

Hotspot Authentication Even Without Internet

Fri Dec 10, 2010 7:07 am

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



 
fewi
Forum Guru
Forum Guru
Posts: 7734
Joined: Tue Aug 11, 2009 3:19 am

Re: Hotspot Authentication Even Without Internet

Fri Dec 10, 2010 7:43 pm

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.
 
richarr68
just joined
Topic Author
Posts: 6
Joined: Thu Oct 07, 2010 6:31 pm

Re: Hotspot Authentication Even Without Internet

Thu Feb 10, 2011 4:21 am

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
 
fewi
Forum Guru
Forum Guru
Posts: 7734
Joined: Tue Aug 11, 2009 3:19 am

Re: Hotspot Authentication Even Without Internet

Thu Feb 10, 2011 5:19 am

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.
Specific answers require specific questions. When in doubt, post the output of "/ip address print detail", "/ip route print detail", "/interface print detail", "/ip firewall export", and an accurate network diagram.
 
ibermi
just joined
Posts: 22
Joined: Mon Dec 13, 2010 12:26 pm

Re: Hotspot Authentication Even Without Internet

Tue Sep 18, 2012 7:14 pm

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!
miguelbatista at ibersystems.es
Experto en redes WiFi y enlaces WiFi.

Facebook: @Ibersystems
Twitter: @Ibersystems

Expert in Wireless, Hotspots, Linux and Radius Servers
 
apolon10
just joined
Posts: 10
Joined: Wed Jun 29, 2011 3:35 pm

Re: Hotspot Authentication Even Without Internet

Wed Feb 20, 2013 1:12 pm

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 ?
 
mecmaster
just joined
Posts: 1
Joined: Sun Jun 16, 2013 5:29 pm

Re: Hotspot Authentication Even Without Internet

Wed Oct 30, 2013 2:30 am

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
 
panosla
just joined
Posts: 22
Joined: Sat Aug 16, 2014 6:47 pm

Re: Hotspot Authentication Even Without Internet

Fri Oct 09, 2015 9:28 pm

Any solutions yet? :(
 
ilja
newbie
Posts: 49
Joined: Thu Feb 22, 2018 1:15 pm

Re: Hotspot Authentication Even Without Internet

Mon Mar 12, 2018 4:24 pm

Has anyone solved this problem? :/
 
esquirrel
Frequent Visitor
Frequent Visitor
Posts: 51
Joined: Wed Feb 21, 2018 3:04 pm

Re: Hotspot Authentication Even Without Internet

Tue Mar 13, 2018 6:06 am

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?
 
reinerotto
Member
Member
Posts: 437
Joined: Thu Dec 04, 2008 2:35 am

Re: Hotspot Authentication Even Without Internet

Tue Mar 13, 2018 2:59 pm

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
 
ilja
newbie
Posts: 49
Joined: Thu Feb 22, 2018 1:15 pm

Re: Hotspot Authentication Even Without Internet

Tue Mar 13, 2018 4:07 pm

Found a working solution!

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

Who is online

Users browsing this forum: No registered users and 79 guests