I can't connect through RDP to VM through VPN

Abdulrahman Mohamed 66 Reputation points
2020-08-10T10:42:30.383+00:00

I can't connect through RDP to VM through VPN, and the NSG allows the ip range for P2S VPN

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,543 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Moamen Hany 1,091 Reputation points MVP
    2020-08-10T12:36:21.243+00:00

    You must allow also for the Virtual Network, as the VNG is IP also should added or you can use service endpoint to add virtual network gateway.

    1 person found this answer helpful.
    0 comments No comments

  2. GitaraniSharma-MSFT 49,616 Reputation points Microsoft Employee
    2020-08-10T13:12:09.92+00:00

    Hello @Abdulrahman Mohamed ,

    You need to make sure that the NSG allows port 3389 for the VM you are trying to RDP to and it also has the Vnet address range allowed.

    This issue can also occur if VPN client does not get the routes from Azure VPN gateway.
    You can find the routes received by the VPN client in the following location:
    C:\Users\UserName\AppData\Roaming\Microsoft\Network\Connections<VirtualNetworkId>\routes.txt
    This should contain your Vnet address range and the P2S VPN address range.

    If the routes are not propagated properly, you may try a VPN gateway reset and re-download and re-install the VPN client from P2S configuration page of the VPN gateway.

    Please refer:
    https://zcusa.951200.xyz/en-us/azure/vpn-gateway/vpn-gateway-troubleshoot-vpn-point-to-site-connection-problems#the-point-to-site-vpn-connection-is-established-but-you-still-cannot-connect-to-azure-resources

    Kindly let us know if the above helps or you need further assistance on this issue.

    ----------------------------------------------------------------------------------------------------------------

    Please don’t forget to "Accept the answer" wherever the information provided helps you, this can be beneficial to other community members.


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.