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.
Cannot connect to Azure VPN Gateway via Private IP Address
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.
Now, in the Overview > Show More, I see that the VPN Gateway has an additional Private IP Address (10.2.1.6).
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.
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
2 answers
Sort by: Most helpful
-
msrini-MSFT 9,291 Reputation points Microsoft Employee
2023-12-24T09:14:16.6666667+00:00 -
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.