Using Point to Site VPN connection to connect to VM in private network

Karthick G 96 Reputation points
2020-08-16T19:56:07.04+00:00

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.

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

Accepted answer
  1. Karthick G 96 Reputation points
    2020-08-17T09:34:12.807+00:00

    here VNET1 is VPN Gateway and VNET1001 is where my VM are running.


2 additional answers

Sort by: Most helpful
  1. GitaraniSharma-MSFT 49,386 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://learn.microsoft.com/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://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-peering-gateway-transit

    If 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.


  2. Karthick G 96 Reputation points
    2020-08-17T09:52:07.473+00:00

    Great @GitaraniSharma-MSFT , it worked. Thanks for your help.