Unable to connect azure windows server 2019 vm to ovh 2019 vm via vpn

jordan mclay 20 Reputation points
2023-08-10T06:49:29.52+00:00

I’ve been trying unsuccessfully for a day to get my Azure windows server 2022 virtual machine to connect to my server 2019 virtual machine hosted at OVH via routing and remote access VPN.

I can successfully connect to the vpn from my phone and my home windows computer however cannot get this to work.

I’ve opened all inbound and outbound ports to test and still cannot connect. Screenshots attached of my port rulesIMG_1754

IMG_1753

I can ping the azure vm remotely and can ping the ovh server from the azure server however any vpn connection attempts fail.

As a test I also setup routing and remote access on the Azure vm and tried to connect from my home computer however the same issue occurs which leads me to believe it’s something to do with rules/security group.

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,726 questions
0 comments No comments
{count} votes

Accepted answer
  1. Limitless Technology 44,681 Reputation points
    2023-08-10T13:21:13.44+00:00

    Hello there,

    If you deployed the VPN Gateway to a different VNET (not a requirement by the way) then you would need to peer the two VNETs together. Please see guide here: https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-manage-peering

    Once the two VNETs are peered they can talk to each other and you should be able to access your VM by its private IP address.

    You cannot access virtual machines that are hosted on Azure hosting services through a VPN connection in Windows

    https://support.microsoft.com/en-us/topic/you-cannot-access-virtual-machines-that-are-hosted-on-azure-hosting-services-through-a-vpn-connection-in-windows-98f663fd-6d27-c62b-7cb2-6583cf50f913

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer--

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.