Freeradius - 绑定到身份验证地址失败

Freeradius - 绑定到身份验证地址失败

我知道这个主题已经讨论过很多次了,但是在邮件列表上找到的所有解决方案/答案都不适合我(当然这是我的错!)

当我停止服务并运行时,freeradius -xxx消息是:

Thu Nov 26 15:14:25 2015 : Info:  ... adding new socket proxy address * port 47256
Thu Nov 26 15:14:25 2015 : Debug: Listening on authentication address * port 1812
Thu Nov 26 15:14:25 2015 : Debug: Listening on accounting address * port 1813
Thu Nov 26 15:14:25 2015 : Debug: Listening on authentication address 127.0.0.1 port 18120 as server inner-tunnel
Thu Nov 26 15:14:25 2015 : Debug: Listening on proxy address * port 1814
Thu Nov 26 15:14:25 2015 : Info: Ready to process requests.

然后,我启动 radius,当我尝试这样做时,radtest出现此错误:

root@raspberrypi:~# /etc/init.d/freeradius start
[ ok ] Starting FreeRADIUS daemon: freeradius.
root@raspberrypi:~# radtest "John Doe" hello 127.0.0.1 0 testing123
Sending Access-Request of id 126 to 127.0.0.1 port 1812
        User-Name = "John Doe"
        User-Password = "hello"
        NAS-IP-Address = 127.0.1.1
        NAS-Port = 0
        Message-Authenticator = 0x00000000000000000000000000000000
rad_recv: Access-Reject packet from host 127.0.0.1 port 1812, id=126, length=20

查看第二个调试我可以看到:

Thu Nov 26 15:15:06 2015 : Debug: radiusd: #### Opening IP addresses and Ports ####
Thu Nov 26 15:15:06 2015 : Debug: listen {
Thu Nov 26 15:15:06 2015 : Debug:       type = "auth"
Thu Nov 26 15:15:06 2015 : Debug:       ipaddr = *
Thu Nov 26 15:15:06 2015 : Debug:       port = 0
Thu Nov 26 15:15:06 2015 : Error: Failed binding to authentication address * port 1812: Address already in use
Thu Nov 26 15:15:06 2015 : Error: /etc/freeradius/radiusd.conf[240]: Error binding to port for 0.0.0.0 port 1812

我做错了什么?对我来说,端口 1812 繁忙是正常的,因为freeradius正在使用它!

谢谢!

相关内容