How to Fix ‘The L2TP Connection Attempt Failed’ Processing Error

The error “The L2TP connection attempt failed” occurs when a VPN can’t establish its security protocol, often due to mismatched security settings between the client and server. A common cause of this error is recent Windows updates affecting VPN communication.

Error on Windows 10
The L2TP Connection Attempt Failed Because the Security Layer Encountered a Processing Error on Windows 10

Other potential causes include incorrect VPN settings, like wrong pre-shared keys, or network issues blocking the UDP ports needed for VPN traffic.

Now that you understand the problem, let us move on to the solutions. Follow these steps in order to avoid conflicts.

1. Enable MS-CHAP v2

Switching to MS-CHAP v2 is important because it updates the VPN’s login process. MS-CHAP v2 is a safer version of an older security method. It makes the connection more secure by letting both the client and server confirm each other’s identity. This helps prevent security issues that could stop the connection.

  1. Ensure the VPN connection is set up with the correct credentials for the VPN server, and add the connection.
  2. The connection will appear in the network adapter list once added.
  3. Press Windows + R to open the Run dialog.
  4. Type ncpa.cpl and press Enter to open Network Adapter Settings.
    Typing in ncpa.cpl and pressing Enter
  5. Right-click the VPN connection and select Properties.
    Right-clicking on the VPN and selecting Properties
  6. Click the Security tab and check the Allow These Protocols option.
    Selecting the Allow these Protocols option
  7. Check Microsoft-CHAP Version 2 and click OK.
    Checking the Microsoft-CHAP Version 2 option
  8. Try connecting to the VPN to see if the issue persists.

2. Enabling LCP Extensions

Changing the Link Control Protocol (LCP) settings, especially turning on LCP extensions, can help fix VPN connection problems like the L2TP error. These extensions make the connection setup between your computer and the VPN server more advanced and flexible. They offer better error detection and network setup options, which help the VPN connect more reliably. Enabling these extensions can solve the connection issues that stop the L2TP tunnel from working properly.

  1. Press Windows + R to open the Run dialog.
    Opening Run Prompt
    Opening Run Prompt
  2. Type ncpa.cpl and press Enter to open Network Adapter Settings.
  3. Right-click the VPN connection and select Properties.
    Right-clicking on the VPN and selecting Properties
  4. Click the Options tab and choose PPP Settings.
  5. Check Enable LCP Extensions and click OK.
    Checking the Enable LCP Extensions option and selecting OK
  6. Click OK again to save your settings.
  7. Try connecting to the VPN to see if the issue continues.
ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.

Comments

23
    HO
    hove Dec 24, 2020

    Did not solve my problem on Windows Server 2008 R2 VPN.

      MZ
      Muhammad Zubyan Author Dec 26, 2020

      Try this:-1. Press the “Windows + R” keys together and type in “services.msc” then press enter.
      2. Locate both: “IKE and AuthIP IPsec Keying Modules” and “IPsec Policy Agent”
      3. In the “status” section it should state “started” Right-click the service and click restart. If it is not “started”
      Right-click to start it.
      4. Right-click and click properties. For “startup type” choose “automatic” and save
      5. Test the VPN connection.
      6. Reboot and test the VPN connection.Keep me updated!

      Reply
        HO
        hove Dec 28, 2020

        That was all started and I’ve restarted my server numerous times, did not solve my problem. What else should I try?

          MZ
          Muhammad Zubyan Author Jan 1, 2021

          Do you have any 3rd Party VPN Installed on your Computer? If yes please try uninstalling them and check if the issue still persists.

          RU
          russy Jan 29, 2021

          Hi im not work no 3rd party vpn installed
          Please help

          MZ
          Muhammad Zubyan Author Jan 29, 2021

          It’s possible that your Windows Firewall is blocking the connection try disabling it for testing and check if the issue still persists. Here is how you can disable it.

          1. Press and hold the “Windows + R” keys together to open the Settings app.
          2. Head over to “Update & Security > Windows Security > Firewall & Network Protection”
          3. Now make sure to set all these settings to off click all the settings one by one and set them to off.
          4. Please revert them back to on after checking as it can cause serious security issues.

          RB
          Richard Brooks Apr 21, 2021

          Followed every step in this article to the letter. Still no VPN. Error “The network connection between your computer and the VPN server could not be established because the remote server is not responding. This could be because one of the network devices (e.g. firewalls, NAT, routers, etc) between your computer and the remote server is not configured to allow VPN connections. Please contact your Administrator or your service provider to determine which device may be causing the problem.”

          MZ
          Muhammad Zubyan Author Apr 21, 2021

          Hey Richard,

          Can you try using this command? Follow the Steps Below:-

          1. Search for Command Prompt and run it as an administrator.
          2. Type the following command then press enter:-

          reg add “HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesPolicyAgent” /v “AssumeUDPEncapsulationContextOnSendRule” /t REG_DWORD /d “2” /f

          Restart your computer and check to see if the issue persists.

          RB
          Richard Brooks Apr 21, 2021

          I’ve made this registry change. I still can’t connect. In the event log I receive event ID 20117 from RasClient with error code 789.

          MZ
          Muhammad Zubyan Author Apr 25, 2021

          Okay then try this:-

          1. Search for CMD and run it as an administrator.
          2. Now type the following commands and restart your computer.

          sc config IKEEXT start= demand
          sc config PolicyAgent start= demand

          JK
          JK1 Nov 14, 2021

          Can you help me having the same issue no luck

          MZ
          Muhammad Zubyan Author Nov 15, 2021

          Try the suggestion above in my comment let me know how it goes.

          TR
          Tim Robinson Sep 22, 2022

          Win 11 Tried everything above still not working

          MZ
          Muhammad Zubyan Author Sep 23, 2022

          Is this happening after the 22H2 update?

          TR
          Tim Robinson Sep 23, 2022

          Correct even with 22h2 it is still giving me the issue

    OB
    olaf big Dec 31, 2020

    Did not work on my Lenovo Windows 10. Please help!

      MZ
      Muhammad Zubyan Author Jan 2, 2021

      Do you have any 3rd Party VPN Installed on your Computer? If yes please try uninstalling them and check if the issue still persists.

    AL
    Alucinari May 19, 2021

    Avast, which is a security/virus scan was blocking me from access my home VPN. I temporarily stopped the program, was able to connect to VPN and then turned on each piece one at a time and all seems good now.

    Reply
    SK
    Shridhar Kamat Oct 26, 2021

    I followed the instructions in this article but the issue was not resolved. What resolved the issue for me was changing the “Host Name or IP Address of the Destination” in the VPN adapter settings to the IP address rather than the hostname. It must have been a DNS issue for me. Maybe it is for you as well.

    Reply
    1U
    1USPatriot Feb 1, 2022

    THIS IS **NOT** THE PROBLEM.
    What broke is a Microsoft Update! This is on ALL Windows 10+ PC’s I have all these settings already set.
    KB5009543 is the issue! You can manually uninstall it CONTROL PANEL –> PROGRAMS AND FEATURES –> SHOW WINDOWS UPDATES –> Uninstall the KB500943.
    It sounds like it was a windows update foobar as they have already released fixes, but it is about 6 different KB’s depending on the 6 different releases of Windows 10 or 11. So the best (if you’re not completely paranoid about security) is to uninstall KB500943 and wait for the next band of full windows patches automatically install.

    Reply
      PL
      Placide Feb 8, 2022

      This worked for me.. Thank you sooo much.

      Placide, from Burundi.

      SK
      Shawon Ibn Kamal Feb 8, 2022

      Thank you, that worked for me. Really hate these buggy updates

    FS
    Farhad Sarvari May 16, 2022

    I just set the vpn type to automatic and everything goes well.

    Reply