Hi
Which NAS are you using ? Use "gigaword" attribute to define the limits more than 4GB. it is easy, for example, if you want 10 Gb limit.
The Value Of 10GB In Bytes If Following
10737418240
The Value of Octets_Attribute For Check Item
2147483648
The Value of Gigawords_Attribute For Check Item
2Use the following python script to calculate the values when ever you need. Change the value in VARIABLE "GB_Value" to the number you want.
#!/usr/bin/python
GB_Value = 10
Total_Bytes = GB_Value*(1024**3)
print 'The Value Of Given Number In Bytes If Following', '\n', Total_Bytes
Octets_Attribute = GB_Value*(1024**3) & ((2**32)-1);
Gigawords_Attribute = GB_Value*(1024**3) >> 32;
print '\n'
print 'The Value of Octets_Attribute is' '\n', Octets_Attribute
print 'The Value of Gigawords_Attribute is' '\n', Gigawords_Attribute
print '\n' 'Confirming Calculations & Giving Results:'
i = (Gigawords_Attribute<<32) + Octets_Attribute;
#i = (1<<32) + Octets_Attribute;
print 'This Number Must Equel To Bytes Of Given Number. Please Verify', i
j = GB_Value*(1024**3);
print 'Using Second Methos To Verify Output Number. Is This Orignal Number in Bytes ', j,'?'
print '\n'I trust this helps.Thanks / RM--On Wed, Oct 15, 2014 at 1:34 PM, johan firdianto <johanfirdi@gmail.com> wrote:you should define integer64 for volume attribute in fr dictionary.
On Oct 15, 2014 8:25 PM, "Abdullah" <b.hawks123@gmail.com> wrote:-HelloFr disconects the user auto at 2gb, when i increase the ChilliSpot-Max-Total-Octets to anything more than 3.9GB, it never disconnects the user whereas any value under 3.9GB works fine and user gets disconnected when the limit is reached.I need some help as to how volume greater than 4GB can be implemented. I have tried some older methods involving setting up counters but either they dont get called/executed from the same config files as in 2.x branchSo please guide me as to how can it be achievedRegards,
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html