操作系统是ubuntu 12.04-lts,使用pptpsetup设置和发起VPN连接时,报:
$sudo pptpsetup --create vpn --server xxx.xxx.xxx.xxx --username xxx --password xxx --encrypt --start Connect: ppp0 /dev/pts/1 EAP: unknown authentication type 26; Naking EAP: peer reports authentication failure Connection terminated.
这是我的/etc/ppp/options.pptp 文件:
# Lock the port lock # Authentication # We don't need the tunnel server to authenticate itself noauth # We won't do PAP, EAP, CHAP, or MSCHAP, but we will accept MSCHAP-V2 # (you may need to remove these refusals if the server is not using MPPE) refuse-pap refuse-eap refuse-chap refuse-mschap require-mppe-128 # Compression # Turn off compression protocols we know won't be used nobsdcomp nodeflate
我遇到了同样的问题,并尝试了很多身份验证模式的组合来连接到 Windows 主机。
我解决了在 GUI 界面中只选择 MSCHAPv2
的问题。
我是一名优秀的程序员,十分优秀!