pptpsetup遇到错误:“EAP:未知身份验证类型26; Naking”

时间:2013-06-23 13:48:15

标签: ubuntu vpn pptp

操作系统是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

4 个答案:

答案 0 :(得分:10)

我遇到了同样的问题,并尝试了很多身份验证模式的组合来连接到Windows主机。

我解决了在GUI界面中仅选择了MSCHAPv2

答案 1 :(得分:7)

我遇到了同样的问题(Mint 17)并发现了这个问题以及一堆教程,说明等。

就我而言,它在我的同伴文件中是一个缺失的条目。看看你的命令,我猜这将是/ etc / ppp / peers / vpn,条目是: 文件/etc/ppp/options.pptp

这是我的(我已经更改了主机,用户名和隧道名称):

# written by pptpsetup
pty "pptp vpn.foo.com --nolaunchpppd"
lock
noauth
nobsdcomp
nodeflate
name USERNAME
remotename vpn
file /etc/ppp/options.pptp
ipparam vpn
require-mppe-128

如果没有该文件条目,我会收到您报告的相同的auth failure错误消息。

答案 2 :(得分:2)

我在Ubuntu 15.04上遇到了同样的问题。我按照说明given in this answer进行了操作,但在我打开EAP: peer reports authentication failure并注释掉/etc/ppp/options.pptp行之前,VPN连接无法正常工作并向我发出错误refuse-chap refuse-mschap

# 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

答案 3 :(得分:0)

我按照this guide解决了这个问题。启用MPPT,仅保留MSCHAP和MSCHAPv2。无论我是否启用其中任何一个或两个都没关系。启用MPPT就可以了。

相关问题