Community discussions

MikroTik App
 
soleed
newbie
Topic Author
Posts: 48
Joined: Sun Apr 30, 2006 1:02 am

HotSpot Redirect Problem

Tue Nov 28, 2006 9:59 pm

hi ,
i did setup a hotspot by wizard but when i try to open the explorer from the clients pc i did not redirected to the hotspot login page automaticlly enless i put the hotspot ip in the explorer


any help please ,
 
User avatar
nickb
Member
Member
Posts: 406
Joined: Thu Jan 26, 2006 6:24 pm
Location: Southeast Kansas
Contact:

Wed Nov 29, 2006 2:23 am

I was tinkering with a hotspot idea today, and had a simmilar issue. I haven't done enough testing to tell if it's a bug though. I would think that if it was a bug, it would have been noticed by now though.

I'm going to tinker with it some more tomorrow though and see what I can figure out.
 
hotspotsolutions
Member Candidate
Member Candidate
Posts: 119
Joined: Thu Dec 16, 2004 1:48 pm

Wed Nov 29, 2006 8:56 am

Thats not a bug, normally this happens when you dont have the internet connected, it wont redirect you unless your router has a working internet connection that is accessible from the hotspot side of the network.
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Wed Nov 29, 2006 9:48 am

Or - that's enough to screw things up - DNS isn't working/configured correctly.
As long as the clients cannot do a correct name resolution, the browser won't send out a HTTP request - and that's the point where HotSpot kicks in, as it intercepts this HTTP request from unauthorized users to display the login page.

So either having faulty dns service OR no internet connection at all will show these symptoms you see.

Best regards,
Christian Meis
 
soleed
newbie
Topic Author
Posts: 48
Joined: Sun Apr 30, 2006 1:02 am

Wed Nov 29, 2006 7:42 pm

Or - that's enough to screw things up - DNS isn't working/configured correctly.
As long as the clients cannot do a correct name resolution, the browser won't send out a HTTP request - and that's the point where HotSpot kicks in, as it intercepts this HTTP request from unauthorized users to display the login page.

So either having faulty dns service OR no internet connection at all will show these symptoms you see.

Best regards,
Christian Meis

Please send me a good dns Configuration so i can try ,
if i disable the hotspot and connect to the internet thru the webproxy that i did configure


best regards
 
User avatar
nickb
Member
Member
Posts: 406
Joined: Thu Jan 26, 2006 6:24 pm
Location: Southeast Kansas
Contact:

Wed Nov 29, 2006 8:00 pm

Ah, the unit i was messing with didn't have a default gateway to the internet, I was just tinkering with some things.

However, this brings about a problem for what I was trying to do. My intent is to have a hotspot on my AP not to allow internet access, but so that when users can't (or forget/don't) log in, they will get a web page that says "Oops! You either forgot to log in, or there's a problem. Please try to log in, or wait until we've repaired service." I would not allow internet service through the hotspot, only informational pages.

So, this presents a problem, because the conditions you have mentioned for hotspot not working are the very conditions in which I would like it to work :)
 
soleed
newbie
Topic Author
Posts: 48
Joined: Sun Apr 30, 2006 1:02 am

Wed Nov 29, 2006 8:30 pm

Thats not a bug, normally this happens when you dont have the internet connected, it wont redirect you unless your router has a working internet connection that is accessible from the hotspot side of the network.
Sir ,

can i have the full configuration code of the hotspot and related issues so i can try .
 
User avatar
balimore
Forum Veteran
Forum Veteran
Posts: 884
Joined: Mon Apr 10, 2006 3:38 am

Thu Nov 30, 2006 4:18 am

Thats not a bug, normally this happens when you dont have the internet connected, it wont redirect you unless your router has a working internet connection that is accessible from the hotspot side of the network.
Sir ,

can i have the full configuration code of the hotspot and related issues so i can try .
----
Hello Friend
This our hotspot config, with userman as AAA radius server and login page authenthication first:
[xxx@xxx] > /ip hot user pro prin                                
Flags: * - default 
 0 * name="default" idle-timeout=none keepalive-timeout=1m30s 
     status-autorefresh=1m30s shared-users=1 transparent-proxy=yes 
     open-status-page=http-login advertise=no 

[xxx@xxx] > /ip hot prof prin det                                
Flags: * - default 
 0 * name="UM2" hotspot-address=xx.xx.2x.x dns-name="hotspot.um2link.net" 
     html-directory=hotspot rate-limit="0/0" http-proxy=0.0.0.0:0 
     smtp-server=xxx.xxx.xx.2x login-by=http-chap,https,http-pap 
     ssl-certificate=none split-user-domain=no use-radius=yes 
     radius-accounting=yes radius-interim-update=2m30s nas-port-type=ethernet 
     radius-default-domain="radhot" radius-location-id="" 
     radius-location-name="" 
[xxx@xxx] >
note: login page will come, when user need your internet gateway, and i am so sorry the sensitive case i changed by 'x'

regards
Hasbullah.com
----
 
CREATIVELINK
newbie
Posts: 31
Joined: Thu Nov 30, 2006 1:32 pm

Thu Nov 30, 2006 1:48 pm

Good morning ,

i have this follows configuration :
DNS
[admin@HOT SPOT] ip dns> print
            primary-dns: 192.168.0.200
          secondary-dns: 0.0.0.0
  allow-remote-requests: no
             cache-size: 2048KiB
          cache-max-ttl: 1w
             cache-used: 19KiB

DHCP
[admin@HOT SPOT] ip dhcp-server> print
Flags: X - disabled, I - invalid 
 #   NAME             INTERFACE RELAY           ADDRESS-POOL LEASE-TIME ADD-ARP
 0   dhcp1            hot                       hs-pool-1    1h        
[admin@HOT SPOT] ip dhcp-server> 


Web Proxy
[admin@HOT SPOT] ip web-proxy> print
                 enabled: yes
             src-address: 0.0.0.0
                    port: 8080
                hostname: "proxy"
       transparent-proxy: yes
            parent-proxy: 192.168.0.250:5297
     cache-administrator: "webmaster"
         max-object-size: 4096KiB
             cache-drive: system
          max-cache-size: unlimited
      max-ram-cache-size: unlimited
                  status: running
      reserved-for-cache: 13447168KiB
  reserved-for-ram-cache: 2048KiB
[admin@HOT SPOT] ip web-proxy> 
HotSpot
[admin@HOT SPOT] ip hotspot> print
Flags: X - disabled, I - invalid, S - HTTPS 
 #   NAME                           INTERFACE ADDRESS-POOL PROFILE IDLE-TIMEOUT
 0 X hs-ether1                      hot       hs-pool-1    hsprof1 5m          
[admin@HOT SPOT] ip hotspot> pro
[admin@HOT SPOT] ip hotspot profile> pri
Flags: * - default 
 0 * name="default"

 1   name="hsprof1" hotspot-address=10.10.10.1 dns-name="hotspot.creativelink.net" 
     html-directory=hotspot rate-limit="" http-proxy=10.10.10.1:8080 
     smtp-server=192.168.0.250 login-by=http-chap,http-pap 
     split-user-domain=no use-radius=no 
[admin@HOT SPOT] ip hotspot profile> 

and This users Profile
[admin@HOT SPOT] ip hotspot user profile> pr
Flags: * - default 
 0 * name="default" idle-timeout=none keepalive-timeout=2m 
     status-autorefresh=1m shared-users=1 transparent-proxy=yes 
     open-status-page=http-login advertise=no 
[admin@HOT SPOT] ip hotspot user profile> 


The Problem :
when i open the explorer i should have the login page but ...... Nothing appear ,

i try put the webproxy IP and port ,
i open th explorer and every thing seems working login ,
but no internet connection ,

another try i disable the hotspot and open the explorer and every think work internet in working ,


please advice me what did i do wrong ,
and do i have to put the webproxy ip and port in explorer for all my hot spot clients ??