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.
I can't connect through RDP to VM through VPN
I can't connect through RDP to VM through VPN, and the NSG allows the ip range for P2S VPN
2 answers
Sort by: Most helpful
-
-
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.
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.