Azure P2S Vpn fail with Key Material sent

Anonymous
2024-11-26T08:01:03.0433333+00:00

Hi

I'm facing aIssue with a Azure VPN P2S Configuration.

When I try to connect I get this error:

AM: Dialing VPN connection vpndev002-test, Status = Server did not respond properly to VPN Control Packets. Session State: Key Material sent

In the logs it's saying:

[‎11‎/‎26‎/‎2024‎ ‎7‎:‎42‎:‎21‎ ‎AM UTC] PId:[00003596] TId:[00023732] [vpndev002-test] [{415b1199-7bda-46ba-a863-bd72ed58c8b2}] [Verbose] SId:[Primary] Reading Packet Length

[‎11‎/‎26‎/‎2024‎ ‎7‎:‎42‎:‎21‎ ‎AM UTC] PId:[00003596] TId:[00023732] [vpndev002-test] [{415b1199-7bda-46ba-a863-bd72ed58c8b2}] [Error] SId:[Primary] Couldn't load packet length bytes.

[‎11‎/‎26‎/‎2024‎ ‎7‎:‎42‎:‎21‎ ‎AM UTC] PId:[00003596] TId:[00023732] [vpndev002-test] [{415b1199-7bda-46ba-a863-bd72ed58c8b2}] [Error] SId:[Primary] ReadInitPackets Failed: true

[‎11‎/‎26‎/‎2024‎ ‎7‎:‎42‎:‎21‎ ‎AM UTC] PId:[00003596] TId:[00024656] [vpndev002-test] [{415b1199-7bda-46ba-a863-bd72ed58c8b2}] [Error] SId:[Primary] Failed to establish OpenVPN connection: Server

I have run through the VPN Client Debug section:
https://learn.microsoft.com/en-us/azure/vpn-gateway/troubleshoot-azure-vpn-client

I checked that P2S that they are configured with a ending / in both tenant & issuer.

I have one Subscription pr VPN and for each VPN a Entra Enterprise Application.
One in Sandbox, DEV and PROD.

The VPN in sandbox is configured to use the custome app where a specific AD group is assigned to allow access to VPN. This one works.

In DEV & PROD they are currently using the default Azure VPN App. When using this app or the one in Sandbox I can connect.

But using DEV or PROD specifik app in Dev & Prod I see this issue.

Any ideas would be helpfull

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,795 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ganesh Patapati 6,915 Reputation points Microsoft External Staff Moderator
    2024-11-27T09:51:27.2233333+00:00

    Hello hspo-sharks4it

    Greetings!

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    As an original poster cannot accept their own answer, I am reposting it so that you can accept it an answer. Accepted answer will help other community members navigate to the appropriate solutions.

    Issue: Azure P2S Vpn fail with Key Material sent

    Solution: Hi, We solved the issue. The problem was the application where not crested by a cloud Admin and the user that createdef it did not have all permissions in place.


    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information helps you, as this can be beneficial to other community members.

    Your contribution is greatly appreciated.

    Regards,

    Ganesh


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.