This is a mostly working patch to cistron radius 1.6.3 that permits proxying based on radius attributes, and not just on realms in the username. This should be able to allow proxying based on things such as DNIS. I was hoping somebody could lend a hand in fixing it up. It's used by defining a Realm attribute in the hints file, eg: DEFAULT Prefix = "S", Strip-User-Name = "Yes" Realm = "myisp.com" You make the regular proxy entries, ie: myisp.com goes into the realms file and the remote server is put into the clients file. In this case when the username begins with an S it will be proxied off to the realm server found for myisp.com. What's broken is that proxy_send in proxy.c only has 3 return statuses. If the realm defined in the Realm attribute is not found in the realms file, the only status I could return was a -1, in effect ignore the request when it should be denying the request. I don't know the best workaround here. -- Brandon Lee Poyner bpoyner@thebiz.net