ExpressRoute with Azure routing question

Shane DT 60 Reputation points
2024-05-09T23:17:53.3233333+00:00

Hi guys,

I currently have ExpressRoute setup (Diagram), and it's been working fine. Except for one thing: all traffic from Prod-VMs (VNET-VMs 10.10.0.0/16) to workstations at my company doesn't go through firewalls FW-01 & FW-02 in Azure. However, all traffic from the company's workstations goes through firewalls FW-01 and FW-02 before reaching Prod-VMs. Also, all outbound traffic of the Prod-VMs goes through FW01 & FW-02 before reaching the internet.

Does anyone know why Prod-VMs' traffic doesn't go through the FW01 & FW02 before reaching the Company's workstations?

User's image

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,501 questions
Azure ExpressRoute
Azure ExpressRoute
An Azure service that provides private connections between Azure datacenters and infrastructure, either on premises or in a colocation environment.
381 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Silvia Wibowo 3,986 Reputation points Microsoft Employee
    2024-05-10T00:06:45.64+00:00

    Hi @Shane DT , I understand that you want Prod VMs traffic to go through Firewall before reaching Company Workstation.

    Because of vNet peering between VNET-FW and Prod VMs vNet, all of your VMs in Prod VMs use a route table that has a system route entry for 192.168.14.0/24 to vNet gateway, so the traffic goes directly, without going to Firewall. For the opposite direction, as you noticed that traffic from Company Workstation goes to Firewall before going to Prod VMs, I suspect there is a route table applied on GatewaySubnet that has an entry for traffic to go to Firewall.

    To get Prod VMs traffic to go through Firewall before reaching Company Workstation, you need to set UDR (User Defined Route) on your Prod VMs subnet: 192.168.14.0/24 next hop: NVA 10.11.10.5. There should be an entry in Firewall rules to allow the traffic from Prod VMs to Company Workstation - if you use a Network rule, you need to configure SNAT. Application rule will apply SNAT automatically, so you don't have to configure SNAT.

    Reference: https://learn.microsoft.com/en-us/azure/firewall/snat-private-range - "By default, Azure Firewall doesn't SNAT with Network rules when the destination IP address is in a private IP address range per IANA RFC 1918 or shared address space per IANA RFC 6598. Application rules are always SNATed using a transparent proxy whatever the destination IP address."

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.


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.