proxy questions

Justin Church jcc at unc.edu
Tue Nov 14 18:23:03 CET 2006


I need to be able to proxy accounting requests that arrive with no 
User-Name attribute.  Is that possible?  I haven't been able to make it 
work.  Maybe I could insert a dummy User-Name pre-proxy and remove it 
post-proxy?

Also, I notice that when running in -X mode, the accounting-response is 
not relayed to the original client.  Works fine when not in -X mode. 
Here's a debug of a scenario where an accounting-request was proxied 
correctly; yet, the accounting-response is not relayed to the client by 
the proxy server:

rad_recv: Accounting-Request packet from host 152.2.199.26 port 32823, 
id=155, length=86
         User-Name = "jcc"
         NAS-Port = 5060
         Sip-Src-IP = 152.2.199.26
         Acct-Status-Type = Start
         Sip-Transport-Proto = TLS
         Acct-Session-Id = "accounting-session-1-id"
   Processing the preacct section of radiusd.conf
modcall:  entering group preacct for request 4
rlm_acct_unique: WARNING: Attribute Client-IP-Address was not found in 
request, unique ID MAY be inconsistent
rlm_acct_unique: Hashing 'NAS-Port = 5060,,NAS-IP-Address = 
152.2.199.26,Acct-Session-Id = "accounting-session-1-id",User-Name = "jcc"'
rlm_acct_unique: Acct-Unique-Session-ID = "7910d35136b9eb7a".
     rlm_realm: No '@' in User-Name = "jcc", looking up realm NULL
     rlm_realm: Found realm "NULL"
     rlm_realm: Proxying request from user jcc to realm NULL
     rlm_realm: Adding Realm = "NULL"
     rlm_realm: Preparing to proxy accounting request to realm "NULL"
modcall: group preacct returns noop for request 4
   Processing the accounting section of radiusd.conf
modcall:  entering group accounting for request 4
radius_xlat: 
'/usr/local/var/log/radius/radacct/152.2.199.26/detail-20061114'
rlm_detail: 
/usr/local/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d 
expands to /usr/local/var/log/radius/radacct/152.2.199.26/detail-20061114
radius_xlat:  'Tue Nov 14 12:15:11 2006'
rlm_detail: Freeradius-Proxied-To set to 152.23.129.213
radius_xlat:  '/usr/local/var/log/radius/radutmp'
radius_xlat:  'jcc'
modcall: group accounting returns ok for request 4
Sending Accounting-Request of id 227 to 152.23.129.213 port 1815
         User-Name = "jcc"
         NAS-Port = 5060
         Sip-Src-IP = 152.2.199.26
         Acct-Status-Type = Start
         Sip-Transport-Proto = TLS
         Acct-Session-Id = "accounting-session-1-id"
         NAS-IP-Address = 152.2.199.26
         Proxy-State = 0x313535
--- Walking the entire request list ---
Cleaning up request 4 ID 155 with timestamp 4559f99f
Nothing to do.  Sleeping until we see a request.
rad_recv: Accounting-Response packet from host 152.23.129.213 port 1815, 
id=227, length=25
No outstanding request was found for proxy reply from home server 
152.23.129.213 port 1815 - ID 227
Nothing to do.  Sleeping until we see a request.

root at rtc306:/usr/local/etc/raddb# radiusd -v
radiusd: FreeRADIUS Version 2.0.0-pre0, for host i686-pc-linux-gnu, 
built on Sep  6 2006 at 16:44:16

Thanks.

-jc



More information about the Freeradius-Users mailing list