Hi everyone,
I’m trying to implement 802.1X authentication on MikroTik devices for wired connections, but I’ve run into a problem.
When using 802.1X authentication with a Microsoft NPS RADIUS server, I noticed that once a single device successfully authenticates on a port, all other devices connected to that port also gain access to the network — even if they haven’t authenticated. In our environment, we often have multiple end-user devices connected to a single MikroTik port through unmanaged switches (e.g., TP-Link), which poses a security risk. An unauthorized person could simply connect to one of these unmanaged switches and gain network access.
I’ve tried using dynamic switching filter rules, specifically:
Mikrotik-Switching-Filter = “action allow, src-mac-address none action drop”
However, this approach allows only the first device to connect, while all other devices behind the same port are blocked — which doesn’t work for us either, since we have multiple users per port.
Is there any way to enforce per-device 802.1X authentication on MikroTik even when multiple devices are connected through an unmanaged switch? Is such a feature already possible, or maybe planned for future development?
Additionally, I’d like to implement dynamic VLAN assignment based on the authenticated user. While dynamic rules from the RADIUS server are working to some extent, I’m still unable to authenticate multiple users on a single port — which is key for our setup.
Do you have any suggestions or recommended solutions for this use case?
Network topology:
We currently use the following switch setup:
10x MikroTik CRS326-24G-2S+RM — access switches
1x MikroTik CRS317-1G-16S+RM — core switch, uplinked to all CRS326 units
Thanks in advance for your help!