Cannot connect to Azure VPN Gateway via Private IP Address

Mandyam Bhoolokam Alwar Srinivas 0 Reputation points
2023-12-20T16:05:40.43+00:00

Hello,

My goal is to connect to an Azure VPN Gateway through a private ip address.

For this, I have an instance of Azure VPN Gateway and I in the Settings > Configuration menu I have enabled the Gateway Private IPs option.

Screenshot 2023-12-20 at 16.32.13

Screenshot 2023-12-20 at 16.38.12

Now, in the Overview > Show More, I see that the VPN Gateway has an additional Private IP Address (10.2.1.6).

Screenshot 2023-12-20 at 16.36.21

I have also an instance of Windows VM running in the same VNET as the VPN Gateway. The VM itself has an ip address from the default subnet (10.2.0.4). As a first test, I tried to ping the private Ip address of the VPN gateway. Unfortunately this itself was unsuccessful.

vpn-gateway-private-ip-concept.drawio

What am I missing? Inputs are highly appreciated.

Is there any other way to use the private Ip address of the VPN gateway?

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,786 questions
{count} votes

2 answers

Sort by: Most helpful
  1. msrini-MSFT 9,291 Reputation points Microsoft Employee
    2023-12-24T09:14:16.6666667+00:00

    Hi, Please make sure the VPN gateway the the VM from where you are trying the form the tunnel have IP connectivity. Also pinging the gateway private is not the right test. Can you try to do a NC to gateway private IP on port 179? Also make sure your NSG on the VM subnet is allowing this communication. And you don't need any UDR for this to work. Ideally I would suggest you to deploy this VM on a seperate vnet and peer them and then try to form the tunnel over private IP.

    0 comments No comments

  2. Tsvetomir Tsankov 0 Reputation points
    2024-10-28T16:51:42.5433333+00:00

    The static route should be for BGP IP(/32) towards the Azure Virtual Gateway Private IP.

    0 comments No comments

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.