我正在运行带有 Poptop 和 radiusclient 的 Centos 6 64 位。当我连接到我的 poptop 服务器时,错误日志中出现此错误:
Feb 21 14:40:42 alpha pptpd[13225]: CTRL: Client **** control connection started
Feb 21 14:40:42 alpha pptpd[13225]: CTRL: Starting call (launching pppd, opening GRE)
Feb 21 14:40:42 alpha pppd[13226]: Warning: can't open options file /root/.ppprc: Permission denied
Feb 21 14:40:42 alpha pppd[13226]: Plugin radius.so loaded.
Feb 21 14:40:42 alpha pppd[13226]: RADIUS plugin initialized.
Feb 21 14:40:42 alpha pppd[13226]: Plugin radattr.so loaded.
Feb 21 14:40:42 alpha pppd[13226]: RADATTR plugin initialized.
Feb 21 14:40:42 alpha pppd[13226]: Plugin /usr/lib64/pptpd/pptpd-logwtmp.so loaded.
Feb 21 14:40:42 alpha pppd[13226]: pppd 2.4.5 started by root, uid 0
Feb 21 14:40:42 alpha pppd[13226]: Using interface ppp0
Feb 21 14:40:42 alpha pppd[13226]: Connect: ppp0 <--> /dev/pts/3
Feb 21 14:40:42 alpha pptpd[13225]: GRE: Bad checksum from pppd.
Feb 21 14:40:42 alpha pppd[13226]: rc_get_ipaddr: couldn't resolve hostname: alpha
Feb 21 14:40:42 alpha pppd[13226]: rc_own_ipaddress: couldn't get own IP address
Feb 21 14:40:42 alpha pppd[13226]: Peer sdf failed CHAP authentication
Feb 21 14:40:42 alpha pppd[13226]: Connection terminated.
Feb 21 14:40:42 alpha pppd[13226]: Exit.
Feb 21 14:40:42 alpha pptpd[13225]: CTRL: Client **** control connection finished
它说 CHAP 身份验证失败,但它已为 freeradius 配置?如果我在调试模式下检查我的 freeradius,它没有显示任何有关传入查询的信息。
知道可能是什么问题吗?
答案1
Feb 21 14:40:42 alpha pppd[13226]: rc_get_ipaddr: couldn't resolve hostname: alpha Feb 21 14:40:42 alpha pppd[13226]: rc_own_ipaddress: couldn't get own IP address
在仅 IPv6 的机器上遇到该问题,请尝试执行:
#ping alpha
如果失败,请验证 /etc/hosts 中 alpha 的 IPv4 匹配项,例如:
127.0.0.1 localhost alpha