Ubiquiti Unifi Dynamic Wireless VLAN Assignment

If you have a USG, or USG-Pro, it is possible to use the built-in RADIUS server to dynamically assign a VLAN to wireless (or wired) clients based on the MAC id. While this works, it doesn’t have much flexibility and is difficult to maintain when the number of connecting devices goes up. This guide resolves that issue using freeRADIUS.