所以问题基本上是,在 Ubuntu 14.04 中连接我办公室 VPN 的任何尝试都会失败。
没有特殊设置,但值得一提的是它是 PPTP。
我可以轻松 ping 服务器。我不确定我可以在这里提供什么样的信息来使这个问题更容易诊断,但请告诉我。
输出如下:
Sep 29 17:24:27 pedri-home NetworkManager[912]: <info> Starting VPN service 'pptp'...
Sep 29 17:24:27 pedri-home NetworkManager[912]: <info> VPN service 'pptp' started (org.freedesktop.NetworkManager.pptp), PID 18760
Sep 29 17:24:27 pedri-home NetworkManager[912]: <info> VPN service 'pptp' appeared; activating connections
Sep 29 17:24:27 pedri-home NetworkManager[912]: <info> VPN plugin state changed: init (1)
Sep 29 17:24:27 pedri-home NetworkManager[912]: <info> VPN plugin state changed: starting (3)
Sep 29 17:24:27 pedri-home pppd[18764]: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so loaded.
Sep 29 17:24:27 pedri-home NetworkManager[912]: <info> VPN connection 'Test2' (Connect) reply received.
Sep 29 17:24:27 pedri-home pppd[18764]: pppd 2.4.5 started by root, uid 0
Sep 29 17:24:27 pedri-home pppd[18764]: Using interface ppp0
Sep 29 17:24:27 pedri-home pppd[18764]: Connect: ppp0 <--> /dev/pts/26
Sep 29 17:24:27 pedri-home pptp[18767]: nm-pptp-service-18760 log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Sep 29 17:24:27 pedri-home NetworkManager[912]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Sep 29 17:24:27 pedri-home NetworkManager[912]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
Sep 29 17:24:27 pedri-home NetworkManager[912]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring...
Sep 29 17:24:28 pedri-home pptp[18780]: nm-pptp-service-18760 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Sep 29 17:24:29 pedri-home pptp[18780]: nm-pptp-service-18760 log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Sep 29 17:24:29 pedri-home pptp[18780]: nm-pptp-service-18760 log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Sep 29 17:24:29 pedri-home pptp[18780]: nm-pptp-service-18760 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Sep 29 17:24:29 pedri-home pptp[18780]: nm-pptp-service-18760 log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
Sep 29 17:24:29 pedri-home pptp[18780]: nm-pptp-service-18760 log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 150).
Sep 29 17:24:58 pedri-home pppd[18764]: LCP: timeout sending Config-Requests
Sep 29 17:24:58 pedri-home pppd[18764]: Connection terminated.
Sep 29 17:24:58 pedri-home NetworkManager[912]: <warn> VPN plugin failed: 1
Sep 29 17:24:58 pedri-home pppd[18764]: Modem hangup
Sep 29 17:24:58 pedri-home pptp[18767]: nm-pptp-service-18760 warn[decaps_hdlc:pptp_gre.c:204]: short read (-1): Input/output error
Sep 29 17:24:58 pedri-home pptp[18767]: nm-pptp-service-18760 warn[decaps_hdlc:pptp_gre.c:216]: pppd may have shutdown, see pppd log
Sep 29 17:24:58 pedri-home pppd[18764]: Exit.
Sep 29 17:24:58 pedri-home NetworkManager[912]: message repeated 2 times: [ <warn> VPN plugin failed: 1]
Sep 29 17:24:58 pedri-home NetworkManager[912]: <info> VPN plugin state changed: stopped (6)
Sep 29 17:24:58 pedri-home NetworkManager[912]: <info> VPN plugin state change reason: 0
Sep 29 17:24:58 pedri-home NetworkManager[912]: <info> Policy set 'Wired connection 1' (eth0) as default for IPv4 routing and DNS.
Sep 29 17:24:58 pedri-home pptp[18780]: nm-pptp-service-18760 log[callmgr_main:pptp_callmgr.c:234]: Closing connection (unhandled)
Sep 29 17:24:58 pedri-home pptp[18780]: nm-pptp-service-18760 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Sep 29 17:24:58 pedri-home pptp[18780]: nm-pptp-service-18760 log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
Sep 29 17:24:58 pedri-home NetworkManager[912]: <warn> error disconnecting VPN: Could not process the request because no VPN connection was active.
Sep 29 17:24:58 pedri-home NetworkManager[912]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Sep 29 17:25:03 pedri-home NetworkManager[912]: <info> VPN service 'pptp' disappeared
答案1
我在尝试通过家庭 ADSL 连接设置 VPN 时也遇到了类似的问题。我成功做到的一件事是将 PPPoE 连接的 MTU 更改为“手动”,并将其设置为 1432。它仍然会不时随机掉线,但可以坚持足够长的时间来完成一些工作……