Dears,

 

I have a question concerning attribute in forwarding accounting packet.

 

I have configure FR to read the detail file and proxy this accounting packet to another server.

 

As you can see this schema is working well except that the attribute REALM is not include in the packet?

We can see it in the detail file but when FR proxy the packet this attribute is missing?

 

Can you please help me?

 

 

Fri Aug  3 16:23:50 2012 : Debug: Detail - Renaming /usr/app/radius/instances-available/internal1/log/radacct/spool/accttodpi -> /usr/app/radius/instances-available/internal1/log/radacct/spool/acctt

detail_recv: Read packet from /usr/app/radius/instances-available/internal1/log/radacct/spool/accttodpi.work

        User-Name = "02130395"

        Acct-Status-Type = Start

        Acct-Session-Id = "1736"

        NAS-IP-Address = 212.65.34.96

        FreeRADIUS-Acct-Session-Start-Time = "Aug  3 2012 16:23:50 CEST"

        Acct-Unique-Session-Id = "fe767cbc41e2f2e6"

        Stripped-User-Name = "02130395"

        Realm = "MOBISTAR"

        Proxy-State = 0x3231

        Packet-Original-Timestamp = "Aug  3 2012 16:23:50 CEST"

        Acct-Delay-Time = 0

        Packet-Transmit-Counter = 1

Fri Aug  3 16:23:50 2012 : Info: server dpi-acct-read {

Fri Aug  3 16:23:50 2012 : Info: # Executing section preacct from file /usr/app/radius/instances-enabled/internal1//sites-enabled/dpi

Fri Aug  3 16:23:50 2012 : Info: +- entering group preacct {...}

Fri Aug  3 16:23:50 2012 : Info:        expand: %{Realm} -> MOBISTAR

Fri Aug  3 16:23:50 2012 : Info: ++[request] returns noop

Fri Aug  3 16:23:50 2012 : Info: ++[control] returns noop

Fri Aug  3 16:23:50 2012 : Info: # Executing section accounting from file /usr/app/radius/instances-enabled/internal1//sites-enabled/dpi

Fri Aug  3 16:23:50 2012 : Info: +- entering group accounting {...}

Fri Aug  3 16:23:50 2012 : Info: ++[ok] returns ok

Fri Aug  3 16:23:50 2012 : Info: } # server dpi-acct-read

Fri Aug  3 16:23:50 2012 : Info:   WARNING: Empty pre-proxy section.  Using default return values.

Sending Accounting-Request of id 80 to 172.31.128.122 port 1813

        User-Name = "02130395"

        Acct-Status-Type = Start

        Acct-Session-Id = "1736"

        NAS-IP-Address = 212.65.34.96

        FreeRADIUS-Acct-Session-Start-Time = "Aug  3 2012 16:23:50 CEST"

        Proxy-State = 0x3231

        Acct-Delay-Time = 0

        Proxy-State = 0x3537393531

Fri Aug  3 16:23:50 2012 : Info: Proxying request 7 to home server 172.31.128.122 port 1813

Sending Accounting-Request of id 80 to 172.31.128.122 port 1813

        User-Name = "02130395"

        Acct-Status-Type = Start

        Acct-Session-Id = "1736"

        NAS-IP-Address = 212.65.34.96

        FreeRADIUS-Acct-Session-Start-Time = "Aug  3 2012 16:23:50 CEST"

        Proxy-State = 0x3231

        Acct-Delay-Time = 0

        Proxy-State = 0x3537393531

Fri Aug  3 16:23:50 2012 : Debug: Going to the next request

Fri Aug  3 16:23:50 2012 : Debug: Detail listener /usr/app/radius/instances-available/internal1/log/radacct/spool/accttodpi state running signalled 0 waiting 1.039211 sec

Fri Aug  3 16:23:50 2012 : Debug: Waking up in 0.4 seconds.

rad_recv: Accounting-Response packet from host 172.31.128.122 port 1813, id=80, length=31

        Proxy-State = 0x3231

        Proxy-State = 0x3537393531

 

 

Here is the config :

Site-enable :

 

server dpi-acct-read {

 

    listen {

        type = detail

        filename = ${radacctdir}/spool/accttodpi

        load_factor = 50

    }

 

    preacct {

                update request {

                        Realm = "%{Realm}"

                }

        update control {

            Proxy-To-Realm := "dpiacctfwd"

        }

 

    }

 

        accounting {

                ok

        }

}

 

Modules Detail

detail detail-dpi {

  detailfile = ${radacctdir}/spool/accttodpi

  detailperm = 0600

  header = "%t"

  lock = no

  #suppress {

  #  User-Password

  #}

}

 

Proxy Config :

 

home_server dpi_acct {

    ipaddr = 172.31.128.122

    port = 1813

    type = "acct"

    secret = "ccxxxxxxxx"

    status_check = none

#    zombie_period = 40

#    revive_interval = 120

#    check_interval = 30

}

 

home_server_pool dpi_acct {

    type = fail-over

    home_server = dpi_acct

}

 

realm dpiacctfwd {

    type = acct

    acct_pool = dpi_acct

}

 

 

Thanks

 

 

Eric Bellière

 

Operation & Integration Expert

ITNO/ISO/ISIO/LSS

Avenue Jean Mermoz 32
6041 Gosselies

Description: Description: C:\Program Files\Mobistar\MobistarSignature\mobilogo2007.gif

Tel: +32 (0)2 745 79 97

GSM: +32(0)495 55 13 43

Description: Description: C:\Program Files\Mobistar\MobistarSignature\tree.gif 

please consider the environment - do you really need to print this email?

 

*****DISCLAIMER*****

 

This electronic transmission (and any attached document) is intended

exclusively for the person or entity to whom it is addressed and may

contain confidential and/or privileged material.

Any disclosure, copying, distribution or other action based upon

the information by persons or entities other than the intended recipient

is prohibited. If you receive this message in error, please contact the

sender and delete the material from any and all computers.

Mobistar does not warrant a proper and complete transmission of this

information, nor does it accept liability for any delays.

 

*****END OF DISCLAIMER*****