尝试连接到 Windows VPN

尝试连接到 Windows VPN

我对 VPN 还不熟悉,我认为学习如何在 ubuntu 上操作会是一个很好的开始,我使用的是网络管理器中的 pptd。每当我尝试连接到使用 Windows 服务器的 VPN 时,我都会收到“需要身份验证”的提示,并且无法连接。在 PPTP 高级选项下,我选中了 MSCHAP MSCHAPV2 以及 MPPE,在安全性下,我选择了 128 位。为了获取更多信息,我检查了系统日志,以下是我尝试连接时系统返回的信息。

May 27 15:49:29 austin-ubuntu NetworkManager[973]: <info> Starting VPN service 'pptp'...
May 27 15:49:29 austin-ubuntu NetworkManager[973]: <info> VPN service 'pptp' started (org.freedesktop.NetworkManager.pptp), PID 7139
May 27 15:49:29 austin-ubuntu NetworkManager[973]: <info> VPN service 'pptp' appeared; activating connections
May 27 15:49:29 austin-ubuntu NetworkManager[973]: <info> VPN plugin state changed: init (1)
May 27 15:49:29 austin-ubuntu NetworkManager[973]: <info> VPN plugin state changed: starting (3)
May 27 15:49:30 austin-ubuntu NetworkManager[973]: <info> VPN connection 'Help Desk' (Connect) reply received.
May 27 15:49:30 austin-ubuntu pppd[7143]: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so loaded.
May 27 15:49:30 austin-ubuntu pppd[7143]: pppd 2.4.5 started by root, uid 0
May 27 15:49:30 austin-ubuntu pppd[7143]: Using interface ppp0
May 27 15:49:30 austin-ubuntu pppd[7143]: Connect: ppp0 <--> /dev/pts/2
May 27 15:49:30 austin-ubuntu NetworkManager[973]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
May 27 15:49:30 austin-ubuntu NetworkManager[973]:    SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
May 27 15:49:30 austin-ubuntu pptp[7146]: nm-pptp-service-7139 log[main:pptp.c:314]: The synchronous pptp option is NOT activated
May 27 15:49:30 austin-ubuntu pptp[7154]: nm-pptp-service-7139 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
May 27 15:49:30 austin-ubuntu pptp[7154]: nm-pptp-service-7139 log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
May 27 15:49:30 austin-ubuntu pptp[7154]: nm-pptp-service-7139 log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
May 27 15:49:31 austin-ubuntu pptp[7154]: nm-pptp-service-7139 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
May 27 15:49:31 austin-ubuntu pptp[7154]: nm-pptp-service-7139 log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
May 27 15:49:31 austin-ubuntu pptp[7154]: nm-pptp-service-7139 log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 60546).
May 27 15:49:31 austin-ubuntu pptp[7154]: nm-pptp-service-7139 log[ctrlp_disp:pptp_ctrl.c:950]: PPTP_SET_LINK_INFO received from peer_callid 0
May 27 15:49:31 austin-ubuntu pptp[7154]: nm-pptp-service-7139 log[ctrlp_disp:pptp_ctrl.c:953]:   send_accm is 00000000, recv_accm is FFFFFFFF
May 27 15:49:31 austin-ubuntu pptp[7154]: nm-pptp-service-7139 warn[ctrlp_disp:pptp_ctrl.c:956]: Non-zero Async Control Character Maps are not supported!
May 27 15:49:31 austin-ubuntu pppd[7143]: MS-CHAP authentication failed: E=649 No dialin permission
May 27 15:49:31 austin-ubuntu pppd[7143]: CHAP authentication failed
May 27 15:49:31 austin-ubuntu pptp[7154]: nm-pptp-service-7139 log[ctrlp_disp:pptp_ctrl.c:950]: PPTP_SET_LINK_INFO received from peer_callid 0
May 27 15:49:31 austin-ubuntu pptp[7154]: nm-pptp-service-7139 log[ctrlp_disp:pptp_ctrl.c:953]:   send_accm is FFFFFFFF, recv_accm is FFFFFFFF
May 27 15:49:31 austin-ubuntu pptp[7154]: nm-pptp-service-7139 warn[ctrlp_disp:pptp_ctrl.c:956]: Non-zero Async Control Character Maps are not supported!
May 27 15:49:31 austin-ubuntu pppd[7143]: Connection terminated.
May 27 15:49:31 austin-ubuntu avahi-daemon[668]: Withdrawing workstation service for ppp0.
May 27 15:49:31 austin-ubuntu NetworkManager[973]: <warn> VPN plugin failed: 1
May 27 15:49:31 austin-ubuntu NetworkManager[973]:    SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
May 27 15:49:31 austin-ubuntu pptp[7146]: nm-pptp-service-7139 warn[decaps_hdlc:pptp_gre.c:204]: short read (-1): Input/output error
May 27 15:49:31 austin-ubuntu pptp[7146]: nm-pptp-service-7139 warn[decaps_hdlc:pptp_gre.c:216]: pppd may have shutdown, see pppd log
May 27 15:49:31 austin-ubuntu pptp[7154]: nm-pptp-service-7139 log[callmgr_main:pptp_callmgr.c:234]: Closing connection (unhandled)
May 27 15:49:31 austin-ubuntu pptp[7154]: nm-pptp-service-7139 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
May 27 15:49:31 austin-ubuntu pptp[7154]: nm-pptp-service-7139 log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
May 27 15:49:31 austin-ubuntu NetworkManager[973]: <warn> VPN plugin failed: 1
May 27 15:49:31 austin-ubuntu pppd[7143]: Exit.
May 27 15:49:31 austin-ubuntu NetworkManager[973]: <info> VPN plugin state changed: stopped (6)
May 27 15:49:31 austin-ubuntu NetworkManager[973]: <info> VPN plugin state change reason: 0
May 27 15:49:31 austin-ubuntu NetworkManager[973]: <warn> error disconnecting VPN: Could not process the request because no VPN connection was active.
May 27 15:49:31 austin-ubuntu NetworkManager[973]: <info> Policy set 'Wired connection 1' (eth0) as default for IPv4 routing and DNS.
May 27 15:49:37 austin-ubuntu NetworkManager[973]: <info> VPN service 'pptp' disappeared

任何帮助将不胜感激。

答案1

我找到了问题所在。它出在

MS-CHAP authentication failed: E=649 No dialin permission

我跟系统管理员沟通后发现我没有正确的权限来连接 Windows 服务器端的 VPN。我花了几个小时才意识到是我这边出了问题,但事实并非如此

相关内容