Hi, I am trying to figure out to use the Coa functionality in Freeradius. I have two seperate questions. 1) For originating a COA packet, is it possible to trigger it from rlm_perl. i.e. cause an "update coa". 2) For receiving a COA packet. How can I "process" it. I see that when perl instantiates, it claims it will use two funtions, send_coa and recv_coa. In what section must I put perl for it to call the functions? I've created a listen section for Coa. Freradius receives it, but "does nothing" and simply sends back an ack. Hope this makes sense... -- Johan Meiring Cape PC Services CC Tel: (021) 883-8271 Fax: (021) 886-7782
Johan Meiring wrote:
1) For originating a COA packet, is it possible to trigger it from rlm_perl. i.e. cause an "update coa".
Not really.
2) For receiving a COA packet. How can I "process" it. I see that when perl instantiates, it claims it will use two funtions, send_coa and recv_coa. In what section must I put perl for it to call the functions?
The recv_coa && send_coa sections.
I've created a listen section for Coa. Freradius receives it, but "does nothing" and simply sends back an ack.
Yup. The example CoA server was missed in 2.1.8. See: http://github.com/alandekok/freeradius-server/blob/master/raddb/sites-availa... Alan DeKok.
Alan DeKok wrote:
Johan Meiring wrote:
1) For originating a COA packet, is it possible to trigger it from rlm_perl. i.e. cause an "update coa".
Not really.
I have not tried this yet, simply thinking aloud.... Could one maybe set a string in rlm_perm "Tmp-String-0" and then test for it using unlang later, and that way "trigger" the coa?
Yup. The example CoA server was missed in 2.1.8. See:
Perfect. That's what I needed. -- Johan Meiring Cape PC Services CC Tel: (021) 883-8271 Fax: (021) 886-7782
participants (2)
-
Alan DeKok -
Johan Meiring