Page 1 of 1

automatic hotspot loggin via mac not working

Posted: Wed Aug 19, 2009 10:27 pm
by ctech4285
I set a mac address in the user accounts but they still get the loggin page, as far as i understand that is exactly what the documentation says to do?!?

ip
hotspot
profile
print
name="hsprof1" hotspot-address=10.5.50.1 dns-name=""
html-directory=hotspot1 rate-limit="" http-proxy=0.0.0.0:0
smtp-server=0.0.0.0 login-by=mac,cookie,http-chap,http-pap,trial
mac-auth-password="" http-cookie-lifetime=3d split-user-domain=no
trial-uptime=2h/1d trial-user-profile=wire32/32 use-radius=no

ip
hotspot
user
print detail
name="edwin" password="" mac-address=00:18:02:60:35:F3 profile=wire128/25>
uptime=4h6s bytes-in=8763553 bytes-out=97107940 packets-in=83670
packets-out=95516

Re: automatic hotspot loggin via mac not working

Posted: Wed Aug 19, 2009 10:39 pm
by fewi
I'm a little unclear on what you are trying to do - are you trying to automatically log in a user with the MAC address as the username and a predefined password (so that authentication happens, but is transparent for the user), or are you trying to make it so that a machine with that MAC address does not have to authenticate?

If the latter, you wouldn't configure a "/ip hotspot user" with a MAC address defined, as that would simply enforce that the username/password can only used from that source MAC address. Instead you would configure something like
/ip hotspot ip-binding mac-address=aa:bb:cc:dd:ee:ff type=bypassed
to bypass authentication for that MAC.

If the former, you'd want to edit the relevant hotspot HTML pages and cause a page refresh towards /login with the username populated via the $(mac-address) variable.

Felix

Re: automatic hotspot loggin via mac not working

Posted: Thu Aug 20, 2009 3:25 am
by ctech4285
ah i understand now thank you!!

i want it transparent for the user while using the user settings eg bandwidth limit
the login page still does not work quiet right so ill try to fix that first, it doest refresh and looks like it has something to do with dns the problem apeared after i upgrated to 3.28 and using openDNS

kind regards