PPTP VPN 身份验证失败但使用正确的凭证

PPTP VPN 身份验证失败但使用正确的凭证

我使用以下命令为 gnome 安装 pptp 模块:

apt-get install network-manager-pptp-gnome

VPN 在 Windows 10 中有效,但我在 Kali 和 Ubuntu 中尝试过,结果是一样的。我尝试使用的 VPN 使用 PEAP,因此当我添加 VPN 时,我确保选择了 mschap 和 mschapv2。我将网关作为尝试连接的 VPN 主机。我尝试使用域\用户,而不仅仅是我的用户名,[电子邮件保护]但都不起作用。

查看系统日志,它显示“MS-CHAP 身份验证失败”,但我已经输入了正确的凭据一百万次,它在 Windows 上也可以运行(使用 pptp / peap)。

任何帮助将不胜感激!

Jan 30 22:01:06 kali NetworkManager[2457]: <info>  [1580446866.7200] vpn-connection[0x5598577d0310,309ff610-5c75-4709-a6fc-28d4ad20b86e,"XXXX",0]: Started the VPN service, PID 2576
Jan 30 22:01:06 kali NetworkManager[2457]: <info>  [1580446866.7274] vpn-connection[0x5598577d0310,309ff610-5c75-4709-a6fc-28d4ad20b86e,"XXXX",0]: Saw the service appear; activating connection
Jan 30 22:01:06 kali NetworkManager[2457]: <info>  [1580446866.8281] vpn-connection[0x5598577d0310,309ff610-5c75-4709-a6fc-28d4ad20b86e,"XXXX",0]: VPN connection: (ConnectInteractive) reply received
Jan 30 22:01:06 kali NetworkManager[2457]: <info>  [1580446866.8362] vpn-connection[0x5598577d0310,309ff610-5c75-4709-a6fc-28d4ad20b86e,"XXXX",0]: VPN plugin: state changed: starting (3)
Jan 30 22:01:06 kali pppd[2584]: Plugin /usr/lib/pppd/2.4.7/nm-pptp-pppd-plugin.so loaded.
Jan 30 22:01:06 kali NetworkManager[2584]: Plugin /usr/lib/pppd/2.4.7/nm-pptp-pppd-plugin.so loaded.
Jan 30 22:01:06 kali pppd[2584]: pppd 2.4.7 started by root, uid 0
Jan 30 22:01:06 kali NetworkManager[2457]: <info>  [1580446866.8439] manager: (ppp0): new Ppp device (/org/freedesktop/NetworkManager/Devices/3)
Jan 30 22:01:06 kali pppd[2584]: Using interface ppp0
Jan 30 22:01:06 kali NetworkManager[2584]: Using interface ppp0
Jan 30 22:01:06 kali NetworkManager[2584]: Connect: ppp0 <--> /dev/pts/1
Jan 30 22:01:06 kali pppd[2584]: Connect: ppp0 <--> /dev/pts/1
Jan 30 22:01:06 kali pptp[2589]: nm-pptp-service-2576 log[main:pptp.c:353]: The synchronous pptp option is NOT activated
Jan 30 22:01:06 kali pptp[2600]: nm-pptp-service-2576 log[ctrlp_rep:pptp_ctrl.c:259]: Sent control packet type is 1 'Start-Control-Connection-Request'
Jan 30 22:01:06 kali pptp[2600]: nm-pptp-service-2576 log[ctrlp_disp:pptp_ctrl.c:781]: Received Start Control Connection Reply
Jan 30 22:01:06 kali pptp[2600]: nm-pptp-service-2576 log[ctrlp_disp:pptp_ctrl.c:815]: Client connection established.
Jan 30 22:01:07 kali pptp[2600]: nm-pptp-service-2576 log[ctrlp_rep:pptp_ctrl.c:259]: Sent control packet type is 7 'Outgoing-Call-Request'
Jan 30 22:01:07 kali pptp[2600]: nm-pptp-service-2576 log[ctrlp_disp:pptp_ctrl.c:900]: Received Outgoing Call Reply.
Jan 30 22:01:07 kali pptp[2600]: nm-pptp-service-2576 log[ctrlp_disp:pptp_ctrl.c:939]: Outgoing call established (call ID 15460, peer's call ID 1075).
Jan 30 22:01:07 kali pppd[2584]: MS-CHAP authentication failed: E=691 Authentication failure
Jan 30 22:01:07 kali NetworkManager[2584]: MS-CHAP authentication failed: E=691 Authentication failure
Jan 30 22:01:07 kali NetworkManager[2584]: CHAP authentication failed
Jan 30 22:01:07 kali pppd[2584]: CHAP authentication failed
Jan 30 22:01:07 kali pptp[2600]: nm-pptp-service-2576 log[ctrlp_disp:pptp_ctrl.c:1005]: PPTP_SET_LINK_INFO received from peer_callid 15460
Jan 30 22:01:07 kali pptp[2600]: nm-pptp-service-2576 log[ctrlp_disp:pptp_ctrl.c:1008]:   send_accm is 00000000, recv_accm is FFFFFFFF
Jan 30 22:01:07 kali pptp[2600]: nm-pptp-service-2576 warn[ctrlp_disp:pptp_ctrl.c:1011]: Non-zero Async Control Character Maps are not supported!
Jan 30 22:01:07 kali pppd[2584]: Connection terminated.
Jan 30 22:01:07 kali NetworkManager[2584]: Connection terminated.
Jan 30 22:01:07 kali NetworkManager[2457]: <warn>  [1580446867.9275] vpn-connection[0x5598577d0310,309ff610-5c75-4709-a6fc-28d4ad20b86e,"XXXX",0]: VPN plugin: failed: connect-failed (1)
Jan 30 22:01:07 kali NetworkManager[2457]: <info>  [1580446867.9275] vpn-connection[0x5598577d0310,309ff610-5c75-4709-a6fc-28d4ad20b86e,"XXXX",0]: VPN plugin: state changed: stopping (5)
Jan 30 22:01:07 kali NetworkManager[2457]: <info>  [1580446867.9275] vpn-connection[0x5598577d0310,309ff610-5c75-4709-a6fc-28d4ad20b86e,"XXXX",0]: VPN plugin: state changed: stopped (6)
Jan 30 22:01:07 kali NetworkManager[2457]: <info>  [1580446867.9364] vpn-connection[0x5598577d0310,309ff610-5c75-4709-a6fc-28d4ad20b86e,"XXXX",0]: VPN service disappeared
Jan 30 22:01:07 kali pppd[2584]: Terminating on signal 15
Jan 30 22:01:07 kali NetworkManager[2584]: Terminating on signal 15``````

答案1

pppd 简介这里用于 PPTP 的程序根本不支持 EAP-PEAP。因此,身份验证失败的原因是客户端没有尝试 EAP-PEAP/MSCHAPv2;它实际上是在尝试直接的MSCHAPv2 没有任何外部安全层。

您可以尝试申请此补丁获得 EAP-PEAP 支持。

答案2

在我的情况下,我使用pptpsetup并存储了我的凭据/etc/ppp/chap-secrets,但它在密码中添加了换行符

user * "password\x0a" *

删除\x0a密码就解决了我的问题。

相关内容