Azure Firewall

Handian Sudianto 6,096 Reputation points
2023-09-08T04:23:59.5+00:00

Hello,

I have several Azure VM and when accessing to the internet i can see each VMs connect to different public IP Addr, let say VM-1 connect to the internet using 20.24.49.44 and VM-2 use 20.198.170.98.

Also i have azure firewall with public IP let say 20.20.20.20 and my question is :

  • Why 2 VMs have different public IP when connecting to the internet, this mean azure have some public ip for azure vm and share the public ip to all azure customer?
  • Can we make all azure VMs using azure firewall IP address to connect to the internet? So all traffic to the internet will be natted to azure public IP Address?
Azure Firewall
Azure Firewall
An Azure network security service that is used to protect Azure Virtual Network resources.
779 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,762 questions
{count} votes

Accepted answer
  1. TP 124.7K Reputation points Volunteer Moderator
    2023-09-08T04:56:46.4266667+00:00

    Hi,

    Why 2 VMs have different public IP when connecting to the internet, this mean azure have some public ip for azure vm and share the public ip to all azure customer?

    A: If you do not explicitly set outbound connectivity then VMs will be assigned a default outbound public IP address. Please see article below for detailed explanation:

    https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/default-outbound-access

    Can we make all azure VMs using azure firewall IP address to connect to the internet? So all traffic to the internet will be natted to azure public IP Address?

    A: Yes. Preferred way to do this is to create Azure Firewall with Forced Tunneling enabled and set default route on the subnet with the VMs to send all traffic to the firewall's private IP. Below article discusses Azure Firewall with forced tunneling in more detail:

    https://learn.microsoft.com/en-us/azure/firewall/forced-tunneling

    Please click Accept Answer if the above was helpful.

    Thanks.

    -TP


0 additional answers

Sort by: Most 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.