radiusd -X
调试提示
Failed binding to authentication address * port 1812: Address already in use
/usr/local/etc/raddb/radiusd.conf[240]: Error binding to port for 0.0.0.0 port 1812
1812端口被占用
lsof -i:1812
radiusd 5507 root 10u IPv4 17199 0t0 UDP *:radius
kill 5507
在继续radiusd-X调试
Listening on authentication address * port 1812
Listening on accounting address * port 1813
Listening on command file /usr/local/var/run/radiusd/radiusd.sock
Listening on proxy address * port 1814
Ready to process requests.
正常启动,另开一个窗口
radtest test test localhost 1812 testing123
Sending Access-Request of id 228 to 127.0.0.1 port 1812
User-Name = "test"
User-Password = "test"
NAS-IP-Address = 127.0.0.1
NAS-Port = 1812
radclient: Failed to send packet for ID 228:
Sending Access-Request of id 228 to 127.0.0.1 port 1812
User-Name = "test"
User-Password = "test"
NAS-IP-Address = 127.0.0.1
NAS-Port = 1812
radclient: Failed to send packet for ID 228:
Sending Access-Request of id 228 to 127.0.0.1 port 1812
User-Name = "test"
User-Password = "test"
NAS-IP-Address = 127.0.0.1
NAS-Port = 1812
radclient: Failed to send packet for ID 228:
radclient: no response from server for ID 228 socket 3