Centralized accounting and coa/disconnect

Alan DeKok aland at deployingradius.com
Wed Dec 28 21:44:08 UTC 2022


On Dec 28, 2022, at 3:43 PM, BuzzSaw Code <buzzsaw.code at gmail.com> wrote:
> 
>> "X" isn't an IPv4 address.  Or, "X" is a host name which has no IPv4
> address associated with it.
> 
> It sure isn't an IPv4 address, what we have is an IPv6 address which
> is why I originally asked if an IPv6 specific dictionary item needed
> to be added to make this work.

  The normal attribute which contains IPv6 destination address is Packet-Dst-IPv6-Address

> In "coa-relay":
> ..
> foreach &control:Tmp-String-0 {
>                                if ("%{Foreach-Variable-0}" =~ /([^#]*)#(.*)/) {
>                                        update request {
>                                                COA-Packet-Type :=
> "%{Packet-Type}"
> 
> 
> #COA-Packet-DST-IP-Address := "%{1}"
> 
> COA-Packet-DST-IP-Address := "fd01::2"
>                                                COA-Acct-Session-Id := "%{2}"
> 
>                                                #
>                                                #  Add any other
> attributes here.
>                                                #
> 
>                                                # Set the CoA/Disconnect port
>                                                COA-Packet-DST-Port := 1700
> 

  That looks to be taken from the default configuration.

  Hmm... the example doesn't handle IPv6 addresses.  That's OK, you can just put the IPv6 address into another attribute, and then copy it into into coa:Packet-Dst-IPv6-Address later on in the virtual server.

  I'll see if I can clean up the example.  It seems a bit confusing in places.

  Alan DeKok.



More information about the Freeradius-Users mailing list