Hello
    I use freeradius as proxy but met some problem with accounting:

    proxy does not forward accounting response back to nas.

    Look at this log:


rad_recv: Accounting-Request packet from host 194.190.177.194:1646, id=200, length=108
        NAS-IP-Address = 194.190.177.194
        NAS-Port = 66
        NAS-Port-Type = Virtual
        User-Name = "agk@mtu"
        Calling-Station-Id = "195.122.226.5"
        Acct-Status-Type = Stop
        Acct-Authentic = RADIUS
        Service-Type = NAS-Prompt-User
        Acct-Session-Id = "00000025"
        Acct-Terminate-Cause = User-Request
        Acct-Session-Time = 95
        Acct-Delay-Time = 0
        
// --------------------------------

modcall: entering group preacct
  rlm_realm: Proxying request from user agk to realm mtu
  modcall[preacct]: module "suffix" returns ok
modcall: group preacct returns ok
// --------------------------------
modcall: entering group accounting
radius_xlat:  '/var/log/radius/aaa//detail'
rlm_detail: /var/log/radius/aaa/%{Client-IP-Address}/detail expands to 
/var/log/radius/aaa//detail
  modcall[accounting]: module "detail" returns ok
modcall: group accounting returns ok
// ------------- Send it to next server with Proxy-State ="200" ! ------------------
Sending Accounting-Request of id 1 to 195.122.226.10:1813
        User-Name = "agk"
        NAS-IP-Address = 194.190.177.194
        NAS-Port = 66
        NAS-Port-Type = Virtual
        Calling-Station-Id = "195.122.226.5"
        Acct-Status-Type = Stop
        Acct-Authentic = RADIUS
        Service-Type = NAS-Prompt-User
        Acct-Session-Id = "00000025"
        Acct-Terminate-Cause = User-Request
        Acct-Session-Time = 95
        Acct-Delay-Time = 0
        Proxy-State = "200"
 --- Walking the entire request list ---
Waking up in 6 seconds...
rad_recv: Accounting-Response packet from host 195.122.226.10:1813, id=1, length=25
        Proxy-State = 0x323030    -- is it exactly what we wait for ?
//  ---   what  are we doing ? accounting response ?
modcall: entering group accounting
radius_xlat:  '/var/log/radius/aaa//detail'
rlm_detail: /var/log/radius/aaa/%{Client-IP-Address}/detail expands to 
/var/log/radius/aaa//detail
  modcall[accounting]: module "detail" returns ok
modcall: group accounting returns ok
Finished request 0
Going to the next request
rl_next:  returning NULL
Cleaning up request 0 ID 200 with timestamp 3b6ade5a
Waking up in 6 seconds...
// ---------------- NAS try again but result will be the same:
#rad_recv: Accounting-Request packet from host 194.190.177.194:1646, id=201, length=108
        NAS-IP-Address = 194.190.177.194
        NAS-Port = 66
        NAS-Port-Type = Virtual
        User-Name = "agk@mtu"
        Calling-Station-Id = "195.122.226.5"
        Acct-Status-Type = Stop
        Acct-Authentic = RADIUS
        Service-Type = NAS-Prompt-User
        Acct-Session-Id = "00000025"
        Acct-Terminate-Cause = User-Request
        Acct-Session-Time = 95
        Acct-Delay-Time = 5
modcall: entering group preacct
  rlm_realm: Proxying request from user agk to realm mtu
  modcall[preacct]: module "suffix" returns ok
modcall: group preacct returns ok
modcall: entering group accounting
radius_xlat:  '/var/log/radius/aaa//detail'
rlm_detail: /var/log/radius/aaa/%{Client-IP-Address}/detail expands to 
/var/log/radius/aaa//detail
  modcall[accounting]: module "detail" returns ok
modcall: group accounting returns ok
Sending Accounting-Request of id 2 to 195.122.226.10:1813
        User-Name = "agk"
        NAS-IP-Address = 194.190.177.194
        NAS-Port = 66
        NAS-Port-Type = Virtual
        Calling-Station-Id = "195.122.226.5"
        Acct-Status-Type = Stop
        Acct-Authentic = RADIUS
        Service-Type = NAS-Prompt-User
        Acct-Session-Id = "00000025"
        Acct-Terminate-Cause = User-Request
        Acct-Session-Time = 95
        Acct-Delay-Time = 5
        Proxy-State = "201"
--- Walking the entire request list ---
Waking up in 6 seconds...
rad_recv: Accounting-Response packet from host 195.122.226.10:1813, id=2, length=25
        Proxy-State = 0x323031
modcall: entering group accounting
radius_xlat:  '/var/log/radius/aaa//detail'
rlm_detail: /var/log/radius/aaa/%{Client-IP-Address}/detail expands to 
/var/log/radius/aaa//detail
  modcall[accounting]: module "detail" returns ok
modcall: group accounting returns ok
Finished request 2
Going to the next request
rl_next:  returning NULL
Cleaning up request 2 ID 201 with timestamp 3b6ade5f
Waking up in 6 seconds...
--- Walking the entire request list ---
Nothing to do.  Sleeping until we see a request.



- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to