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

Captive Portal - Freeradius - Acct-Session-Time

Scheduled Pinned Locked Moved Captive Portal
4 Posts 2 Posters 4.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.
  • J
    josefe
    last edited by Aug 16, 2011, 7:04 PM

    Hello.
    I'm using pfsense 1.2.3 and freeradius 1.1.7 (pfsense package).
    Captive portal users are in freeradius with daily timeout setting. (Max-Daily-Session := 3600)
    In Captive Portal configuration I set: "Accounting updates" -> stop/start accounting
    So every minute each user is chequed and increased their counters (Daily, Weekly, Monthly)
    My problem: After Stop request, the session time continue counting. Why session time does not reset to 0? This issue makes the counter increase a lot, and the user's time ends earlier.
    First minute, counter = 60, second minute, counter = 180 (60+120), then counter = 360 (60+120+180), …...
    Freeradius log:
    Tue Aug 15 18:20:43 2011
            NAS-IP-Address = x.x.x.x
            NAS-Identifier = "xxx.com"
            User-Name = "test"
            Acct-Status-Type = Stop
            Acct-Session-Time = 54
            Acct-Authentic = RADIUS
            Service-Type = Login-User
            NAS-Port-Type = Ethernet
            NAS-Port = 0
            Acct-Session-Id = "9f28ca9e77725735"
            Framed-IP-Address = y.y.y.y
            Called-Station-Id = "00:19:e0:z:z:z"
            Calling-Station-Id = "08:00:27:z:z:z"
            Acct-Input-Packets = 229
            Acct-Input-Octets = 22811
            Acct-Input-Gigawords = 0
            Acct-Output-Packets = 341
            Acct-Output-Octets = 393814
            Acct-Output-Gigawords = 0
            Acct-Session-Time = 54
            Acct-Terminate-Cause = NAS-Request
            Client-IP-Address = x.x.x.x
            Timestamp = 1313518843

    Tue Aug 15 18:20:43 2011
            NAS-IP-Address = x.x.x.x
            NAS-Identifier = "xxxx.com"
            User-Name = "test"
            Acct-Status-Type = Start
            Acct-Authentic = RADIUS
            Service-Type = Login-User
            NAS-Port-Type = Ethernet
            NAS-Port = 0
            Acct-Session-Id = "9f28ca9e77725735"
            Framed-IP-Address = x.x.x.x
            Called-Station-Id = "00:19:e0:z:z:z"
            Calling-Station-Id = "08:00:27:y:y:y"
            Client-IP-Address = x.x.x.x
            Timestamp = 1313518843

    Next "Stop" request: Acct-Session-Time = 117
    So counter = 171 (54+117) while it shut be 117.

    How can I solve this?
    Regards,
    José Luis

    1 Reply Last reply Reply Quote 0
    • E
      eri--
      last edited by Aug 17, 2011, 7:32 AM

      Do you have any reference that it should work like that?

      1 Reply Last reply Reply Quote 0
      • J
        josefe
        last edited by Aug 17, 2011, 12:11 PM

        I didn't find it…. but if there is a Stop request and then a Start request, why session time not restart counting?

        1 Reply Last reply Reply Quote 0
        • E
          eri--
          last edited by Feb 9, 2012, 1:45 PM

          Check out this https://redmine.pfsense.org/issues/2164.

          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