help-gnu-radius
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gnu-radius] NAS-Port-ID


From: Sergey Poznyakoff
Subject: Re: [Help-gnu-radius] NAS-Port-ID
Date: Wed, 03 May 2006 10:20:12 EEST

Tomoyasu Maitani <address@hidden> wrote:

> Is it possible to change the NAS-Port-ID number
> 1002 to 0, 1003 to 1, 1004 to 2 ... on the GNU Radius?

Yes, please see
http://www.gnu.org/software/radius/manual/html_node/radius_109.html#SEC199

However, in your case you probably won't need rewriting at all. If you
are sure the NAS returns contiguous port numbers, all you need to do is
recalculate start IP so that ading 1002 to it produces right number:

$ radiusd -mt
** TEST SHELL **
(radiusd) r inet_ntoa(192.168.1.1+1-1002)
192.167.253.24


So, setting your reply pairs to

 Framed-IP-Address = 192.167.253.24+,
         Framed-IP-Netmask = 255.255.255.255

will do the job.

Regards,
Sergey
         




reply via email to

[Prev in Thread] Current Thread [Next in Thread]