Community discussions

MikroTik App
 
Polly_31
newbie
Topic Author
Posts: 26
Joined: Tue Feb 05, 2008 3:59 pm

simulating Internet for Hotspot

Mon Mar 31, 2008 6:27 pm

Hi all,

On and off I take a spare RB300 from work with me home to work on it for a hotspot. As I have no Internet connection at home I can only connect to the SSID. However if I open a webpage I see nothing, not even the alogin.html

Is there a way I could "simulate" the Internet that the alogin is shwon when connecting?

Thanks
Chris
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Re: simulating Internet for Hotspot

Mon Mar 31, 2008 6:50 pm

The reason is that DNS resolution is not working.

In RouterOS 3.x you can fake that using static DNS entries with regex-based names, so e.g. resolve everything to localhost with a dns static entry for ".*" pointing to "127.0.0.1".

This will bring up your hotspot login screen.
But don't expect to create a portable version of the internet that way :D...
 
Polly_31
newbie
Topic Author
Posts: 26
Joined: Tue Feb 05, 2008 3:59 pm

Re: simulating Internet for Hotspot

Tue Apr 01, 2008 3:29 pm

Hi Christian,

Can you give me a clue qhich command I have to enter in CLI to make a static DNS?

ip dns static> add name http://www.example.com address=127.0.0.1

But how can I perform that ".*" is routed to 127.0.0.1 afterwards, or is this done automaticlly?

Thanks,
Chris
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Re: simulating Internet for Hotspot

Tue May 06, 2008 12:37 pm

Hi Chris,

it's simple:
/ip dns static add name=.* address=127.0.0.1
That's all to do...