proxy to 2 servers

Mikhail Novikov mikhail.novikov at gmail.com
Wed Apr 2 21:49:24 CEST 2008


>   realm DEFAULT1 {
>
>         type            = radius
>         authhost        = 192.168.0.10:1812
>         accthost        = 192.168.0.10:1813
>         secret          = testing123
>   }
>
>   realm DEFAULT2 {
>
>         type            = radius
>         authhost        = 192.168.0.11:1812
>         accthost        = 192.168.0.11:1813
>         secret          = testing123
>   }
>
>  and use unlang to set the Proxy-To-Realm for each server
>

Should I put the Proxy-To-Realm code to preacct section?

server server_one {
...
preacct {
	preprocess
	acct_unique
	suffix
        update control {
            Proxy-To-Realm := "DEFAULT1"
        }
	files
}
}

server server_two {
...
preacct {
	preprocess
	acct_unique
	suffix
        update control {
            Proxy-To-Realm := "DEFAULT2"
        }
	files
}
}

Thanks a lot.



More information about the Freeradius-Users mailing list