Page 1 of 1

request timeout when enabling hotspot

Posted: Sat Apr 23, 2011 3:18 pm
by salytwo
Hello all,

I setup hotspot with just 15 users then its normal to see destination unreachable in command prompt but unfortunately I get request timeout right now I could not recognize why?
Really I became very tired to debug such this error alone plz suggest me a hint.

thank you

Re: request timeout when enabling hotspot

Posted: Sat Apr 23, 2011 3:27 pm
by SurferTim
What program are you using in the command prompt?

The hotspot works by redirecting port 80 requests to the login page. Ports 21, 22, 25, 110, 443, etc., are blocked until you are logged in. If you are on the hotspot localnet and not logged in, you will get that response from programs using other than port 80. ADD: This applies to SSH or telnet connections to the router also.

Try using your browser to login, then once you are logged in, don't close the browser and open a command shell and try it again. If that does not work, post results here.

Re: request timeout when enabling hotspot

Posted: Sat Apr 23, 2011 5:30 pm
by salytwo
I am using windows command prompt . regard redirecting I put IP of my LAN interface 192.168.1.1. it supposed to be unreachable until logged on.

[admin@MikroTik] /ip hotspot> print
Flags: X - disabled, I - invalid, S - HTTPS
0 X name="hotspot1" interface=LAN address-pool=dhcp_pool1 profile=hsprof1 idle-timeout=5m keepalive-timeout=none addresses-per-mac=1

I have unused default profile

[admin@MikroTik] /ip hotspot profile> print
Flags: * - default
0 * name="default" hotspot-address=0.0.0.0 dns-name="" html-directory=hotspot rate-limit="" http-proxy=0.0.0.0:0 smtp-server=0.0.0.0
login-by=http-chap split-user-domain=no use-radius=no

This is what I am using [profile]
1 name="hsprof1" hotspot-address=192.168.1.1 dns-name="www.almasila-est.com" html-directory=hotspot rate-limit=""
http-proxy=0.0.0.0:0 smtp-server=0.0.0.0 login-by="" use-radius=no

Re: request timeout when enabling hotspot

Posted: Sat Apr 23, 2011 6:51 pm
by SurferTim
There is a problem with your hotspot setup. The hotspot-address should not be 0.0.0.0. It should be 192.168.1.1. How did you setup the hotspot? I use "/ip hotspot setup".

But before that, you need to have these set; "/ip address" ,"/ip route", "/ip dns", "/ip dhcp-server", and "/ip firewall nat".

Did you change one of the localnet interface names to "LAN"? Maybe if you post "/ip address" that would help.

Check the localnet operation before you install the hotspot. If it doesn't work, the hotspot probably won't.

I would remove that hotspot and setup another on that interface.
/ip hotspot
remove 0
setup
My bad. Remove the dns-name entry from the hotspot profile and try it again. That domain must resolve to 192.168.1.1. Does it?
Try from the CLI
:put [:resolve www.almasila-est.com]
And set "login-by=http-chap".