Azure VPN Gateway - VNET address space advertised

Von Jackson 1 Reputation point
2022-05-04T18:16:59.34+00:00

Our company has multiple S2S connections established with customers. Our VPN Gateway has BGP enabled, however none of our S2S connections are using BGP. For most connection we need to NAT our ranges to prevent overlapping with customers. Problem we're having is that the complete 10.x.x.x address space of our VPN Gateway VNET is being advertised with the proposal. What is the reason for this? Is there a way to prevent that address space from being advertised with the proposal.

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,369 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. GitaraniSharma-MSFT 47,006 Reputation points Microsoft Employee
    2022-05-06T12:58:54.37+00:00

    Hello @Von Jackson ,

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

    I understand that you have multiple S2S connections established and your VPN gateway has BGP enabled but the connections do not have BGP enabled, however, the complete 10.x.x.x address space of your VPN Gateway VNET is being advertised. And you would like to know the reason behind this and if there is a way to prevent this from happening.

    By design, the Azure VPN gateways advertise the following routes to your on-premises devices and you cannot exclude the Vnet address range:

    1. Your virtual network address prefixes.
    2. Address prefixes for each local network gateway connected to the Azure VPN gateway.
    3. Routes learned from other BGP peering sessions connected to the Azure VPN gateway, except for the default route or routes that overlap with any virtual network prefix (if BGP is enabled on the connections).

    Refer : https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-vpn-faq#what-address-prefixes-will-azure-vpn-gateways-advertise-to-me

    If you are facing an address overlap issue, you can opt for NAT on your Azure VPN Gateway to connect multiple networks with overlapping IP addresses.
    Please refer : https://learn.microsoft.com/en-us/azure/vpn-gateway/nat-overview
    https://learn.microsoft.com/en-us/azure/vpn-gateway/nat-howto

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

    ----------------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.