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

    Captive portal user total traffic

    Scheduled Pinned Locked Moved Captive Portal
    2 Posts 1 Posters 1.9k 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.
    • Q
      qbik
      last edited by

      Hi,
      I am trying to get PF to recognize Chillispot-Max-Total-Octets attribute. I know it already recognizes:

      
      if ($vendor == 14559) { /* RADIUS_VENDOR_ChilliSpot */
      			switch ($attrv) {
      			case 4: /* ChilliSpot-Bandwidth-Max-Up */
      				$this->attributes['bw_up'] = radius_cvt_int($datav);
      				break;
      			case 5: /* ChilliSpot-Bandwidth-Max-Down */
      				$this->attributes['bw_down'] = radius_cvt_int($datav);
      				break;
      
      			}
      		}
      
      

      So I was wondering where to add the attribute to the dictionary so I can add:

      
      case 3: /* Chillispot-Max-Total-Octets */
      				$this->attributes['bw_max'] = radius_cvt_int($datav);
      				break;
      
      

      I know there is this going: http://redmine.pfsense.org/issues/1932 however noaction has been taken. So I was wondering if someone can point me to the files where the dictionary is being loded:

      
      $attribv = radius_get_vendor_attr($data);
      
      

      So I can add the attribute and once tested share it here.

      Thanks

      1 Reply Last reply Reply Quote 0
      • Q
        qbik
        last edited by

        While looking at the code I see that PF uses the PEAR radius library to respond to talk to the radius server. While some attributes have been ported to this library, we need to port ChilliSpot-Max-Total-Octets, can this be configured or does the captive portal module would need major modifications?

        Thanks

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.