无法使用pptp连接vpn

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
mking007
帖子: 26
注册时间: 2006-02-06 14:09

无法使用pptp连接vpn

#1

帖子 mking007 »

我的系统是ubuntu 14.04 x64,使用nm-manager连接以及pptpsetup进行连接都不成功
在同一个局域网内用windowx机器拨号连接pptp vpn成功,但是在我的机器上就不行
下面是syslog的记录(分别为使用nm-manager和pptpsetup)


Sep 17 18:36:28 ubuntu NetworkManager[1247]: <info> Starting VPN service 'pptp'...
Sep 17 18:36:28 ubuntu NetworkManager[1247]: <info> VPN service 'pptp' started (org.freedesktop.NetworkManager.pptp), PID 12688
Sep 17 18:36:28 ubuntu NetworkManager[1247]: <info> VPN service 'pptp' appeared; activating connections
Sep 17 18:36:28 ubuntu NetworkManager[1247]: <info> VPN plugin state changed: init (1)
Sep 17 18:36:28 ubuntu NetworkManager[1247]: <info> VPN plugin state changed: starting (3)
Sep 17 18:36:28 ubuntu NetworkManager[1247]: <info> VPN connection 'VPN connection 1' (Connect) reply received.
Sep 17 18:36:28 ubuntu pppd[12692]: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so loaded.
Sep 17 18:36:28 ubuntu pppd[12692]: pppd 2.4.5 started by root, uid 0
Sep 17 18:36:28 ubuntu pppd[12692]: Using interface ppp0
Sep 17 18:36:28 ubuntu pppd[12692]: Connect: ppp0 <--> /dev/pts/4
Sep 17 18:36:28 ubuntu pptp[12695]: nm-pptp-service-12688 log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Sep 17 18:36:28 ubuntu NetworkManager[1247]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Sep 17 18:36:28 ubuntu NetworkManager[1247]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
Sep 17 18:36:28 ubuntu NetworkManager[1247]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring...
Sep 17 18:36:28 ubuntu pptp[12710]: nm-pptp-service-12688 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Sep 17 18:36:28 ubuntu pptp[12710]: nm-pptp-service-12688 log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Sep 17 18:36:28 ubuntu pptp[12710]: nm-pptp-service-12688 log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Sep 17 18:36:29 ubuntu pptp[12710]: nm-pptp-service-12688 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Sep 17 18:36:29 ubuntu pptp[12710]: nm-pptp-service-12688 log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
Sep 17 18:36:29 ubuntu pptp[12710]: nm-pptp-service-12688 log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 44160).
Sep 17 18:36:59 ubuntu pppd[12692]: LCP: timeout sending Config-Requests
Sep 17 18:36:59 ubuntu pptp[12710]: nm-pptp-service-12688 log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed
Sep 17 18:36:59 ubuntu pptp[12710]: nm-pptp-service-12688 log[callmgr_main:pptp_callmgr.c:258]: Closing connection (shutdown)
Sep 17 18:36:59 ubuntu pptp[12710]: nm-pptp-service-12688 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Sep 17 18:36:59 ubuntu pptp[12710]: nm-pptp-service-12688 log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed
Sep 17 18:36:59 ubuntu pptp[12710]: nm-pptp-service-12688 log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
Sep 17 18:36:59 ubuntu pppd[12692]: Modem hangup
Sep 17 18:36:59 ubuntu pppd[12692]: Connection terminated.
Sep 17 18:36:59 ubuntu NetworkManager[1247]: <warn> VPN plugin failed: 1
Sep 17 18:36:59 ubuntu NetworkManager[1247]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Sep 17 18:36:59 ubuntu pppd[12692]: Exit.
Sep 17 18:36:59 ubuntu NetworkManager[1247]: <warn> VPN plugin failed: 1
Sep 17 18:36:59 ubuntu NetworkManager[1247]: <warn> VPN plugin failed: 1
Sep 17 18:36:59 ubuntu NetworkManager[1247]: <info> VPN plugin state changed: stopped (6)
Sep 17 18:36:59 ubuntu NetworkManager[1247]: <info> VPN plugin state change reason: 0
Sep 17 18:36:59 ubuntu NetworkManager[1247]: <info> Policy set 'Wired connection 1' (eth0) as default for IPv4 routing and DNS.
Sep 17 18:36:59 ubuntu NetworkManager[1247]: <warn> error disconnecting VPN: Could not process the request because no VPN connection was active.
Sep 17 18:37:05 ubuntu NetworkManager[1247]: <info> VPN service 'pptp' disappeared


Sep 17 18:48:18 ubuntu pppd[15310]: pppd 2.4.5 started by ***, uid 0
Sep 17 18:48:18 ubuntu pppd[15310]: Using interface ppp0
Sep 17 18:48:18 ubuntu pppd[15310]: Connect: ppp0 <--> /dev/pts/4
Sep 17 18:48:18 ubuntu NetworkManager[1247]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Sep 17 18:48:18 ubuntu NetworkManager[1247]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
Sep 17 18:48:18 ubuntu NetworkManager[1247]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring...
Sep 17 18:48:18 ubuntu pptp[15313]: anon log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Sep 17 18:48:18 ubuntu pptp[15327]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Sep 17 18:48:19 ubuntu pptp[15327]: anon log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Sep 17 18:48:19 ubuntu pptp[15327]: anon log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Sep 17 18:48:19 ubuntu pptp[15327]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Sep 17 18:48:19 ubuntu pptp[15327]: anon log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
Sep 17 18:48:19 ubuntu pptp[15327]: anon log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 40320).
Sep 17 18:48:49 ubuntu pppd[15310]: LCP: timeout sending Config-Requests
Sep 17 18:48:50 ubuntu pptp[15327]: anon log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed
Sep 17 18:48:50 ubuntu pptp[15327]: anon log[callmgr_main:pptp_callmgr.c:258]: Closing connection (shutdown)
Sep 17 18:48:50 ubuntu pptp[15327]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Sep 17 18:48:50 ubuntu pptp[15327]: anon log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed
Sep 17 18:48:50 ubuntu pptp[15327]: anon log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
Sep 17 18:48:50 ubuntu pppd[15310]: Modem hangup
Sep 17 18:48:50 ubuntu pppd[15310]: Connection terminated.
Sep 17 18:48:50 ubuntu NetworkManager[1247]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Sep 17 18:48:50 ubuntu pppd[15310]: Exit.
头像
oneleaf
论坛管理员
帖子: 10455
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

Re: 无法使用pptp连接vpn

#2

帖子 oneleaf »

"LCP: timeout sending Config-Requests" 协议没有穿透,和路由器有关,只能一条线路可以访问出去。一般推荐l2tp代替pptp。
mking007
帖子: 26
注册时间: 2006-02-06 14:09

Re: 无法使用pptp连接vpn

#3

帖子 mking007 »

window机器也是使用的pptp连接怎么就能成功呢?
头像
oneleaf
论坛管理员
帖子: 10455
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

Re: 无法使用pptp连接vpn

#4

帖子 oneleaf »

将windows的机器断开pptp连接,等一会,然后再试ubuntu。
mking007
帖子: 26
注册时间: 2006-02-06 14:09

Re: 无法使用pptp连接vpn

#5

帖子 mking007 »

查了许多资料,Linux下(包括android)好像只能支持主动LCP连接而不能支持被动LCP连接,而windows能使用被动LCP连接。使用主动LCP连接连接路由器必须支持vpn穿透(不管是pptp还是l2tp).
openvpn好像没有这个限制。
没办法,只能换路由器。换了一个支持vpn穿透的路由器立马解决问题
头像
oneleaf
论坛管理员
帖子: 10455
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

Re: 无法使用pptp连接vpn

#6

帖子 oneleaf »

不错。
回复