How to bind HotSpot usernames with their IP addresses?
Description
If dhcp-pool login method is used, it is possible to specify, what address a
user will get after he/she logs in using address property in /ip
hotspot user submenu. With enabled-address login method this property is
ignored, so there is no direct method of doing this.
But it is possible to bind HotSpot usernames with both IP and MAC addresses.
To do this, the arp mode of the interface clients are connected to should
be switched to reply-only. In order not to disconnect all the clients,
you should first convert all the dynamic entries in /ip arp table to
static ones using the following command: :foreach i in=[/ip arp find dynamic=yes ] do={/ip arp add copy-from=$i}
Now only the clients who have their IP and MAC addresses added to the /ip
arp table manually will be able to use Internet. You can add HotSpot users
specifying their MAC addresses, and they will not be able to connect from
different IP addresses except those added to the ARP table. |