Project

General

Profile

Actions

Regression #13418

open

Captive Portal does not keep track of client data usage

Added by Dale Harron about 1 month ago. Updated 6 days ago.

Status:
Feedback
Priority:
Normal
Assignee:
Category:
Captive Portal
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
22.11
Release Notes:
Default
Affected Version:
Affected Architecture:
All

Description

Setup:
  • pfSense+ 22.05
  • Configure Captive Portal on VLAN interface
  • Use FreeRADIUS auth backend
  • Check Reauthenticate Users, Session timeout, Traffic quota, Per-user bandwidth restrictions
  • Enable Send RADIUS accounting packets, select Stop/Start (FreeRADIUS) or Interim
Broken:
  • used-octects remain at 0 bytes or at pre-upgrade value in /var/log/radacct/datacounter/forever, and 0 bytes incremented on quota in authentication log every minute
  • FreeRadius log updates "connect time" correctly but all data values are 0.
Tested:
  • Working on 22.01 with patch 12834
  • Broken on 22.05
  • Broken on 2.7
Actions #2

Updated by Gertjan KROEB about 1 month ago

I've posted the same (?) conclusion in the forum : FreeRadius and quotas, doesn't work since 22.05

Actions #3

Updated by Dale Harron 29 days ago

I would also like to point out that this issue is not solely related to FreeRadius Accounting Packets but also affects all VLan based Captive Portals that have Traffic Quotas. Services, Captive Portal, click on VLan Portal,

Traffic quota (Megabytes)
100 (for example)
Clients will be disconnected after exceeding this amount of traffic, inclusive of both downloads and uploads. They may log in again immediately, though. Leave this field blank for no traffic quota.

This quota also stays at Zero and is not enforced. Bandwidth and time related constraints are still working though.

Actions #4

Updated by Marcos M 29 days ago

Please test the attached patch with the System Patches package on pfSense+ 22.05.

Actions #5

Updated by Marcos M 29 days ago

  • Subject changed from FreeRadius Accounting zeros data or fails to collect data in 22.05, worked in 22.02 to Captive Portal does not keep track of client data usage
  • Description updated (diff)
  • Status changed from New to Confirmed
  • Assignee set to Marcos M
  • Priority changed from Urgent to Normal
  • Target version set to 2.7.0
  • Plus Target Version set to 22.11

Updating issue for clarification.

Actions #6

Updated by Marcos M 29 days ago

  • File 13418.patch added
  • Status changed from Confirmed to Pull Request Review

Tested patch on 22.05 and reported issues are resolved.
https://gitlab.netgate.com/pfSense/pfSense/-/merge_requests/850

Actions #7

Updated by Marcos M 29 days ago

  • Description updated (diff)
Actions #8

Updated by Jim Pingle 28 days ago

  • Status changed from Pull Request Review to Feedback

Merged

Actions #9

Updated by Marcos M 26 days ago

  • Status changed from Feedback to Pull Request Review
Actions #10

Updated by Jim Pingle 26 days ago

  • Status changed from Pull Request Review to Feedback

Merged

Actions #11

Updated by Marcos M 26 days ago

  • Status changed from Feedback to Pull Request Review
Actions #12

Updated by Marcos M 7 days ago

  • Status changed from Pull Request Review to Feedback
Actions #13

Updated by Marcos M 7 days ago

  • File deleted (13418.patch)
Actions #14

Updated by Marcos M 6 days ago

  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF