Create a new AP Access Rule with regular expressions

Good morning.

I am currently attempting to manage the AP Access Rules in a certain MikroTik device. I would like to create a new AP Access Rule that applies to multiple MAC addresses. The idea, therefore, is to include regex in the field “Mac address”, but it does not seem to work. On the other hand, I can’t enter manually the MAC addresses of the devices that I am trying to block because they change dynamically. Hence, I was wondering if it is possible to use regex in the creation of a new AP rule so that said rule applies to multiple MAC addresses.

Would this be possible? The section in question is located in tab named “Wireless” (which it’s localted in the section “Wireless” of the main menu)


Thanks for your attention.

regex… for what?

Use bridge ip firewall rules

Block all f–king private bit:

/interface bridge filter
add action=drop chain=input log=yes log-prefix="IN-DROP Private MAC" src-mac-address=02:00:00:00:00:00/02:00:00:00:00:00
add action=drop chain=forward log=yes log-prefix="FW-DROP Private MAC" src-mac-address=02:00:00:00:00:00/02:00:00:00:00:00

You can use the pattern to match any vendor, for example if you want block the interval 00-03-93-00-00-00 - 00-03-93-FF-FF-FF the rules are those:

/interface bridge filter
add action=drop chain=input log=yes log-prefix="IN-DROP 00-03-93" src-mac-address=00:03:93:00:00:00/FF:FF:FF:00:00:00
add action=drop chain=forward log=yes log-prefix="FW-DROP 00-03-93" src-mac-address=00:03:93:00:00:00/FF:FF:FF:00:00:00

Hi again.

That solved the issue. Thank you both very much for your help and for your time.

Best regards.