• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Captive Portal with Radius authentication memory size error during log in

Scheduled Pinned Locked Moved Captive Portal
4 Posts 3 Posters 2.0k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    jultra
    last edited by Jul 12, 2014, 1:04 PM

    Hi,

    I tried to enable the Captive Portal on my pfSense machine with Radius based authentication. The Radius server is on zeroshell machine and runs on a different local subnet.

    Anyway, every time I try to log in and see if the setup works, I get an error message that says something like

    Didn't get a proper response…

    . Then every second time I try to log in, the following error occurs:

    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 4294967295 bytes) in /etc/inc/radius.inc on line 446

    The same error occurs on subsequent tries. Until I connect to a different network, disconnect, connect to pfSense Lan once again and repeat the whole process. The same thing happens. I read this thread https://forum.pfsense.org/index.php?topic=79139.msg431558#msg431558 discussing a somewhat similar problem but the "solution" given there did not solve the issue.

    Any idea what might be causing this? Thanks!

    1 Reply Last reply Reply Quote 0
    • G
      Gertjan
      last edited by Jul 14, 2014, 6:51 AM

      Hello,

      This:
      @jultra:

      Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 4294967295 bytes) in /etc/inc/radius.inc on line 446

      Here -  in /etc/inc/radius.inc on line 446:

              while ($attrib = radius_get_attr($this->res)) {
      

      The PHP function radius_get_attr($this->res) 'explodes' when parsing the result send back by the Radius server.
      This is a original PHP function.

      What pfSEnse version are you using ?
      Can you use the same Radius software as in the other thread ?

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      1 Reply Last reply Reply Quote 0
      • J
        jultra
        last edited by Jul 22, 2014, 7:36 AM

        Hi Gertjan,

        The first error I mentioned was caused by a misconfiguration of the client's authorization (NAS) within the freeradius server that I was using. After I realized my mistake and fixed it, the setup worked as expected and I did not encounter the same problem again.

        Anyway, the freeradius server I was using is the one included on zeroshell 2.0.RC.

        Cheers,

        John

        1 Reply Last reply Reply Quote 0
        • K
          kapara
          last edited by Oct 1, 2014, 10:27 PM

          What was the configuration issue?  Can you post the resolution?  I am also having a problem with 2.1.5

          Skype ID:  Marinhd

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received