OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • Captive Portal: Allowed addresses/MACs has no effect
« previous next »
  • Print
Pages: [1]

Author Topic: Captive Portal: Allowed addresses/MACs has no effect  (Read 1749 times)

miclan

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
    • View Profile
Captive Portal: Allowed addresses/MACs has no effect
« 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?
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13957
  • Karma: 1210
    • View Profile
Re: Captive Portal: Allowed addresses/MACs has no effect
« Reply #1 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
Logged

miclan

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
    • View Profile
Re: Captive Portal: Allowed addresses/MACs has no effect
« Reply #2 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!


Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13957
  • Karma: 1210
    • View Profile
Re: Captive Portal: Allowed addresses/MACs has no effect
« Reply #3 on: May 03, 2019, 07:30:09 pm »
Oh ok, that means the database had a faulty value in it :/
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • Captive Portal: Allowed addresses/MACs has no effect
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2