Code: Select all
/ip hotspot
:foreach item in=[host find] do={
:local mac [host get $item mac-address]
:local svr [host get $item server]
ip-binding
:if ([:len [find where mac-address=$mac and server=$svr]] = 0) do={
add mac-address=$mac server=$svr type=blocked disabled=yes
}
}
and disables the mac address 11:22:33:00:aa:bb, I need that same mac address, when I provide the hotspot username and password to the client and he enters them in the captive portal, that mac address remains enabled. Thanks for your valuable help.
EL DONCITO.