Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15394

Beginner Basics • Re: login associating MAC with user by time

$
0
0
I will leave the solution that worked for me for now. If anyone else has another please share it.

1. First, you need to obtain the MAC address of the user's device. You can do this using the
Code:
 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
Code:
 interface wireless access-list add 
command. Here is an example of what this command would look like:
Code:
 /interface wireless access-listadd 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.

3. Finally, you need to ensure that the “MAC Filtering” functionality is enabled on your wireless interface. You can do it with the following command:
Code:
 /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.

Statistics: Posted by jose300792 — Sun Feb 11, 2024 4:45 am



Viewing all articles
Browse latest Browse all 15394

Trending Articles