OPNsense Forum

English Forums => General Discussion => Topic started by: maekar on October 08, 2018, 03:19:49 PM

Title: FreeRADIUS for MAC Filter
Post by: maekar on October 08, 2018, 03:19:49 PM
Hi, we use Unifi for our WiFi network and we want to implement a MAC Whitelist Filter. The problem is Unifi only allow a maximum of 512 addresses, and we have around 800, so we have to use an external solution through RADIUS.

Is possible to use OPNSense with FreeRADIUS for the MAC Whitelist Filter? I just installed it but I don't see the option. Sorry if is a stupid question, it's my first time with radius...
Title: Re: FreeRADIUS for MAC Filter
Post by: mimugmail on October 08, 2018, 04:47:29 PM
Can you try adding users where user and password are the Mac address?
Title: Re: FreeRADIUS for MAC Filter
Post by: maekar on October 09, 2018, 10:28:37 AM
Quote from: mimugmail on October 08, 2018, 04:47:29 PM
Can you try adding users where user and password are the Mac address?
That's it! I knew was a stupid question :)

And some way to import users from CSV or similar?
Title: Re: FreeRADIUS for MAC Filter
Post by: mimugmail on October 09, 2018, 10:50:02 AM
Write a short script and send it over API:
https://forum.opnsense.org/index.php?topic=6116.msg25681#msg25681