Hello community. Does anyone know how I can make a MAC remain associated with a user in a session for a set time? In my case, in the hotspot I create users with profiles named the same as the user. I would like that when a user logs in with their computer, the MAC is assigned to that user and does not allow them to log in from another computer that does not have that MAC. Thanks for the reply. Greetings.
I will leave the solution that worked for me for now. If anyone else has another please share it.
- First, you need to obtain the MAC address of the user’s device. You can do this using the
interface wireless registration-table print
command in the RouterOS terminal. This command will show you a list of all connected devices, along with their MAC addresses.
2. Once you have the MAC address, you can create a new MAC filtering rule using the
interface wireless access-list add
command. Here is an example of what this command would look like:
/interface wireless access-list
add mac-address=XX:XX:XX:XX:XX:XX interface=wlan1 authentication=yes forwarding=yes
In this command, you must replace XX:XX:XX:XX:XX:XX with the MAC address of the user’s device and wlan1 with the name of your wireless interface.
- Finally, you need to ensure that the “MAC Filtering” functionality is enabled on your wireless interface. You can do it with the following command:
/interface wireless set wlan1 default-authentication=no
This command will disable default authentication on your wireless interface, meaning that only devices with an allowed MAC filtering rule will be able to connect.