OPNsense Forum

Archive => 19.1 Legacy Series => Topic started by: miclan on May 02, 2019, 05:38:49 pm

Title: Captive Portal: Allowed addresses/MACs has no effect
Post by: miclan on May 02, 2019, 05:38:49 pm
I need to allow some MAC addresses to access internet connection without authentication on captive portal.
I allowed this MAC addresses on captive portal configuration and I can see these MAC addresses on session logs, but they can't access internet connection because captive portal is shown and they can't bypass authentication.

Looking at logs I can only see this error:

Quote
configd.py: [889b1245-acd0-4e33-8062-c62cf18f1537] Script action failed with Command '/usr/local/opnsense/scripts/OPNsense/CaptivePortal/listClients.py /zoneid '0' /output_type 'json'' returned non-zero exit status 1 at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/processhandler.py", line 481, in execute stdout=output_stream, stderr=error_stream) File "/usr/local/lib/python2.7/subprocess.py", line 190, in check_call raise CalledProcessError(retcode, cmd) CalledProcessError: Command '/usr/local/opnsense/scripts/OPNsense/CaptivePortal/listClients.py /zoneid '0' /output_type 'json'' returned non-zero exit status 1

Can this be the problem?
Title: Re: Captive Portal: Allowed addresses/MACs has no effect
Post by: franco on May 03, 2019, 10:22:40 am
Does the issue still exist for 19.1.7 ? We did have a fix for listClients().


Cheers,
Franco
Title: Re: Captive Portal: Allowed addresses/MACs has no effect
Post by: miclan on May 03, 2019, 05:39:07 pm
I solved this problem following this post https://forum.opnsense.org/index.php?topic=9246.0

After that client list works perfectly without errors and allowed addresses/MACs can connect without captive portal.

This solution fixed also a very annoying problem of sessions lost after reboot (Franco did you remember  my old post https://forum.opnsense.org/index.php?topic=5907.msg24565#msg24565 ? Today finally was fixed!


Title: Re: Captive Portal: Allowed addresses/MACs has no effect
Post by: franco on May 03, 2019, 07:30:09 pm
Oh ok, that means the database had a faulty value in it :/