NAS Port always 0
Tom Murphy
012vyrk02 at sneakemail.com
Mon Dec 4 15:34:02 CET 2006
Hi,
I'm using a linux box as the NAS. PPP connections come in and get
fed to radiusclient which in turn contacts a FreeRADIUS 1.1.3 server.
Some of the PPP connections are dynamic, most are static. I did set up
ippool properly in FreeRADIUS, but it dishes out only 2 IP addresses.
Doing some searching around, I discovered this is because the Nas-Port
is always 0 (as evidenced by the radius log files). So it will only
send those two addresses out because it "thinks" the same user is
logging on each time?
Is there a way to tell the pppd-radius plugin, or, radiusclient to
use a different "NAS Port" when it sends the RADIUS authentication
requests? The pppd-radius man page says I can use "map-to-ifname" or
"map-to-ttyname" (I'm using PPP v2.4.4b1). However, looking at the
source code for pppd-radius, in radius.c it appears the NAS Port is
hardcoded as zero. Would it then, be up to radiusclient to send the
NAS Port? It appears to only have facility for setting NAS Port from
the tty, and that's not an option for me.
Has anyone else had this similar problem? I need to get FreeRADIUS
to actually dish out more than the same 2 IP addresses.
Regards,
Tom
More information about the Freeradius-Users
mailing list