Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Dynamic VLAN assignment via MAC Address
« previous
next »
Print
Pages: [
1
]
Author
Topic: Dynamic VLAN assignment via MAC Address (Read 2261 times)
stif
Newbie
Posts: 15
Karma: 3
Dynamic VLAN assignment via MAC Address
«
on:
September 24, 2023, 01:00:31 pm »
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,
«
Last Edit: September 24, 2023, 01:50:23 pm by stif
»
Logged
Maurice
Hero Member
Posts: 1213
Karma: 158
Re: Dynamic VLAN assignment via MAC Address
«
Reply #1 on:
September 24, 2023, 02:20:25 pm »
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
Logged
OPNsense virtual machine images
OPNsense aarch64 firmware repository
Commercial support & engineering available. PM for details (en / de).
mimugmail
Hero Member
Posts: 6767
Karma: 494
Re: Dynamic VLAN assignment via MAC Address
«
Reply #2 on:
September 24, 2023, 05:45:57 pm »
Just dont use : in both
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
stif
Newbie
Posts: 15
Karma: 3
Re: Dynamic VLAN assignment via MAC Address
«
Reply #3 on:
September 27, 2023, 02:14:05 am »
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!
Logged
mimugmail
Hero Member
Posts: 6767
Karma: 494
Re: Dynamic VLAN assignment via MAC Address
«
Reply #4 on:
September 27, 2023, 12:18:07 pm »
Yes!
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Dynamic VLAN assignment via MAC Address