proxy based on number of numeric char.

Agent Smith news8080 at yahoo.com
Tue Apr 27 18:43:22 CEST 2010


That seems to work very well. Thanks..

--- On Mon, 4/26/10, Alan DeKok <aland at deployingradius.com> wrote:

> From: Alan DeKok <aland at deployingradius.com>
> Subject: Re: proxy based on number of numeric char.
> To: "FreeRadius users mailing list" <freeradius-users at lists.freeradius.org>
> Date: Monday, April 26, 2010, 3:42 PM
> Agent Smith wrote:
> > I'd like to have a radius proxy setup where it can
> proxy users based on number of numeric characters in the
> userid. 
> > 
> > so for example, if the userid is abc123 (with 3
> numeric char. at the end) it should proxy to an instance of
> radius running on the same box and if the user id is abcxxx
> it should proxy the request to a different instance of
> radius running on the same box,
> > 
> > is this doable or did I miss something in the
> documentation?
> 
>   There is nothing in the documentation that says how
> to do this exact
> setup.
> 
>   What you can do is control proxying manually. 
> See raddb/proxy.conf,
> and "man unlang" to put the pieces together.
> 
> authorize {
>     ...
> 
>     if (User-Name =~ /^...$$/) {
>         update control {
>            
> Proxy-To-Realm := "foo"
>         }
>     }
>     ...
> }
> 
> 
>   You will still need to configure realms.
> 
>   Alan DeKok.
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
> 


      




More information about the Freeradius-Users mailing list