NAS Client

Fajar A. Nugraha list at fajar.net
Tue May 8 02:44:58 CEST 2012


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


More information about the Freeradius-Users mailing list