Force hotspot re-read users table.

Hi everyone. I am using hotspot with mac authentication.

I noticed that after inserting new record user gives access not instantly, need to wait about 3 mins when mac address will be allowed to the net.

When I do hotspot disable/enable it forces re-reading table but it makes additional problems.


$api->comm('/ip/hotspot/user/add', ['name' => $mac, 'limit-uptime' => $minutes * 60]);
$api->comm('/ip/hotspot/disable', ['numbers' => 0]);
$api->comm('/ip/hotspot/enable', ['numbers' => 0]);

So do anyone knows how to disable this caching without disabling/enabling hotspot?

Thanks in advance.

Looks like a RouterOS bug, possibly related to some (too aggressive) ARP caching.

I’d suggest you write to support about it.

In stead of disable/enable on the entire hotspot, try just removing the client entry from the Hosts table.
MAC authentication happens whenever a new host is discovered, so removing a host will force the hotspot to authenticate the host again as soon as it receives another frame.

Thank you very much! Removing host helped!