Hi, I have a freeradius setup generating COA successfully (when neccesary) after receiving accounting packets. This works well. Now I want to also make Freeradius generate a COA by some other means. e.g. a tech support guy clicking "disconnect" on a web page. I.e. I want to somehow "trigger" a coa that is not caused by an "update coa {}" block, but by some external trigger. Is this possible in any way? -- Johan Meiring Cape PC Services CC Tel: (021) 883-8271 Fax: (021) 886-7782
On 08/10/10 11:28, Johan Meiring wrote:
Hi,
I have a freeradius setup generating COA successfully (when neccesary) after receiving accounting packets.
This works well.
Now I want to also make Freeradius generate a COA by some other means. e.g. a tech support guy clicking "disconnect" on a web page.
I.e. I want to somehow "trigger" a coa that is not caused by an "update coa {}" block, but by some external trigger.
Is this possible in any way?
You can use "radclient" to generate CoA packets; just have your script do that. FreeRadius can (I think) then receive and send on the CoA packets; I'm not sure precisely how you do that, but I think it's documented in the "sites-available/coa" example.
Now I want to also make Freeradius generate a COA by some other means. e.g. a tech support guy clicking "disconnect" on a web page.
I.e. I want to somehow "trigger" a coa that is not caused by an "update coa {}" block, but by some external trigger.
Is this possible in any way?
You can use "radclient" to generate CoA packets; just have your script do that. FreeRadius can (I think) then receive and send on the CoA packets; I'm not sure precisely how you do that, but I think it's documented in the "sites-available/coa" example.
You could have radclient send the COA packet directly to the NAS. Tim
On 08/10/10 16:03, Tim Sylvester wrote:
Now I want to also make Freeradius generate a COA by some other means. e.g. a tech support guy clicking "disconnect" on a web page.
I.e. I want to somehow "trigger" a coa that is not caused by an "update coa {}" block, but by some external trigger.
Is this possible in any way?
You can use "radclient" to generate CoA packets; just have your script do that. FreeRadius can (I think) then receive and send on the CoA packets; I'm not sure precisely how you do that, but I think it's documented in the "sites-available/coa" example.
You could have radclient send the COA packet directly to the NAS.
Sure; that's what we do.
Johan Meiring wrote:
Now I want to also make Freeradius generate a COA by some other means. e.g. a tech support guy clicking "disconnect" on a web page.
I.e. I want to somehow "trigger" a coa that is not caused by an "update coa {}" block, but by some external trigger.
Is this possible in any way?
$ man radclient Alan DeKok.
Hi Johan Do you mind sharing a copy of your COA triggers? Thank you Andrew Paternoster Screwloose Software S (03) 9095-7290 (03) 9095-7299 11-15 HighTech Place, Lilydale, Vic 3140 www.screwloose.com.au -----Original Message----- From: freeradius-users-bounces+andrew=screwloose.com.au@lists.freeradius.org [mailto:freeradius-users-bounces+andrew=screwloose.com.au@lists.freeradius.org] On Behalf Of Johan Meiring Sent: Friday, 8 October 2010 9:29 PM To: FreeRadius users mailing list Subject: Freeradius COA trigger Hi, I have a freeradius setup generating COA successfully (when neccesary) after receiving accounting packets. This works well. Now I want to also make Freeradius generate a COA by some other means. e.g. a tech support guy clicking "disconnect" on a web page. I.e. I want to somehow "trigger" a coa that is not caused by an "update coa {}" block, but by some external trigger. Is this possible in any way? -- Johan Meiring Cape PC Services CC Tel: (021) 883-8271 Fax: (021) 886-7782 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Andrew Paternoster wrote:
Do you mind sharing a copy of your COA triggers?
radclient will send CoA packets whenever you want. If you can write a program to determine when to send a CoA, and that program can run radclient, you can send CoAs from any program. Alan DeKok.
On 2010/12/13 05:23 AM, Andrew Paternoster wrote:
Hi Johan
Do you mind sharing a copy of your COA triggers?
In Perl (rlm_perl) - Where I make my decision to disconnect. ------------------- if ($balance <= 0) { $RAD_REPLY{'Tmp-String-0'} = 'DISCONNECT'; }; In my virtual server -------------------- accounting { perl if ("%{reply:Tmp-String-0}" == "DISCONNECT") { update disconnect { User-Name = "%{User-Name}" } } } -- Johan Meiring Cape PC Services CC Tel: (021) 883-8271 Fax: (021) 886-7782
participants (5)
-
Alan DeKok -
Andrew Paternoster -
Johan Meiring -
Phil Mayers -
Tim Sylvester