Hello ,
I have notice a strange problem
I’m using hotspot on my RB411
when there is an internet connection - I get the login page right away
but if the internet connection is down - the page doesn’t come up
is there a way to fix this?
I want the users to get to my login page regatless if there is an internet connection or not
Client PC must generate a web request which gets redirected to the login page. If internet is down, DNS will fail, so the browser will not have any IP to attempt it’s connection. You could try redirecting all DNS to an internal server that resolves EVERYTHING to the hotspot IP… If you do, then be SURE to give VERY small TTL in the replies (5 seconds…)
I’m not sure how to set up the DNS server to give the same answer to any query, but assuming you have a server on the LAN which you’ve set up this way, if it’s Linux, you could configure it with an ip tables NAT rule to redirect all udp port 53 traffic to itself.
Then in the Mikrotik, configure /32 static routes for the real DNS addresses with distance=1 and the same gateway address as the default GW but add check gateway option on these routes. Then add the same /32 routes with distance=2, no check gateway, and next hop address =ip of the fake DNS server.
I only use Mikrotik RB411 device , no DNS computer\server connect to it.
so can I “create” a server on the RB ? that onky work if no internet access ?
an to redirect all the request to him?
ohhh
O.K
so let say I try to install my hotspot on x86
what do I need to do in order to be able to run a “fake” DNS server
so I will allways get the hotspot login page even if no internet is on?
If the x86 host is running RouterOS directly, then it’s just a router, the same as a routerboard, so you have no advantages there.
(You might try to install an OpenWRT metarouter image on it, since an x86 should have plenty of power to do routing and a virtual host at the same time)