Bluehost.com Web Hosting $6.95

Re: providing IP address depending NAS origin

This is a discussion on Re: providing IP address depending NAS origin within the FreeRADIUS Users forums, part of the Networking and Network Related category; > The second. Your sum up is very clear ;-) AFAIK there is no easy way for the second... if it ...


Go Back   Usenet Forums > Networking and Network Related > FreeRADIUS Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-29-2005
Bram
 
Posts: n/a
Default Re: providing IP address depending NAS origin


> 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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:49 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0