CoA server conception

Anatoliy Kushner cphlpd at gmail.com
Fri Mar 3 13:56:17 UTC 2023





\ AK

> On 3 Mar 2023, at 19:43, Yuriy Ivkin <y.ivkin at corp.rtln.ru> wrote:
> 
> Greetings!
> 
> After few hours of googling I think I understood. The only not clear thing: how freeradius deside to send a CoA message or not ?
> 
> Comments from sites-available/originate-coa:
> 
> #  CoA packets can be originated when a normal Access-Request or
> #  Accounting-Request packet is received.  Simply update the
> #  "coa" list:
> #
> #       update coa {
> #              &User-Name = "%{User-Name}"
> #              &Acct-Session-Id = "%{Acct-Session-Id}"
> #              &NAS-IP-Address = "%{NAS-IP-Address}"
> #       }
> #
> #  And the CoA packet will be sent.  You can also send Disconnect
> #  packets by using "update disconnect { ...".
> #
> 
> What is the "Simply update the  "coa" list" means ? Changing of a site configuration in accounting section like this
> 
> update coa {
>                User-Name = "%{User-Name}"
>                Acct-Session-Id = "%{Acct-Session-Id}"
>                NAS-IP-Address = "%{NAS-IP-Address}"
> }
> 
> and restart service ?
> 
> Will the CoA message be generated in response for every acct request of active sessions ? That has no sense...

Yes, in this case fr will reply for every acct packet. But , for example we send disconnect only for acct-update and also checking attrs in packet( class and some others)

> 
> 03.03.2023 11:33, Yuriy Ivkin пишет:
>> Greetings!
>> 
>>  I am trying to understand the conception of coa server. What functionality does it brings ? Is it a some kind of proxy ?
>> 
>> For example, I have a NAS server with configured coa port. I can send a disconnect request directly into it. If I configure a coa server on a freeradius server, will I be able to send a disconnect request to the freeradius instead and that is all?
>> 
>> Thanks in advance for your answers!
>> 
> -- 
> Best regards,
> Yuriy Ivkin
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


More information about the Freeradius-Users mailing list