Hi, I am using FreeRadius Version 2.1.12 on OpenSuse 12.2. I have looked at several posting about the same type of problem without finding the answer to my failure. Problem described below. First use of radiusd -X resulted in /var/run/radiusd not found. Created : mkdir /var/run/radiusd Now radiusd -X seems to work; see attachment "radiusd.txt" for the output. First line in "/etc/raddb/users" is: testing Cleartext-Password := "password" Using radtest failed: linux-vdis:/etc/raddb # radtest testing password localhost 0 testing123 radclient:: Failed to find IP address for linux-vdis.site radclient: Nothing to send. Pinging localhost works: linux-vdis:/etc/raddb # ping localhost PING localhost (127.0.0.1) 56(84) bytes of data. 64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.065 ms Is the missing /var/run/radiusd an indication that the installation is incorrect? FreeRadius was installed using Yast2 software manager. /Staffan
On 12.03.2013 17:05, Staffan Meijer wrote:
Listening on authentication interface eth0 address * port 1812 Listening on accounting address * port 1813 Listening on command file /var/run/radiusd/radiusd.sock Listening on authentication address 127.0.0.1 port 18120 as server inner-tunnel Listening on proxy address * port 1814
freeradius is listening on eth0 port 1812, not on all interfaces. so sending packets to localhost won't work. netstat -puln | grep radius will show exactly where freeradius is listening if really. Fix your listen section and it should work Olivier -- Olivier Beytrison Network & Security Engineer, HES-SO Fribourg Mail: olivier@heliosnet.org
I uncommented the eth0 line in the configuration file when radtest did not work with the original. Using the original configuration file I get; Listening on authentication address * port 1812 and linux-vdis:/etc/raddb # radtest testing password localhost 0 testing123 radclient:: Failed to find IP address for linux-vdis.site radclient: Nothing to send. /Staffan
--
Olivier Beytrison Network & Security Engineer, HES-SO Fribourg Mail: olivier@heliosnet.org - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Le mardi 12 mars 2013 à 18:08 +0100, Staffan Meijer a écrit :
I uncommented the eth0 line in the configuration file when radtest did not work with the original.
Using the original configuration file I get; Listening on authentication address * port 1812
and
linux-vdis:/etc/raddb # radtest testing password localhost 0 testing123 radclient:: Failed to find IP address for linux-vdis.site
That's a DNS issue, not a Freeradius issue.
radclient: Nothing to send.
/Staffan
--
Olivier Beytrison Network & Security Engineer, HES-SO Fribourg Mail: olivier@heliosnet.org - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On 12.03.2013 18:08, Staffan Meijer wrote:
I uncommented the eth0 line in the configuration file when radtest did not work with the original.
Using the original configuration file I get; Listening on authentication address * port 1812
and
linux-vdis:/etc/raddb # radtest testing password localhost 0 testing123 radclient:: Failed to find IP address for linux-vdis.site radclient: Nothing to send.
your server's name resolution configuration is somewhere wrong. if you replace localhost by 127.0.0.1 it should work. fix your /etc/host, but this is beyond the scope of this list. Olivier -- Olivier Beytrison Network & Security Engineer, HES-SO Fribourg Mail: olivier@heliosnet.org
Thanks! Added line to /etc/hosts: 192.168.1.106 linux-vdis.site linux-vdis and then radtest works. /Staffan
participants (3)
-
Fred MAISON -
Olivier Beytrison -
Staffan Meijer