Windows 10: VPN - "The L2TP connection attempt failed because security policy for the connection was...

Discus and support VPN - "The L2TP connection attempt failed because security policy for the connection was... in Windows 10 Network and Sharing to solve the problem; Connecting Windows 10 VPN to Draytek routers on numerous sites all returns the same error. Sometimes a reboot works, sometimes it doesn't. Have... Discussion in 'Windows 10 Network and Sharing' started by DaveL-TOB, Oct 17, 2022.

  1. DaveL-TOB Win User

    VPN - "The L2TP connection attempt failed because security policy for the connection was...


    Connecting Windows 10 VPN to Draytek routers on numerous sites all returns the same error. Sometimes a reboot works, sometimes it doesn't. Have followed all steps in the similar message The L2TP connection attempt failed because the security layer encountered a processing error during the initial negotiations with the remote computer, but this error of mine is "security policy not found". Where is the security policy and why does it have a problem finding it sometimes??

    :)
     
    DaveL-TOB, Oct 17, 2022
    #1
  2. Ṣmeed Win User
    Ṣmeed, Oct 17, 2022
    #2
  3. marky9074 Win User
    L2TP Connection attempt failed - April 2022 (SOLVED)

    I set up a clients computer before Christmas and configured a L2TP with preshared key VPN which had been working without issues up until a few weeks ago. I can confirm that the following is in place:

    • All ports corrected forwarded.
    • Regedit - AssumeUDPEncapsulationContextOnSendRule / DWORD (32 bit) Value = 2
    • Adapter PPP settings - Enable LCP extensions (ticked for use)
    • Adapter Security tab - Allow these protocols / Challenge Handshake Authentication Protocol (CHAP) & Microsoft CHAP Version 2 (MS-SHAP v2)
    • All Windows updates applied

    I understand that L2TP was broken around January, and then a patch released, with this computer up to date with updates. As a test, I configured my own computer (which had a fresh Windows 11 install a month ago) and is fully up to date with updates, and get the same errors when trying to connect.

    So I am at a loss as to why this is 'still' broken even though both computers are now up to date. I'm still getting the following error:

    The L2TP connection attempt failed because the security layer encountered a processing error during the initial negotiations with the remote computer.

    Any suggestions would be much appreciated. I'm connecting to a Synology NAS. Searches for this error return the update issue from earlier this year, and have not found any further recent information.
     
    marky9074, Oct 17, 2022
    #3
  4. VPN - "The L2TP connection attempt failed because security policy for the connection was...

    Error: 788, when connecting to L2TP VPN

    Hi there, recently I got this error when connecting to "L2TP/IPSec with certificate" VPN. I'm not sure what cause this.

    I have already follow some of this steps with no luck :

    • Adding AssumeUDPEncapsulationContextOnSendRule
    • Restarting both IKE and IPSec services
    • Allowing both CHAP and MS-CHAP v2
    • Reset network connection
    • Connect to different provider
    • Re-adding VPN settings
    There also little bit information can be found in the event viewer :

    CoId={AEE0E2A8-34DF-41BB-B5F0-0458EFD41751}: The user xxx\xxx has started dialing a VPN connection using a per-user connection profile named yes. The connection settings are:

    Dial-in User = *\

    VpnStrategy = L2TP

    DataEncryption = Requested

    PrerequisiteEntry =

    AutoLogon = No

    UseRasCredentials = Yes

    Authentication Type = PAP

    Ipv4DefaultGateway = Yes

    Ipv4AddressAssignment = By Server

    Ipv4DNSServerAssignment = By Server

    Ipv6DefaultGateway = Yes

    Ipv6AddressAssignment = By Server

    Ipv6DNSServerAssignment = By Server

    IpDnsFlags =

    IpNBTEnabled = Yes

    UseFlags = Private Connection

    ConnectOnWinlogon = No

    IPsec authentication for L2TP = Machine certificate.

    CoId={AEE0E2A8-34DF-41BB-B5F0-0458EFD41751}: The user xxx\xxx is trying to establish a link to the Remote Access Server for the connection named yes using the following device:

    Server address/Phone Number = xxx.xxx.xxx.xxx

    Device = WAN Miniport (L2TP)

    Port = VPN3-1

    MediaType = VPN.

    CoId={AEE0E2A8-34DF-41BB-B5F0-0458EFD41751}: The user xxx\xxx dialed a connection named yes which has failed. The error code returned on failure is 788.

    ***Original title: VPN Error 788***
     
    Syafii Azami, Oct 17, 2022
    #4
Thema:

VPN - "The L2TP connection attempt failed because security policy for the connection was...

Loading...
  1. VPN - "The L2TP connection attempt failed because security policy for the connection was... - Similar Threads - VPN L2TP connection

  2. VPN error code - The L2TP connection attempt failed because the security layer encountered...

    in Windows 10 Gaming
    VPN error code - The L2TP connection attempt failed because the security layer encountered...: Hi,We've got some really flaky behavior with the native VPN software connecting to a Draytek Vigor series router actually different models too. The error we get is 'The L2TP connection attempt failed because the security layer encountered a processing error during the initial...
  3. VPN error code - The L2TP connection attempt failed because the security layer encountered...

    in Windows 10 Software and Apps
    VPN error code - The L2TP connection attempt failed because the security layer encountered...: Hi,We've got some really flaky behavior with the native VPN software connecting to a Draytek Vigor series router actually different models too. The error we get is 'The L2TP connection attempt failed because the security layer encountered a processing error during the initial...
  4. W10 VPN Error: The L2TP connection attempt failed because the security layer encountered a...

    in Windows 10 Software and Apps
    W10 VPN Error: The L2TP connection attempt failed because the security layer encountered a...: Hi guysI recently replaced my hard drive with a SSD and used a clean install on Windows 10 via flash drive / recovery media. All has gone fine, except when I try and log on to my VPN I get the error: The L2TP connection attempt failed because the security layer encountered a...
  5. W10 VPN Error: The L2TP connection attempt failed because the security layer encountered a...

    in Windows 10 Network and Sharing
    W10 VPN Error: The L2TP connection attempt failed because the security layer encountered a...: Hi guysI recently replaced my hard drive with a SSD and used a clean install on Windows 10 via flash drive / recovery media. All has gone fine, except when I try and log on to my VPN I get the error: The L2TP connection attempt failed because the security layer encountered a...
  6. W10 VPN Error: The L2TP connection attempt failed because the security layer encountered a...

    in Windows 10 Gaming
    W10 VPN Error: The L2TP connection attempt failed because the security layer encountered a...: Hi guysI recently replaced my hard drive with a SSD and used a clean install on Windows 10 via flash drive / recovery media. All has gone fine, except when I try and log on to my VPN I get the error: The L2TP connection attempt failed because the security layer encountered a...
  7. The L2TP connection attempt failed error VPN

    in Windows 10 Gaming
    The L2TP connection attempt failed error VPN: Hi,I just recently got instructions from my company to install VPN, everything worked fine for few days and now i got this message:The L2TP connection attempt failed because the security layer encountered a processing error during the initial negotiations with the remote...
  8. The L2TP connection attempt failed error VPN

    in Windows 10 Software and Apps
    The L2TP connection attempt failed error VPN: Hi,I just recently got instructions from my company to install VPN, everything worked fine for few days and now i got this message:The L2TP connection attempt failed because the security layer encountered a processing error during the initial negotiations with the remote...
  9. VPN - "The L2TP connection attempt failed because security policy for the connection was...

    in Windows 10 Gaming
    VPN - "The L2TP connection attempt failed because security policy for the connection was...: Connecting Windows 10 VPN to Draytek routers on numerous sites all returns the same error. Sometimes a reboot works, sometimes it doesn't. Have followed all steps in the similar message The L2TP connection attempt failed because the security layer encountered a processing...
  10. VPN - "The L2TP connection attempt failed because security policy for the connection was...

    in Windows 10 Software and Apps
    VPN - "The L2TP connection attempt failed because security policy for the connection was...: Connecting Windows 10 VPN to Draytek routers on numerous sites all returns the same error. Sometimes a reboot works, sometimes it doesn't. Have followed all steps in the similar message The L2TP connection attempt failed because the security layer encountered a processing...