Basic networking qu with Azure Firewall and load balancer

mij2020 376 Reputation points
2020-07-08T09:20:32.393+00:00

I have an Azure Firewall and a public load balancer in the same VNet.

I have a basic question on how the traffic gets into the VNet in this scenario.

If I have an external source that has been given the public IP address of the load balancer – does this mean that any traffic using this public IP to get to the backend VM’s setup in the load balancer will have to go through the Azure firewall and hence will need an incoming rule setup? Or does the fact that it’s a public load balancer with its own public IP mean that the traffic will flow through and not touch the Azure Firewall and instead use the NSG setup on the subnet only instead?

Thanks

Azure Firewall
Azure Firewall
An Azure network security service that is used to protect Azure Virtual Network resources.
674 questions
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,491 questions
Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
449 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sam Cogan 10,747 Reputation points MVP
    2020-07-08T11:28:29.497+00:00

    If the external user uses the IP of the load balancer then their traffic will go through the load balancer and will not go to the firewall.
    However, this may cause you an issue. If you have a route in place that directs outbound traffic in your network through the firewall (which is the recommended approach) then traffic will come in over the LB IP but go out the firewall IP, which will cause asymmetric routing issues. Given that you may want to route your inbound traffic through the firewall using a DNAT rule, and use an internal load balancer.


2 additional answers

Sort by: Most helpful
  1. mij2020 376 Reputation points
    2020-07-08T12:44:51.337+00:00

    Thanks for the response. I'll look into your suggestion as this makes sense.

    0 comments No comments

  2. Sebastian-Daniel Negoescu 1 Reputation point
    2020-07-17T06:59:19.09+00:00

    Hi Sam,

    If it is not to much to ask, how exactly would you have your NAT rule? Can you give an example?

    0 comments No comments

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.