problem connecting a VPN server with L2TP/IPSEC security

kader kader 66 Reputation points
2022-05-22T01:45:23+00:00

I just deployed a VPN server under Windows server 2019. My problem is this message during the connection: the l2tp connection attempt failed because the security layer encountered an error.

This test was done on the server itself locally, whereas with the connection in PPTP mode it works without any problem.

I would like to have your opinion please, because it is the first time that I do it with Windows. Usually I do it with Pfsense.

The machine is installed on hyper-v.

Thanks in advance!
Greeting.

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,180 questions
0 comments No comments
{count} vote

Accepted answer
  1. risolis 8,701 Reputation points
    2022-05-25T03:44:26.833+00:00

    @kader kader

    Please confirm if the steps taken so far from you are the ones below:

    -VPN Properties >>>>>>>>> Routing and Remote Access>>>>>>>>>Allow custom IPSec policy for L2TP/IKEv2 connection
    -IPv4 tab >>>>>>>>> Enable IPv4 forwarding >>>>>>>>>Static address pool
    -NAT tab >>>>>>>>> New interface >>>>>>>>> Public interface connected to Internet >>>>>>>>>Enable NAT on this interface
    -Port tab >>>>>>>>> VPN Server(L2TP/IPSec on this server)
    -Change IP address to 127.0.0.1
    -Restart required
    -Firewall settings configuration >>>>>> Inbound/outbound rules (allow Routing and remote access) >> Allow the connection
    -VPN user profile set up (Allow the user connection)
    -Recall to share the PSK(Preshared KEY with all users)

    Looking forward to your feedback,

    Cheers,

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


7 additional answers

Sort by: Most helpful
  1. risolis 8,701 Reputation points
    2022-05-24T21:44:01.977+00:00

    Hi @kader kader

    I am hoping you were able to get this working as intended. Please let me know if anything else is required.

    Best Regards,

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

  2. kader kader 66 Reputation points
    2022-05-25T01:27:04.003+00:00

    for the moment I am doing the tests because it works well with windows server 2022 with the latest updates, on windows 10 it also works well with the latest updates but not with windows 2019 the problem still arises


  3. kader kader 66 Reputation points
    2022-05-26T18:21:14.327+00:00

    the problem came from PFSENS. Thanks for your help.