NAS Client

Shawky Skaff shawkys at ivox.com.au
Tue May 8 03:08:06 CEST 2012


My etc/hosts file contains the following

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain localhost
27.34.225.33    radius radius
::1             localhost6.localdomain6 localhost6

When I run radiusd -X and radtest on another screen, on the radiusd -X debug it doesn't print anything, the last lines say ready to process requests, that's it

My iptables have been turned off, so don't think it's firewall

-----Original Message-----
From: freeradius-users-bounces+shawkys=ivox.com.au at lists.freeradius.org [mailto:freeradius-users-bounces+shawkys=ivox.com.au at lists.freeradius.org] On Behalf Of Fajar A. Nugraha
Sent: Tuesday, 8 May 2012 10:45 AM
To: FreeRadius users mailing list
Subject: Re: NAS Client

On Tue, May 8, 2012 at 6:50 AM, Shawky Skaff <shawkys at ivox.com.au> wrote:
> Thanks for that, debug is now reading the client as per below.
>
> rlm_sql (sql): Read entry 
> nasname=27.34.225.253,shortname=cisco7301,secret=XXXXXX
> rlm_sql (sql): Adding client 27.34.225.253 (cisco7301, server=<none>) 
> to clients list
>
> However still don't get any output when I run radtest from another 
> window. radtest eftel-test test123 27.34.225.253 1812 testing123. What 
> I do get is below
>
> [root at radius raddb]# radtest eftel-test test123 27.34.225.253 1812 
> testing123 Sending Access-Request of id 156 to 27.34.225.253 port 1812
>        User-Name = "eftel-test"
>        User-Password = "test123"
>        NAS-IP-Address = 27.34.225.33
>        NAS-Port = 1812
> Sending Access-Request of id 156 to 27.34.225.253 port 1812
>        User-Name = "eftel-test"
>        User-Password = "test123"
>        NAS-IP-Address = 27.34.225.33
>        NAS-Port = 1812
> Sending Access-Request of id 156 to 27.34.225.253 port 1812
>        User-Name = "eftel-test"
>        User-Password = "test123"
>        NAS-IP-Address = 27.34.225.33
>        NAS-Port = 1812
> radclient: no response from server for ID 156 socket 3
>
> What I don't understand is it's saying the NAS-IP-Address = 27.34.225.33, shouldn't this be 27.34.225.253? If so, how do I fix it?

NAS-IP-Address is whatever the client decides to send. With radclient/radtest, it's whatever the IP address that resolves to the client's hostname (usually in client's /etc/hosts).

What does the debug log on the server says when the client sends those packets? Does it say unknown client, or it doesn't print anything (in other words, it might be blocked by firewall or something)?

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


More information about the Freeradius-Users mailing list