FreeRadius Mikrotik-Rate-Limit attribute limit

Arran Cudbard-Bell a.cudbardb at freeradius.org
Tue Feb 18 16:15:15 CET 2014


On 18 Feb 2014, at 14:35, Lalit Choudhary <lalitvc at gmail.com> wrote:

> 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 suggest how i can use Mikrotik-Total-Limit-Gigawords for more then 4 GB data limit.

See response to the developers list.

Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS Development Team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 881 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20140218/3281ed95/attachment.pgp>


More information about the Freeradius-Users mailing list