简体   繁体   中英

Azure VM can't reach remote network with connected VPN

I am setting up an Azure VPN Gateway in order for my Azure VM to connect to a remote RTSP feed, following this documentation: https://docs.microsoft.com/fr-fr/azure/vpn-gateway/tutorial-site-to-site-portal .

What I have done:

  1. Create a virtual network + a subnet and a Virtual Machine
  2. Create the VPN Gateway in the same virtual network
  3. Create a local network gateway with the Public IP and IPs range of the remote network that contains the RTSP feeds
  4. Create the site to site VPN connection with needed shared access key.

The status of the VPN connection is "connected", as you can see in below picture:

在此处输入图片说明

Moreover, the subnet on which my azure virtual machine is, is in the same virtual network as the subnet of the VPN Gateway:

在此处输入图片说明

From what I understand, as long as the VM is in the virtual network of the Gateway, I should be able to reach the remote network...

Expected behaviour : I should be able to reach the following IP addresses: 192.168.250.30/32 that are on the remote network, from my azure virtual machine.

Actual behavior : From my azure virtual machine, I'm still unable to reach the remote network.

Any ideas where the problem can come from?

If the issue is that the Azure VM's are not getting gateway routes, then a gateway reset should be tried first and the gateway reset needs to be done twice.

Reference :

VPN gateway Reset

References for S2S VPN issues troubleshooting:

S2S VPN cannot connect and stops working

S2S VPN disconnects intermittently

Note : If this doesn't solve your issue then please reach out to Azure support for more troubleshooting as it may need assisted support by clicking (Support+Help) and creating a technical support request. Please validate your Onprem VPN device as well.

And as Andriy Bilous has mentioned in comments section:

  • You should see default gateway on your VM routing table. Default Gateway is responsible for routing traffic further. Can you see that
    tunnel is UP on your VPN onpremise device.
  • If no VPN Gateway subnet (10.0.0.0/28) in your VM route table - You may add route to VM using route command. Example: route ADD 10.0.0.0
    MASK 255.255.255.240 [Your Gateway IP address]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM