Captive Portal - Freeradius - Acct-Session-Time
-
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 = 1313518843Tue 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 = 1313518843Next "Stop" request: Acct-Session-Time = 117
So counter = 171 (54+117) while it shut be 117.How can I solve this?
Regards,
José Luis -
Do you have any reference that it should work like that?
-
I didn't find it…. but if there is a Stop request and then a Start request, why session time not restart counting?
-
Check out this https://redmine.pfsense.org/issues/2164.