how to use hotspot login by mac

/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
set default dns-name=“” hotspot-address=0.0.0.0 html-directory=hotspot
http-proxy=0.0.0.0:0 > login-by=mac> ,http-chap,
name=default rate-limit=“” smtp-server=0.0.0.0 split-user-domain=no
trial-uptime=1d/1d trial-user-profile=self use-radius=no
/ip hotspot
add address-pool=pol21 disabled=no idle-timeout=none interface=lan21
keepalive-timeout=none name=lan21 profile=default
/ip hotspot user
add comment=“” disabled=no > mac-address=00:30:48:FD:F5:C9 name=
00:30:48:FD:F5:C9 > password=“” profile=self server=lan21

i add my computer mac address for username,but it always shows the HotSpot login page?

the Documentation says:"mac - try to use client’s MAC address first as its username. If the matching MAC address exists in the local user database or on the RADIUS server, the client will be authenticated without asking to fill the login form "

up up
i know it old but

can any one answer??? :smiley:

I tried it a while ago and it worked. I don’t use it. What user database are you using (local or RADIUS)?

I use FreeRADIUS for authentication, and it does not like a blank password, so I had to enter a mac-auth-password in the hotspot profile.

yes i have enable RADIUS

in user profile
username == mac , pass == blank and mac == mac

when that user connect to wifi it will show in active user :confused: :confused: :confused:
but it still ask to login i don’t know y ???

is it wrong to use login by mac and HTTP CHAP in the same server profile ???

i want some users to login automatically

(i’m as the exact same situation as original post)
regards

Enable RADIUS logging and try another login by mac. Then check the log.

/system logging
add topics=radius,debug action=memory

If you have any questions, post the relevant section of the log.

Add: Actually, I used the login page until I got the bugs out. I entered the mac and the password in the login page until it was accepted, then changed the hotspot profile mac settings to match.

Part of the problem with my system is my user entry in the RADIUS database does not like colons, so I had to change the mac format to all hex numbers with no colons.

ok thanks

i did know what the problem was on user profile there where an option “open status page” it was set to “always” i change it to “HTTP Login”

thanks

one last thing

if one of my users if behind a repeater (( mikrotik—AP repeater----users)) mikrotik will show the repeater mac not the user is there any solution for this (an it is the same when i use bridge and AP) (( mikrotik----bridge-----bridge----ap—user))

regards

I don’t use repeaters behind hotspots, so I can’t help you there.

ok thank you :smiley:

is it possibile that every user that connects to the newtork, get a ip from the local dhcp and automatically is enable to login in the network withouth any status page, and his MAC create automatically a queue?

Hey, what do you mean by automatically create a queue?