Re: NAS Port always 0

This is a discussion on Re: NAS Port always 0 within the FreeRADIUS Users forums, part of the Networking and Network Related category; Tom Murphy wrote: > Hi, > > I'm using a linux box as the NAS. PPP connections come in ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-06-2006
Phil Mayers
 
Posts: n/a
Default Re: NAS Port always 0

Tom Murphy wrote:
> 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?


Certainly if the NAS-Port isn't being set correctly, ippool won't work.

>
> 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


The code I'm looking at (both the 2.4.3 and CVS) does not do anything of
the sort. The "radius_chap_verify" and "radius_pap_auth" functions both set:

rstate.client_port = get_client_port(portnumap ? devnam : ifname);

....and that function either strips the digits off interface formatted
names such as "pppXYZ" and returns that or calls rc_map2id which is a
radiusclient function that reads /etc/radiusclient/port-id-map but only
for TTYs.

I run a couple of multi-hundred-client servers off ppp-2.4.3 with the
bundled radius plugin, and it works just fine. I didn't have to change
the defaults.

> NAS Port? It appears to only have facility for setting NAS Port from
> the tty, and that's not an option for me.


Why?

It seems the problem lies with your local installation. I'm not sure how
you troubleshoot it further - are you sure you're using a recent ppp?
-
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 10:48 AM.


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