Accounting-Request Re write Rule

Maile Halatuituia maile.halatuituia at tcc.to
Wed Oct 24 22:51:28 CEST 2018


Hi
I need to rewrite this attribute Cisco-AVPair = "acct-input-octets-ipv6=xxx" upon receiving it in the accounting request from my BRAS to my Radius Server so I can further process.

I received this  Cisco-AVPair = "acct-input-octets-ipv6=xxx"

I have done this on the Radius Server /etc/freeradius/sites-available/default

if( &Cisco-AVPair[*]=~/\(acct-input-octets-ipv6\)=\(\d+)/ ) {
                        update request {
                                &acct-input-octets-ipv6 := "%{2}"
                        }
                }
But I have this on my debug

  if ( &Cisco-AVPair[*]=~/\(acct-input-octets-ipv6\)=\(\d+)/ ) {

(0)            if ( &Cisco-AVPair[*]=~/\(acct-input-octets-ipv6\)=\(\d+)/ )  -> FALSE


Not sure if I can read it correctly but seem the rule does not matched ..
Appreciate anyone comments if didn't do it correctly


Confidentiality Notice: This email (including any attachment) is intended for internal use only. Any unauthorized use, dissemination or copying of the content is prohibited. If you are not the intended recipient and have received this e-mail in error, please notify the sender by email and delete this email and any attachment.


More information about the Freeradius-Users mailing list