How to fix RAS/VPN Policy Error 812 while connecting to Azure Point to site VPN from Windows Server 2012 through certificate authentication method.

Vipul Kumar 1 Reputation point
2021-09-19T07:46:06.13+00:00

133334-image.png

Recently I have created Point to Site VPN on Azure
it is able to connect to a windows 10 laptop but when I am trying to connect a windows server 2012 machine it is saying "The connection was prevented because of a policy configured on your RAS/VPN server. Specifically, the authentication method used by the server to verify your username and password may not match the authentication method configured in your connection profile. Please contact the Administrator of the RAS server and notify them of this error. (Error 812)"

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,379 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,117 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Manish Jha 236 Reputation points
    2021-09-19T10:52:52.913+00:00

    Can you please refer to this link and try this solution and let us know the result ?

    https://social.msdn.microsoft.com/Forums/en-US/5103955d-d808-42a4-bf2e-7c2414cb5cdc/azure-pointtoside-vpn-error-812-when-connecting-from-client-pc?forum=WAVirtualMachinesVirtualNetwork

    reg add HKLM\SYSTEM\CurrentControlSet\Services\RasMan\PPP\EAP\13
    /v TlsVersion /t REG_DWORD /d 0xfc0 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp" /v DefaultSecureProtocols /t REG_DWORD /d 0xaa0 if %PROCESSOR_ARCHITECTURE% EQU AMD64 reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet
    Settings\WinHttp" /v DefaultSecureProtocols /t REG_DWORD /d 0xaa0

    Ensure you back up the Registry before doing this

    0 comments No comments

  2. Limitless Technology 39,351 Reputation points
    2021-09-20T10:18:05.117+00:00

    Hello Vipul,

    Thank you for posting the query on Microsoft Community.

    I understand your concern and will assist you to resolve this issue.

    The VPN Error 812 seems to appear for several reasons:

    When the Server Network Policy and Client Connection Profile don’t match the Authentication Protocol. This is easy to fix.
    When NPS does not update the value added to Tunnel Type Condition in Network Policy. This is a more complex situation.

    Apart from doing changes in the registry i also want you to try by installing below updates,

    KB3140245
    KB2977292

    Visit the below link to know more about the resolution,

    https://social.technet.microsoft.com/Forums/ie/en-US/b8489bc2-e64b-4b5d-a8bb-0f63ced99fcc/connection-problem-on-vpn-due-to-rasvpn-policy-error-812?forum=winserveressentials

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    Thanks,

    0 comments No comments