FreeRadius Mikrotik-Rate-Limit attribute limit
Hi all, I configured freeradius (FreeRADIUS Version 2.2.2) with mysql,While testing Mikrotik NAS i found that Mikrotik-Total-Limit attribute it works upto 4gb then Mikrotik-Total-Limit-Gigawords for more than 4gb (4294967296 in bytes).If i set Mikrotik-Total-Limit value more then 3.9 GB ,it's taking random value or 0 for this attribute. Currently my hotspot ,wifi users data usage limit set in database, using store procedure it's calculating value for Mikrotik-Total-Limit and assigning other attributes. Today i tried by sending both attributes(Mikrotik-Total-Limit-Gigawords and Mikrotik-Total-Limit) in redreply, Sending Access-Accept of id 61 to 192.168.53.157 port 48563 Mikrotik-Rate-Limit = "15M/16M" Mikrotik-Total-Limit = 5242880 (this value in bytes) Mikrotik-Total-Limit-Gigawords = 1 (this value in GB) Session-Timeout = 0 Idle-Timeout = 0 Port-Limit = 1 I'm assuming that it will Terminate the session after 1026 mb usage (Mikrotik-Total-Limit + Mikrotik-Total-Limit-Gigawords), but user session not Terminating even after 1026 mb usage . I am not sure whether Mikrotik-Total-Limit-Gigawords taking value in GB or bytes. Please suggests how i can use Mikrotik-Total-Limit-Gigawords for more then 4 GB data limit. Thanks, Lalit Choudhary
This should be on freeradius-users; it isn't a developer problem. On Tue, Feb 18, 2014 at 07:35:15PM +0530, Lalit Choudhary wrote:
Mikrotik-Total-Limit = 5242880 (this value in bytes) Mikrotik-Total-Limit-Gigawords = 1 (this value in GB)
That's 4.004Gb.
I'm assuming that it will Terminate the session after 1026 mb usage
No
I am not sure whether Mikrotik-Total-Limit-Gigawords taking value in GB or bytes.
The top 32 bits of a 64-bit value.
Please suggests how i can use Mikrotik-Total-Limit-Gigawords for more then 4 GB data limit.
See the previous post I wrote on this here: http://lists.freeradius.org/pipermail/freeradius-users/2013-October/068847.h... Matthew -- Matthew Newton, Ph.D. <mcn4@le.ac.uk> Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>
On 18 Feb 2014, at 14:26, Matthew Newton <mcn4@LEICESTER.AC.UK> wrote:
This should be on freeradius-users; it isn't a developer problem.
On Tue, Feb 18, 2014 at 07:35:15PM +0530, Lalit Choudhary wrote:
Mikrotik-Total-Limit = 5242880 (this value in bytes) Mikrotik-Total-Limit-Gigawords = 1 (this value in GB)
That's 4.004Gb.
I'm assuming that it will Terminate the session after 1026 mb usage
No
I am not sure whether Mikrotik-Total-Limit-Gigawords taking value in GB or bytes.
The top 32 bits of a 64-bit value.
Please suggests how i can use Mikrotik-Total-Limit-Gigawords for more then 4 GB data limit.
See the previous post I wrote on this here:
http://lists.freeradius.org/pipermail/freeradius-users/2013-October/068847.h...
Yes OP has now spammed the developers list, me directly, and the FreeRADIUS linked in page with exactly the same question. Here is the commit which fixes the problem by using 64bit counters. Upgrade to v3.0.x. It's not going to be backported. https://github.com/FreeRADIUS/freeradius-server/commit/cac1c92bd304ba98758bc... -Arran Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
On Tue, Feb 18, 2014 at 02:35:08PM +0000, Arran Cudbard-Bell wrote:
Yes OP has now spammed the developers list, me directly, and the FreeRADIUS linked in page with exactly the same question.
I think I'm most surprised the number of people who can't do binary arithmetic. But then maybe I shouldn't be... Matthew -- Matthew Newton, Ph.D. <mcn4@le.ac.uk> Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>
participants (3)
-
Arran Cudbard-Bell -
Lalit Choudhary -
Matthew Newton