here VNET1 is VPN Gateway and VNET1001 is where my VM are running.
Using Point to Site VPN connection to connect to VM in private network
I have configured Point to Site VPN connection and IP is allocated successfully to local computer now am trying to access a VM running in azure through Private IP of the VM. I have configured vnet peering between VPN gateway vnet and VM vnet and it is not working.
2 additional answers
Sort by: Most helpful
-
GitaraniSharma-MSFT 49,616 Reputation points Microsoft Employee
2020-08-17T09:16:21.983+00:00 Hello @Karthick G ,
From your description, I understand that you have an Azure VPN gateway deployed in Vnet A and your VMs are in Vnet B. And there is a Vnet peering between Vnet A and Vnet B. If this is correct and you do not have an Azure VPN gateway deployed in Vnet B, then in order for your clients to access Vnet B resources via P2S VPN, you need to enable UseRemoteGateway / AllowGatewayTransit features in your Vnet peering.
Please refer : https://zcusa.951200.xyz/en-us/azure/vpn-gateway/vpn-gateway-howto-point-to-site-resource-manager-portal#can-i-configure-a-point-to-site-client-to-connect-to-multiple-virtual-networks-at-the-same-time
https://zcusa.951200.xyz/en-us/azure/vpn-gateway/vpn-gateway-peering-gateway-transitIf you have already enable UseRemoteGateway / AllowGatewayTransit features in your Vnet peering and have configured Vnet peering after the P2S configuration, then you need to delete the existing VPN client from your local machine and download a fresh P2S Client from the VPN gateway page in Azure portal and install it for the VM Vnet routes to be propagated to your local machine.
Kindly let us know if you need any further assistance on this issue from our end.
----------------------------------------------------------------------------------------------------------------
Please don’t forget to "Accept the answer" wherever the information provided helps you, this can be beneficial to other community members.
-
Karthick G 96 Reputation points
2020-08-17T09:52:07.473+00:00 Great @GitaraniSharma-MSFT , it worked. Thanks for your help.