pptpsetup meet error: "EAP: unknown authentication type 26; Naking"

Devboard Fan picture Devboard Fan · Jun 23, 2013 · Viewed 7.3k times · Source

The OS is ubuntu 12.04-lts, when using pptpsetup to setup and initiate a VPN connection, it reports:


    $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.

Here is my /etc/ppp/options.pptp file:


    # 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

Answer

Andre Figueiredo picture Andre Figueiredo · Sep 25, 2016

I had same problem and tried a lot of combinations of authentication modes to connect to Windows host.

I solved leaving only MSCHAPv2 selected in GUI interface.