Freeradius2 and proxing

Vincent Magnin Vincent.Magnin at unil.ch
Tue Feb 5 08:52:05 CET 2008


In freeradius 1, if I need to proxy requests whose realm are remote,
I put the following in proxy.conf:

> realm DEFAULT {
>         type = radius
>         authhost = remote.server1.com:1812
>         accthost = remote.server1.com:1813
>         secret = ****************
>         ldflag = round_robin
>         nostrip }
>
> realm DEFAULT {
>         type = radius
>         authhost = remote.server2.com:1812
>         accthost = remote.server2.com:1813
>         secret = ****************
>         ldflag = round_robin
>         nostrip
> }


I've tried to put the same lines in my freeradius2 config file and it
does not work as expected:

radius -X output:

     rlm_realm: Looking up realm "extern.realm.com" for User-Name =  
"anonymous at extern.realm.com"
     rlm_realm: No such realm "extern.realm.com"

Then, the request is done locally.


If I put in my proxy.conf file this domain explicitely, it works fine:


> realm extern.realm.com {
>         type = radius
>         authhost = remote.server2.com:1812
>         accthost = remote.server2.com:1813
>         secret = ****************
>         ldflag = round_robin
>         nostrip
> }

radius -X output:

     rlm_realm: Looking up realm "extern.realm.com" for User-Name =  
"anonymous at extern.realm.com"
     rlm_realm: Found realm "extern.realm.com"
     rlm_realm: Proxying request from user anonymous to realm extern.realm.com
     rlm_realm: Adding Realm = "extern.realm.com"
     rlm_realm: Preparing to proxy accounting request to realm  
"extern.realm.com"


Regards,

Vincent Magnin




More information about the Freeradius-Users mailing list