免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4808 | 回复: 2
打印 上一主题 下一主题

[vpn] pptp连接不上服务器 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-08-07 15:39 |只看该作者 |倒序浏览
pptp连接不上服务器,从抓包看,好象是协商不成功,能帮忙看下是什么原因吗?谢谢.

[ 本帖最后由 zhyustar 于 2009-8-10 10:08 编辑 ]

pptp.rar

12.43 KB, 下载次数: 32

fail.rar

15.78 KB, 下载次数: 17

重新测试抓的包

options.rar

1.88 KB, 下载次数: 30

服务器pptpd的配置文件

vpn.rar

210 Bytes, 下载次数: 34

客户端pptp的配置文件

论坛徽章:
0
2 [报告]
发表于 2009-08-07 16:56 |只看该作者

回复 #1 zhyustar 的帖子

配置参数问题

放日志上来

论坛徽章:
0
3 [报告]
发表于 2009-08-10 10:04 |只看该作者

回复 #2 kns1024wh 的帖子

我重新抓了包,发现如果服务器打开require-mschap-v2, require-mppe-128选项.客户端就协商不成功.
这是服务器的日志
Aug 10 09:50:47 localhost pptpd[4745]: MGR: Manager process started
Aug 10 09:50:47 localhost pptpd[4745]: MGR: Maximum of 100 connections available
Aug 10 09:51:11 localhost pptpd[4892]: CTRL: Client 192.168.10.1 control connection started
Aug 10 09:51:12 localhost pptpd[4892]: CTRL: Starting call (launching pppd, opening GRE)
Aug 10 09:51:12 localhost pppd[4894]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Aug 10 09:51:12 localhost pppd[4894]: pptpd-logwtmp: $Version$
Aug 10 09:51:12 localhost pppd[4894]: pppd 2.4.4 started by root, uid 0
Aug 10 09:51:12 localhost pppd[4894]: Using interface ppp0
Aug 10 09:51:12 localhost pppd[4894]: Connect: ppp0 <--> /dev/pts/4
Aug 10 09:51:15 localhost pppd[4894]: Refusing MPPE stateful mode offered by peer
Aug 10 09:51:15 localhost pppd[4894]: MPPE required but peer negotiation failed
Aug 10 09:51:15 localhost pppd[4894]: Connection terminated.
Aug 10 09:51:15 localhost pppd[4894]: Connect time 0.1 minutes.
Aug 10 09:51:15 localhost pppd[4894]: Sent 10 bytes, received 21 bytes.
Aug 10 09:51:15 localhost pppd[4894]: Exit.
这是客户端的日志
Jan 1 00:00:56 daemon notice pppd[282]: pppd 2.4.4 started by admin, uid 0  
Jan 1 00:00:56 daemon info pppd[282]: Using interface ppp0  
Jan 1 00:00:56 daemon notice pppd[282]: Connect: ppp0 <--> /dev/ttyp0  
Jan 1 00:00:56 daemon notice pptp[287]: anon log[main:pptp.c:276]: The synchronous pptp option is NOT activated  
Jan 1 00:00:56 daemon notice pptp[289]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'  
Jan 1 00:00:56 daemon notice pptp[289]: anon log[ctrlp_disp:pptp_ctrl.c:738]: Received Start Control Connection Reply  
Jan 1 00:00:56 daemon notice pptp[289]: anon log[ctrlp_disp:pptp_ctrl.c:772]: Client connection established.  
Jan 1 00:00:57 daemon warn pppd[282]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access  
Jan 1 00:00:57 daemon notice pptp[289]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'  
Jan 1 00:00:57 daemon notice pptp[289]: anon log[ctrlp_disp:pptp_ctrl.c:857]: Received Outgoing Call Reply.  
Jan 1 00:00:57 daemon notice pptp[289]: anon log[ctrlp_disp:pptp_ctrl.c:896]: Outgoing call established (call ID 0, peer's call ID 0).  
Jan 1 00:01:00 daemon warn pppd[282]: Warning - secret file /etc/ppp/chap-secrets has world and/or group access  
Jan 1 00:01:00 daemon warn pppd[282]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access  
Jan 1 00:01:00 daemon warn pppd[282]: Warning - secret file /etc/ppp/chap-secrets has world and/or group access  
Jan 1 00:01:00 daemon notice pppd[282]: CHAP authentication succeeded  
Jan 1 00:01:00 daemon info pppd[282]: LCP terminated by peer (MPPE required but peer negotiation failed)  
Jan 1 00:01:00 daemon notice pptp[289]: anon log[pptp_read_some:pptp_ctrl.c:543]: read returned zero, peer has closed  
Jan 1 00:01:00 daemon notice pptp[289]: anon log[callmgr_main:pptp_callmgr.c:255]: Closing connection (shutdown)  
Jan 1 00:01:00 daemon notice pptp[289]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'  
Jan 1 00:01:00 daemon notice pptp[289]: anon log[pptp_read_some:pptp_ctrl.c:543]: read returned zero, peer has closed  
Jan 1 00:01:00 daemon notice pptp[289]: anon log[call_callback:pptp_callmgr.c:78]: Closing connection (call state)  
Jan 1 00:01:00 daemon notice pppd[282]: Modem hangup  
服务器是ppp2.4.4-2 pptpd-1.3.4-1
客户端是ppp2.4.4 pptp-1.7.1
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP