would this work?
users
Joe     NAS-IP-Address =~ "^192.168.200."
        Framed-IP-Address = X,
        Fallthrough = yes

Joe     NAS-IP-Address =~ "^192.168.201."
        Framed-IP-Address = Y,
        Fallthrough = yes

On Fri, 2005-04-29 at 04:03, Bram wrote:
> > The second. Your sum up is very clear ;-)
> 
> AFAIK there is no easy way for the second... if it would be one static ip per
> use then it would be no problem, but if you want the static ip to depend on 
> the
> NAS via which he is connecting, then there is a problem...
> 
> > 
> > Hum.. Why not, even though i don't understand how it can modify the 
> > behaviour
> > of the radius by giving PW_POOL_NAME the same value than PW_NAS_IP_ADDRESS.
> >
> 
> Oops, I should have re-checked rlm_ippool... it checks config_itmes by 
> default,
> which is not correct, you need the request packet... so you will need to 
> change
> the source :/ (sorry about that)
> 
> Changing the radius.h file isn't enough... you need to modify rlm_ippool.c:
> 
> Change /src/modules/rlm_ippool/rlm_ippool.c:
> 
> From:
>   if ((vp = pairfind(request->config_items, PW_POOL_NAME)) != NULL){
> 
> To:
>   if ((vp = pairfind(request->packet->vps, PW_NAS_IP_ADDRESS)) != NULL)
> 
> (instead of PW_NAS_IP_ADDRESS you could set it to PW_POOL_NAME/another name 
> and
> define it in radius.h)
> 
> 
> > 
> > What rules will i have to put in my config file to assume this mods in 
> > Radius
> > sources ?
> 
> All you should do is set the pool-name name in the config file to the
> NAS-IP-Address (or the attribute you set)
> 
> > 
> > > * another thing you can do is wait a few days, then I might have my patch
> > > ready which does that (and some other things)... (I need to re-check some
> > > things before I make it public)
> > 
> > I can do it too.
> 
> Yes, but mine does some other things too... (one of those is allow you to set
> the attribute that should be checked in the config, but this doesn't seem the
> right place to describe it in detail)
> 
> 
> Bram
> 
> - 
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to