找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 7029|回复: 3

[其它] [已解决]求助vpn登录不了 rc_send_server: no reply from RADIUS server unknown:18

[复制链接]
发表于 2013-2-28 16:25:06 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
本帖最后由 zhumeng99 于 2013-2-28 17:42 编辑

我搭建了一个vpn环境pptp/l2tp+freeradius-client通过radiusmanager验证,
CentOS5.8
pptp-1.3.4
freeradius-client-1.1.6
freeradius-server-2.1.8
radiusmanager-3.8
现在登录不了vpn,
vpn服务器的日志如下:
#tail -f /var/log/messages

May 18 11:50:54 vpn3 pppd[3688]: Using interface ppp0
May 18 11:50:54 vpn3 pppd[3688]: Connect: ppp0 <--> /dev/pts/2
May 18 11:50:54 vpn3 pptpd[3687]: CTRL: Ignored a SET LINK INFO packet with real ACCMs!
May 18 11:51:40 vpn3 pppd[3688]: rc_ip_hostname: couldn't look up host by addr: %lX
May 18 11:51:40 vpn3 pppd[3688]: rc_send_server: no reply from RADIUS server unknown:1812

May 18 11:51:40 vpn3 pppd[3688]: Peer yxf001 failed CHAP authentication
May 18 11:51:40 vpn3 pppd[3688]: Modem hangup
May 18 11:51:40 vpn3 pppd[3688]: Connection terminated.
May 18 11:51:40 vpn3 pppd[3688]: Exit.
May 18 11:51:40 vpn3 pptpd[3687]: CTRL: Client 192.168.0.110 control connection finished

May 18 12:35:28 vpn3 pptpd[19222]: CTRL: Client 192.168.0.110 control connection started
May 18 12:35:28 vpn3 pptpd[19222]: CTRL: Starting call (launching pppd, opening GRE)
May 18 12:35:28 vpn3 pppd[19223]: Plugin /usr/lib/pppd/2.4.4/radius.so loaded.
May 18 12:35:28 vpn3 pppd[19223]: RADIUS plugin initialized.
May 18 12:35:28 vpn3 pppd[19223]: Plugin /usr/lib/pppd/2.4.4/radattr.so loaded.
May 18 12:35:28 vpn3 pppd[19223]: RADATTR plugin initialized.
May 18 12:35:28 vpn3 pppd[19223]: pppd options in effect:
May 18 12:35:28 vpn3 pppd[19223]: debug                # (from /etc/options.pptpd)
May 18 12:35:28 vpn3 pppd[19223]: idle 1800                # (from /etc/options.pptpd)
May 18 12:35:28 vpn3 pppd[19223]: nologfd                # (from /etc/options.pptpd)
May 18 12:35:28 vpn3 pppd[19223]: dump                # (from /etc/options.pptpd)
May 18 12:35:28 vpn3 pppd[19223]: plugin /usr/lib/pppd/2.4.4/radius.so                # (from /etc/options.pptpd)
May 18 12:35:28 vpn3 pppd[19223]: plugin /usr/lib/pppd/2.4.4/radattr.so                # (from /etc/options.pptpd)
May 18 12:35:28 vpn3 pppd[19223]: auth                # (from /etc/options.pptpd)
May 18 12:35:28 vpn3 pppd[19223]: name pptpd                # (from /etc/options.pptpd)
May 18 12:35:28 vpn3 pppd[19223]: radius-config-file /usr/local/etc/radiusclient/radiusclient.conf                # (from /etc/options.pptpd)
May 18 12:35:28 vpn3 pppd[19223]: 115200                # (from command line)
May 18 12:35:28 vpn3 pppd[19223]: lock                # (from /etc/options.pptpd)
May 18 12:35:28 vpn3 pppd[19223]: local                # (from command line)
May 18 12:35:28 vpn3 pppd[19223]: noaccomp                # (from /etc/options.pptpd)
May 18 12:35:28 vpn3 pppd[19223]: lcp-echo-failure 8                # (from /etc/options.pptpd)
May 18 12:35:28 vpn3 pppd[19223]: lcp-echo-interval 60                # (from /etc/options.pptpd)
May 18 12:35:28 vpn3 pppd[19223]: novj                # (from /etc/options.pptpd)
May 18 12:35:28 vpn3 pppd[19223]: novjccomp                # (from /etc/options.pptpd)
May 18 12:35:28 vpn3 pppd[19223]: ipparam 192.168.0.110                # (from command line)
May 18 12:35:28 vpn3 pppd[19223]: ms-dns xxx # [don't know how to print value]                # (from /etc/options.pptpd)
May 18 12:35:28 vpn3 pppd[19223]: ms-wins xxx # [don't know how to print value]                # (from /etc/options.pptpd)
May 18 12:35:28 vpn3 pppd[19223]: proxyarp                # (from /etc/options.pptpd)
May 18 12:35:28 vpn3 pppd[19223]: 10.3.0.1:10.3.0.2                # (from command line)
May 18 12:35:28 vpn3 pppd[19223]: nobsdcomp                # (from /etc/options.pptpd)
May 18 12:35:28 vpn3 pppd[19223]: pppd 2.4.4 started by root, uid 0
May 18 12:35:28 vpn3 pppd[19223]: Using interface ppp0
May 18 12:35:28 vpn3 pppd[19223]: Connect: ppp0 <--> /dev/pts/2
May 18 12:35:28 vpn3 pptpd[19222]: CTRL: Ignored a SET LINK INFO packet with real ACCMs!
May 18 12:36:14 vpn3 pppd[19223]: rc_ip_hostname: couldn't look up host by addr: %lX
May 18 12:36:14 vpn3 pppd[19223]: rc_send_server: no reply from RADIUS server unknown:1812
May 18 12:36:14 vpn3 pppd[19223]: Peer yxf001 failed CHAP authentication
May 18 12:36:14 vpn3 pppd[19223]: Modem hangup
May 18 12:36:14 vpn3 pppd[19223]: Connection terminated.
May 18 12:36:14 vpn3 pppd[19223]: Exit.
May 18 12:36:14 vpn3 pptpd[19222]: CTRL: Client 192.168.0.110 control connection finished


vpn:192.168.0.123(虚拟机)
radius:192.168.0.119(虚拟机)
本机:192.168.0.110
用本机连接192.168.0.123,出错

求助啊

123749dx8825b4e44g8v2g.jpg
routeros
 楼主| 发表于 2013-2-28 16:25:58 | 显示全部楼层
求助啊!.............................
routeros
回复

使用道具 举报

 楼主| 发表于 2013-2-28 17:41:21 | 显示全部楼层
已解决!

分享一下解决方法!
方法如下:
在vpn服务器输入一下防火墙规则!
  1. iptables -A OUTPUT -d 192.168.0.119 -p udp -m udp --dport 1812 -j ACCEPT
  2. iptables -A OUTPUT -d 192.168.0.119 -p udp -m udp --dport 1813 -j ACCEPT
复制代码
routeros
回复

使用道具 举报

发表于 2013-12-2 17:41:09 | 显示全部楼层
感谢楼主分享此问题解决方案
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-11-6 13:55 , Processed in 0.076149 second(s), 7 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表