Dynamic VLAN assignment via MAC Address

Started by stif, September 24, 2023, 01:00:31 PM

Previous topic - Next topic
September 24, 2023, 01:00:31 PM Last Edit: September 24, 2023, 01:50:23 PM by stif
Hi folks,

I enabled the freeradius plugin and use WPA2 Enterprise to authenticate the WLAN users (this is already working).
With some Printers and IoT Devices i have no possibility to enter credentials, so i would like get them into the right vlan via MAC Address "authentication".

Accourding to https://forum.opnsense.org/index.php?topic=16282.msg74418#msg74418 i just need to create a User and Password with the MAC Adress of the Device.
The thing is: i get a "text validation error" when entering a MAC Adress as user/password..

Wow can i assign the right vlan to these printers and IoT devices?

Thanks,

Are these wireless devices and are they connected to a PSK WLAN? And you want your APs / WLC to assign them to specific VLANs based on their MAC address? Is this supported by your APs / WLC? This is highly vendor specific.

Cheers
Maurice
OPNsense virtual machine images
OPNsense aarch64 firmware repository

Commercial support & engineering available. PM for details (en / de).


thanks @maurice and @mimugmail!

i created a new SSID with "RADIUS MAC Authentication" in unifi controller and added a user+pass with the MAC Address of the IoT Device without the ":" in opnsense freeradius plugin

it works!  8)