Project

General

Profile

Feature #1932

Captive Portal add RADIUS attributes for traffic quotas

Added by Dim Hatz over 7 years ago. Updated 11 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Captive Portal
Target version:
-
Start date:
10/06/2011
Due date:
% Done:

0%

Estimated time:

Description

AFAIK pfsense NAS recognizes the WISPr RADIUS attributes such as
WISPr-Bandwidth-Max-Up
WISPr-Bandwidth-Max-Down
In certain deployments it would be helpful to also have traffic limits.

Could consider adding custom RADIUS attributes, similar to what some other NAS provide e.g.

Chillispot http://www.chillispot.info/features.html
ChilliSpot-Max-Input-Octets Maximum number of octets the user is allowed to transmit. After this limit has been reached the user will be disconnected.
ChilliSpot-Max-Output-Octets Maximum number of octets the user is allowed to receive. After this limit has been reached the user will be disconnected.
ChilliSpot-Max-Total-Octets Maximum number of octets the user is allowed to transfer (sum of octets transmitted and received). After this limit has been reached the user will be disconnected.

Mikrotik http://wiki.mikrotik.com/wiki/Manual:RADIUS_Client
Mikrotik-Recv-Limit - total receive limit in bytes for the client
Mikrotik-Recv-Limit-Gigawords - 4G (2^32) bytes of total receive limit (bits 32..63, when bits 0..31 are delivered in Mikrotik-Recv-Limit)
Mikrotik-Xmit-Limit - total transmit limit in bytes for the client
Mikrotik-Xmit-Limit-Gigawords - 4G (2^32) bytes of total transmit limit (bits 32..63, when bits 0..31 are delivered in Mikrotik-Recv-Limit)

(Note: Various other examples are available in FreeRadius' dictionary directory)

Associated revisions

Revision 366810df (diff)
Added by Chris Buechler almost 10 years ago

Patch from Aarno Aukia for cvstrac ticket #1932

Revision 991ad577 (diff)
Added by Chris Buechler almost 10 years ago

Patch from Aarno Aukia for cvstrac ticket #1932

History

#1 Updated by Josep Pujadas over 7 years ago

CoovaChilli is an open-source software access controller, based on the popular (but now defunct) ChilliSpot project, and is actively maintained by an original ChilliSpot contributor.

http://www.coova.org/CoovaChilli

It has a FreeBSD port, http://www.freebsd.org/cgi/ports.cgi?query=chilli&stype=all

Regards,

Josep Pujadas

#2 Updated by Alexander Wilke almost 7 years ago

CaptivePortal is sending these four attributes:

Acct-Input-Octets
Acct-Output-Octets
Acct-Input-Gigawords
Acct-Output-Gigawords

So it is up to the backend (freeradius and/or (mysql) database) to use these attributes/data in the way you want.
freeradius2 package on pfsense is able to do that. pfsense 2.1 is now sending the correct accounting bytes (2.0.x didn't).

#3 Updated by Chris Buechler over 3 years ago

  • Category set to Captive Portal

#4 Updated by A FL 11 months ago

Pull request https://github.com/pfsense/pfsense/pull/3453 has been implemented

This issue can be marked as resolved

#5 Updated by Jim Pingle 11 months ago

  • Status changed from New to Resolved

Also available in: Atom PDF