Re: Volume Limit per user monthly

2012-05-11 Thread yagizozen
I searched for if my huawei vendor accept volume limit AVP and it Does.. At
the earlier times, there was a diameter installed and when I look for the
old snoop files, I saw CC-Total-Octets. Nas reauthenticate when that value
is reached by the user. But when I add this attribute to the reply, no error
it givesme but NAS does not returning to me after that value of octets. 

Why it can be?

--
View this message in context: 
http://freeradius.1045715.n5.nabble.com/Volume-Limit-per-user-monthly-tp5684921p5702923.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Volume Limit per user monthly

2012-05-11 Thread Fajar A. Nugraha
On Fri, May 11, 2012 at 7:32 PM, yagizozen yagizo...@yahoo.com wrote:
 I searched for if my huawei vendor accept volume limit AVP and it Does.. At
 the earlier times, there was a diameter installed and when I look for the
 old snoop files, I saw CC-Total-Octets. Nas reauthenticate when that value
 is reached by the user. But when I add this attribute to the reply, no error
 it givesme but NAS does not returning to me after that value of octets.

 Why it can be?

Ask your NAS vendor. Or, if you want to do it the hard way, compare
packet dump output from the old and new radius.

It could be incorrect dictionary file, or some other required
attributes missing.

-- 
Fajar
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Volume Limit per user monthly

2012-05-04 Thread yagizozen
Hello Guys,

I am crazy about this freeradius and thank all of the developers who work
for freeradius application. It is great that you are doing such an open
source application for everyone who needs. 

I am reading everything that I found about anything related to FR. And I
have a question :) Firstly let me tell that, if the answer of my question
that I am going to ask is located in some doc or another place in
documentation just link the doc name and I will read it if I did not so I do
not consume your time. 

First of all, the GGSN (NAS), that FR is communication is a Huawei system. I
manage to succeed limiting a user usage per day (with respect to session
time) with the use of session-timeout AVP that is located in the
ACCESS-ACCEPT packet sent to my huawei GGSN and GGSN understand that and try
to reauthenticate after that value. But the thing that I want is to limit
the volume of the usage of a user in a month with the use of the
Acct-Input-Octets and Acct-Output-Octets AVPs. But I am having trouble with
impelemnting this. I guess I need to generate a counter and this counter
should count the Input and Output Octets located in the accounting section
and if it is over the limit that I defined in the users file. 

Thank you inadvance.

--
View this message in context: 
http://freeradius.1045715.n5.nabble.com/Volume-Limit-per-user-monthly-tp5684921.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Volume Limit per user monthly

2012-05-04 Thread Fajar A. Nugraha
On Fri, May 4, 2012 at 1:04 PM, yagizozen yagizo...@yahoo.com wrote:
 Hello Guys,

 I am crazy about this freeradius and thank all of the developers who work
 for freeradius application. It is great that you are doing such an open
 source application for everyone who needs.

 I am reading everything that I found about anything related to FR. And I
 have a question :) Firstly let me tell that, if the answer of my question
 that I am going to ask is located in some doc or another place in
 documentation just link the doc name and I will read it if I did not so I do
 not consume your time.

 First of all, the GGSN (NAS), that FR is communication is a Huawei system. I
 manage to succeed limiting a user usage per day (with respect to session
 time) with the use of session-timeout AVP that is located in the
 ACCESS-ACCEPT packet sent to my huawei GGSN and GGSN understand that and try
 to reauthenticate after that value. But the thing that I want is to limit
 the volume of the usage of a user in a month with the use of the
 Acct-Input-Octets and Acct-Output-Octets AVPs. But I am having trouble with
 impelemnting this. I guess I need to generate a counter and this counter
 should count the Input and Output Octets located in the accounting section
 and if it is over the limit that I defined in the users file.

First thing to ask your NAS vendor is whether they support the volume
equivalent of  session-timeout. For example, chillispot has
ChilliSpot-Max-Total-Octets. If it doesn't, then there's no way to
enforce the limit using any radius server. Period.

-- 
Fajar
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Volume Limit per user monthly

2012-05-04 Thread Johan Meiring

On 2012/05/04 09:06 AM, Fajar A. Nugraha wrote:


First thing to ask your NAS vendor is whether they support the volume
equivalent of  session-timeout. For example, chillispot has
ChilliSpot-Max-Total-Octets. If it doesn't, then there's no way to
enforce the limit using any radius server. Period.


Unless

You locally keep track of the Total usage in all sessions for the month.
When you receive an accoungting update, you do the math.

If the user is over, you send a POD.

This is how our local telco works with ADSL.

Unfortunately you only get Accounting Updates every hour, so you might let a 
user run for about an hour before you disconnect him, but you dont really 
have another option.


Cheers,

--


Johan Meiring
Cape PC Services CC
Tel: (021) 883-8271
Fax: (021) 886-7782


Before acting on this email or opening any attachments
you should read Cape PC Service's email disclaimer at:

http://www.pcservices.co.za/disclaimer.html

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Volume Limit per user monthly

2012-05-04 Thread yagizozen
Hello Johan,

First of all thank you for your answer. I immidiately ask my GGSN vendor if
it support data limitting if not, like u said I keep the track of usage for
every user but can you give more information about what is POD and how it is
sent to my GGSN and also POD is a standart AVP that my GGSN will know it for
sure?

Keeping track of the usage is not hard for me but the thing is that how can
I disconnect the user like you said?

--
View this message in context: 
http://freeradius.1045715.n5.nabble.com/Volume-Limit-per-user-monthly-tp5684921p5685030.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Volume Limit per user monthly

2012-05-04 Thread Fajar A. Nugraha
On Fri, May 4, 2012 at 2:15 PM, Johan Meiring jmeir...@pcservices.co.za wrote:
 On 2012/05/04 09:06 AM, Fajar A. Nugraha wrote:


 First thing to ask your NAS vendor is whether they support the volume
 equivalent of  session-timeout. For example, chillispot has
 ChilliSpot-Max-Total-Octets. If it doesn't, then there's no way to
 enforce the limit using any radius server. Period.


 Unless

 You locally keep track of the Total usage in all sessions for the month.
 When you receive an accoungting update, you do the math.

 If the user is over, you send a POD.

 This is how our local telco works with ADSL.

Correct. That would be a good method if your NAS supports POD, and
you're willing to tolerate some excess traffic (since you only get
interim-update packets at certain time interval, not certain volume
interval).


 Unfortunately you only get Accounting Updates every hour,

That should be configurable through Acct-Interim-Interval attribute
sent by radius. However:
- some NAS limits the minimum allowed value (e.g. chillispot ignores
values less than 60)
- if you set it too low, the load your accting backend (e.g. db) might
get too high, as there will be more accounting packets to process.

5, 15, or 60 minutes is usually a good start for
Acct-Interim-Interval, depending on your current load.

-- 
Fajar
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Volume Limit per user monthly

2012-05-04 Thread yagizozen
I am glad that you are trying to help me guys. These are very good
recommendations. I do not have any information regarding the that POD
thing but the first thing that I will do is search for it. Is there any
place that you recommend me to read for learning the POD mechanism or can
you tell a little more about that?

Thank you

--
View this message in context: 
http://freeradius.1045715.n5.nabble.com/Volume-Limit-per-user-monthly-tp5684921p5685047.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html