bug-gnu-radius
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnu-radius] Accounting trail in a proxy setup


From: Sergey Poznyakoff
Subject: Re: [Bug-gnu-radius] Accounting trail in a proxy setup
Date: Wed, 21 Jul 2004 15:13:32 +0300

Hi

Maurice Makaay <address@hidden> wrote:

> I think the code is not doing what the manual states here. AFAIK, the
> detail accounting logging is done by the function "rad_accounting". 
> This function is only called from radiusd/radius.c. In that function,
> the flow looks somewhat like this:

That's not quite so. What you described is true for incoming accounting
requests only. What goes on in real life is:

1) The server receives the acounting request and proxies it to the
remote server. Your server does not process the request itself at this time.
Instead, it stores it into its request queue and waits for the
remote party to reply.

2) If everything goes OK, the remote party responds with an
Accounting-Accept packet. Your server receives it, looks up
the original record in the queue and then processes it.
See radius.c:489-508.

> Or, of course, wake me up again like you have done some times before ;-)

Here it goes :^) There are two possible reasons why you cannot see
proxied accounting requests:

1) The remote party never replies or its replies don't get back to your
server.

2) The remote party replies, but your server is unable to
find matching original requests in its queue. In this case you will see
the following diagnostics: "Unrecognized proxy reply from server...".
Now, there are two reasons why this can happen:

2.1) The requests expire in queue before arrival of the remote party's
replies. In this case, try raising 'request-cleanup-delay' parameter in
'acct' section of your raddb/config.
2.2) The remote server does not preserve Proxy-State attribute in its
replies. It is hard to advise something in this case, except talking to
another server admin:)

Regards,
Sergey





reply via email to

[Prev in Thread] Current Thread [Next in Thread]