Hi @$@chin,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
- Will this overlap cause any issues with tunnel communication to the Azure VMs or vice-versa? Is there a risk of asymmetric traffic?
- As the private address space for Tunnel B (192.12.5.0/24) falls within the address range of Tunnel A (192.12.0.0/16), all traffic will be directed to Tunnel B (192.12.5.0/24). This process occurs because (192.12.5.0/24) is a longer prefix than (192.12.0.0/16).
- When outbound traffic is sent from a subnet, Azure selects a route based on the destination IP address, using the longest prefix match algorithm.
- Please refer to the below document to understand how Azure selects a route: Reference: https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-udr-overview#how-azure-selects-a-route
- How to achieve it instead of changing the private address space?
- For time-being, we would recommend you configure NAT rules for your Virtual WAN VPN gateway.
- A NAT rule provides a mechanism to set up one-to-one translation of IP addresses. NAT can be used to interconnect two IP networks that have incompatible or overlapping IP addresses
- Please refer to this document to understand how to configure NAT rules for your Virtual WAN VPN gateway: https://learn.microsoft.com/en-us/azure/virtual-wan/nat-rules-vpn-gateway#rules
- Please refer to this document to understand how to configure NAT rules for your Virtual WAN VPN gateway: https://learn.microsoft.com/en-us/azure/virtual-wan/nat-rules-vpn-gateway#rules
Hope this clarifies!
If above is unclear and/or you are unsure about something add a comment below.
Please don’t forget to close the thread by clicking "Accept the answer" if the information provided helps you, as this can be beneficial to other community members.
Regards,
Sai Prasanna.