Hotspot connection issues

I have setup the Hotspot on RouterOS 5.2 and got it running.
Testing with a HTC Desire HD phone and 2 different laptops all on wifi.

All devices getting their IP, Gateway, Netmask and DNS vallues when i connect to wifi.
But only my HTC phone is getting the log-in screen, also it can ping to the hotspot ip.

My laptops are not getting a page and won’t ping to the hotspot ip.

Hope someone knows what this could be?

Regards,

Ferry

Try to go to:

Http://ip-of-hotspot/login


It works? If not, something misconfigured and the htc has something in cache..

Also, is the home page of the PCs you are testing with HTTPS? If so try going to a HTTP web site. The hotspot cannot redirect HTTPS and display an HTTP web site.

On my laptops i get a redirection to http://hotspot/login
Only my browser says no page found.

I tried another HTC phone wich is never used on this network and it also works perfectly.

Could it be there is something wrong with the html on the hotspot side?
(also tried to reset the html)

What is the domain name that you have set up in your hotspot profile? I think that needs a full domain name (hotspot.com) or something like that. The domain itself doesn’t really need to exist anywhere else but on the router.

Please, copy paste the:

/ip hotspot export
/ip pool export
/ip dhcp-server export
/ip route export

Or better / export ; )



[admin@MikroTik] > /ip hotspot export
# may/12/2011 18:21:49 by RouterOS 5.2
# software id = 9F93-NENG
#
/ip hotspot profile
set default dns-name="" hotspot-address=0.0.0.0 html-directory=hotspot \
    http-cookie-lifetime=3d http-proxy=0.0.0.0:0 login-by=cookie,http-chap \
    name=default rate-limit="" smtp-server=0.0.0.0 split-user-domain=no \
    use-radius=no
/ip hotspot user profile
set default idle-timeout=none keepalive-timeout=2m name=default shared-users=1 \
    status-autorefresh=1m transparent-proxy=no
/ip hotspot profile
add dns-name=hotspot hotspot-address=10.5.50.1 html-directory=hotspot \
    http-cookie-lifetime=3d http-proxy=0.0.0.0:0 login-by=\
    cookie,http-chap,trial name=hsprof1 rate-limit="" smtp-server=0.0.0.0 \
    split-user-domain=no trial-uptime=5m/1d trial-user-profile=default \
    use-radius=no
/ip hotspot
add address-pool=hs-pool-6 addresses-per-mac=2 disabled=no idle-timeout=5m \
    interface=bridgeHS keepalive-timeout=none name=hotspot1 profile=hsprof1
/ip hotspot ip-binding
add address=10.5.50.249 disabled=no mac-address=00:16:44:74:24:0D server=\
    hotspot1 to-address=10.5.50.249
/ip hotspot service-port
set ftp disabled=no ports=21
/ip hotspot user
add disabled=no name=admin password=******* profile=default
add disabled=no limit-uptime=5m name=test password=test profile=default
[admin@MikroTik] >



[admin@MikroTik] > /ip pool export
# may/12/2011 18:22:53 by RouterOS 5.2
# software id = 9F93-NENG
#
/ip pool
add name=hs-pool-6 ranges=10.5.50.2-10.5.50.254
[admin@MikroTik] >



[admin@MikroTik] > /ip dhcp-server export                                 
# may/12/2011 18:24:12 by RouterOS 5.2
# software id = 9F93-NENG
#
/ip dhcp-server
add address-pool=hs-pool-6 authoritative=after-2sec-delay bootp-support=st
    disabled=no interface=bridgeHS lease-time=1h name=dhcp1
/ip dhcp-server config
set store-leases-disk=5m
/ip dhcp-server network
add address=10.5.50.0/24 comment="hotspot network" gateway=10.5.50.1
[admin@MikroTik] >>



[admin@MikroTik] >> /ip  route export 
# may/12/2011 18:25:07 by RouterOS 5.2
# software id = 9F93-NENG
#
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=10.0.0.138 scope=30 \
    target-scope=10
[admin@MikroTik] >>

Hope this is enough, if not i will do a total export.
To be sure, my gateway and dns is 10.0.0.138 (adsl modem)

Regards,

Ferry

Well it is working on my phones browser, so i don’t think that is an issue here (name = hotspot)

Hi I have found with the hotspot system that if the DNS are not set up correctly, no splash page will show. If you remove the hotspot domain name in the config and leave it blank the hotspot will use the IP of the unit instead and then the system will work correctly. Hope this helps

You are a life saver :slight_smile:
It did the trick, anyhow… is there a sollution for getting dns working correctly?

Thanks!

Ferry

Just make sure that the user behind the Hotspot can correctly resolve the DNS name you are serving to the IP address of the router. If you’re using the router as a DNS server, you can make up any entry you’d like and add it as a static mapping to the router internal DNS server (a dynamic one should actually get created for you). If you’re using external DNS servers you’ll have to use a real domain name you control and have it resolve to the IP on the interface the Hotspot users face, just like you’d set up any other DNS record.

One more question…

How can i hide my adsl modem ip?

If i login to the hotspot and enter 10.0.0.138 i can access my modems admin page.

tnx,

Ferry

Make a firewall filter rule that only allows access to that IP from allowed management stations. To permit only 10.1.0.20 and 10.1.0.30 to access 10.0.0.138:

/ip firewall address-list
add list=admin-ips address=10.1.0.20
add list=admin-ips address=10.1.0.30
/ip firewall filter
add chain=forward src-address=10.0.0.138 dst-address-list=admin-ips action=accept
add chain=forward src-address=10.0.0.138 action=drop
add chain=forward dst-address=10.0.0.138 src-address-list=admin-ips action=accept
add chain=forward dst-address=10.0.0.138 action=drop

Alternatively stateful:

/ip firewall address-list
add list=admin-ips address=10.1.0.20
add list=admin-ips address=10.1.0.30
/ip firewall filter
add chain=forward connection-state=established action=accept
add chain=forward dst-address=10.0.0.138 src-address-list=admin-ips action=accept
add chain=forward dst-address=10.0.0.138 action=drop

How exactly to do this depends on your existing firewall rule set.