Azure Point-to-Site VPN with vNet Peering

roshan 0 Reputation points
2024-01-05T04:07:57.43+00:00

Hi There,

I'm currently testing a solution with Azure Point-to-Site connection with vNet peering. Below is the diagram of the setup I'm working with

Topology

Both vNet A and B are connected via vNet peering. Rather than creating a Virtual Network Gateway for each vNet, I'm thinking of utilizing a single Gateway to manage all three VMs. I have created a Route table to route the VPN segment traffic toward vNetA. I'm not sure the Next Hop I should select for this route. I tried setting it as the Virtual Network Gateway, and it didn't work as expected.

Screenshot 2024-01-05 120443

Screenshot 2024-01-05 120432

I appreciate any help you can provide.

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

1 answer

Sort by: Most helpful
  1. KapilAnanth-MSFT 48,576 Reputation points Microsoft Employee
    2024-01-05T04:29:33.03+00:00

    @roshan

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    I understand that you would like to configure P2S devices to connect to VMs in Peered VNET.

    You should not use Route Tables to achieve this.

    Instead, you must use Gateway Transit in the Peering.

    • Once you do this, the remote P2S Devices will automatically learn the address range of the Peered VNET,
    • See : Multiple peered VNets
      • User's image
    • P2S clients can access VNet1, VNet2, and VNet4, but note that the VPN client must be downloaded again for any topology changes to take effect.

    How to enable VPN gateway transit for virtual network peering:

    See : https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-peering-gateway-transit

    Gateway transit is a peering property that lets one virtual network use the VPN gateway in the peered virtual network for cross-premises or VNet-to-VNet connectivity.

    Kindly let us know if this helps or you need further assistance on this issue.

    Thanks,

    Kapil


    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.

    1 person found this answer 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.