Postpaid configuration for all
Dear All,
I have all my users postpaid. How can I configure freeradius that all of them are postpaid? I heard there is a centralbase parameter that should be postpaid but I could not find how to do it.
Best regards, Murat
"May the Force be with you." Han Solo (Star Wars)
Murat K wrote:
I have all my users postpaid. How can I configure freeradius that all of them are postpaid? I heard there is a centralbase parameter that should be postpaid but I could not find how to do it.
You will need to read the documentation and configure it. There is no pre-existing template for a postpaid configuration. Alan DeKok.
On Tue, Aug 28, 2012 at 1:20 PM, Murat K <srvrmurat@gmail.com> wrote:
I have all my users postpaid. How can I configure freeradius that all of them are postpaid?
Nothing
I heard there is a centralbase parameter that should be postpaid
Ask whomever you heard it from, because it's not true. The simplest test example, adding a user and cleartext-password entry to the top of /etc/raddb/users (or wherever your user file is), would allow a user to authenticate to the NAS (i.e. login) with that password. And if that NAS sends accounting packets, FR will record it, and you can then use the accounting information to charge the user later (i.e. postpaid). To create a prepaid user, you need to return some limit attribute that your NAS understands (i.e. Session-Timeout, ChilliSpot-Max-Total-Octets, whatever) to limit how long that user can be online. Usually that's done by using and configuring rlm_counter or rlm_sqlcounter (see the docs and wiki for details). -- Fajar
The gsm operator we are working with has their ggsn updated. Now they are requesting charging data postpaid in accept reply which is same for all. I know we can set sn_rulebase=postpaid in users file but firewall is also using it and it is risky to do it. Is there another way to do it? They do not know for sure but told me about centralbase. Regards "May the Force be with you." Han Solo (Star Wars) Aug 28, 2012 tarihinde 11:39 saatinde, "Fajar A. Nugraha" <list@fajar.net> şunları yazdı:
On Tue, Aug 28, 2012 at 1:20 PM, Murat K <srvrmurat@gmail.com> wrote:
I have all my users postpaid. How can I configure freeradius that all of them are postpaid?
Nothing
I heard there is a centralbase parameter that should be postpaid
Ask whomever you heard it from, because it's not true.
The simplest test example, adding a user and cleartext-password entry to the top of /etc/raddb/users (or wherever your user file is), would allow a user to authenticate to the NAS (i.e. login) with that password. And if that NAS sends accounting packets, FR will record it, and you can then use the accounting information to charge the user later (i.e. postpaid).
To create a prepaid user, you need to return some limit attribute that your NAS understands (i.e. Session-Timeout, ChilliSpot-Max-Total-Octets, whatever) to limit how long that user can be online. Usually that's done by using and configuring rlm_counter or rlm_sqlcounter (see the docs and wiki for details).
-- Fajar - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Tue, Aug 28, 2012 at 2:02 PM, Murat K <srvrmurat@gmail.com> wrote:
The gsm operator we are working with has their ggsn updated. Now they are requesting charging data postpaid in accept reply which is same for all.
You need to understand basic concepts of radius. If you're asking "what's the difference between prepaid and postpaid users from radius perspective", then the answer is the presence of the limiting attribute (e.g. session-timeout). It gives prepaid users limit on how long they can remain connected to the NAS. In freeradius, this is usually done by using rlm_counter or rlm_sqlcounter.
I know we can set sn_rulebase=postpaid in users file
SN-Rulebase is a vendor-specific attribute. If your system is using that attribute for some kind of QoS, then ask whomever implement that system on what attribute and value you should return. Once you KNOW what attribute and value to return, then you can tell FR to send it (via users file/sql table/unlang/whatever) If you DON'T KNOW what attribute and value to return, then ask whomever implement your system.
but firewall is also using it and it is risky to do it. Is there another way to do it? They do not know for sure but told me about centralbase.
Ask whomever implement your system. -- Fajar
Murat K wrote:
The gsm operator we are working with has their ggsn updated. Now they are requesting charging data postpaid in accept reply which is same for all. I know we can set sn_rulebase=postpaid in users file but firewall is also using it and it is risky to do it. Is there another way to do it? They do not know for sure but told me about centralbase.
"sn_rulebase" and "centralbase" are NOT common RADIUS terms. We know nothing about them. Asking questions about them is pointless. The person who told you about those terms knows what they mean. Go ask him. Alan DeKok.
participants (3)
-
Alan DeKok -
Fajar A. Nugraha -
Murat K