OPNsense Forum

Archive => 16.1 Legacy Series => Topic started by: lukepower on April 13, 2016, 07:25:09 pm

Title: [Solved] Captive Portal: MAC addresses not saved
Post by: lukepower on April 13, 2016, 07:25:09 pm
Hi there,

while experimenting with the captive portal, I noticed that I am unable to set any MAC address (like "b0:df:3a:0b:e6:be") under "Allowed MAC addresses".
I can edit the field, but once I hit "Save" it is not saved (and of course not applied). Am I doing something wrong here?

OPNsense 16.1.9-amd64   
FreeBSD 10.2-RELEASE-p14   
OpenSSL 1.0.2g 1 Mar 2016

Thanks
Lukas
Title: Re: Captive Portal: MAC addresses not saved
Post by: franco on April 14, 2016, 10:18:00 am
Hi Lukas,

Did you hit enter after inputting the MAC? It will then render as an grey box with a little "x", otherwise it won't save.


Cheers,
Franco
Title: Re: Captive Portal: MAC addresses not saved
Post by: lukepower on April 14, 2016, 10:35:00 am
Oh god, right, now it works :)
But when entering more than one address, I get the error "Please enter valid mac addresses". (see screenshot)

So one address works fine, when I try to add a second it doesn't ...
Title: Re: Captive Portal: MAC addresses not saved
Post by: franco on April 14, 2016, 10:47:39 am
Seems to work here, not sure why it won't over there. I used:

30:d6:c9:d2:d5:e4
08:ee:8b:a6:c7:3f

(You can also drag and drop)
Title: Re: Captive Portal: MAC addresses not saved
Post by: lukepower on April 14, 2016, 11:05:44 am
Ok found out the problem.
Basically I copy/pasted the MAC address with a space at the end, which obviously was interpreted as a non-MAC character. Probabily it would be nice to get it trimmed before testing, but hey, my fault  ;)

Thanks again
Lukas
Title: Re: [Solved] Captive Portal: MAC addresses not saved
Post by: franco on April 14, 2016, 01:15:34 pm
Hi Lukas,

I'm not sure if we can fix that, if we can we will do that. Thanks for the report. :)


Cheers,
Franco