Pptpsetup corresponds to the error: "EAP: unknown authentication type 26, Naking"

OS - ubuntu 12.04-lts, when using pptpsetup to establish 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

+4
source share
4 answers

I had the same problem (Mint 17) and found this question along with a bunch of tutorials, instructions, etc.

In my case, this turned out to be a missing entry in my peer file. Looking at your commands, I assume that it will be / etc / ppp / peers / vpn, and the entry will be as follows: file /etc/ppp/options.pptp

Here is mine (I changed the hostname, username and tunnel):

# 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 

Without this file entry, I would receive an authentication error message that you reported.

+6
source

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

I decided to leave only MSCHAPv2 selected in the GUI interface.

+5
source

I ran into this problem on Ubuntu 15.04. I followed the instructions in this answer , but the VPN connection did not work and gave me an EAP: peer reports authentication failure error until I opened /etc/ppp/options.pptp and commented out the refuse-chap and 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 
+1
source

I solved this by following this guide . Enable MPPT, which leaves only MSCHAP and MSCHAPv2. It didnโ€™t matter if I allowed either of them, or both. The inclusion of MPPT did the trick.

0
source

Source: https://habr.com/ru/post/1487721/


All Articles