Azure Firewall Management NIC

Note

This feature was previously called Forced Tunneling. Originally, a Management NIC was required only for Forced Tunneling. However, upcoming Firewall features will also require a Management NIC, so it has been decoupled from Forced Tunneling. All relevant documentation has been updated to reflect this.

An Azure Firewall Management NIC separates firewall management traffic from customer traffic. Upcoming Firewall features will also require a Management NIC. To support any of these capabilities, you must create an Azure Firewall with the Firewall Management NIC enabled or enable it on an existing Azure Firewall. This is a mandatory requirement to avoid service disruption.

What happens when you enable the Management NIC

If you enable a Management NIC, the firewall routes its management traffic via the AzureFirewallManagementSubnet (minimum subnet size /26) with its associated public IP address. You assign this public IP address for the firewall to manage traffic. It's used exclusively by the Azure platform and can't be used for any other purpose. All traffic required for firewall operational purposes is incorporated into the AzureFirewallManagementSubnet.

By default, the service associates a system-provided route table to the Management subnet. The only route allowed on this subnet is a default route to the Internet and Propagate gateway routes must be disabled. Avoid associating customer route tables to the Management subnet, as this can cause service disruptions if configured incorrectly. If you do associate a route table, then ensure it has a default route to the Internet to avoid service disruptions.

Screenshot showing the firewall management NIC dialog.

Enable the Management NIC on existing firewalls

For Standard and Premium firewall versions, the Firewall Management NIC must be manually enabled during the create process as shown previously, but all Basic Firewall versions and all Secured Hub firewalls always have a Management NIC enabled.

For a pre-existing firewall, you must stop the firewall and then restart it with the Firewall Management NIC enabled to support Forced tunneling. Stopping/starting the firewall can be used to enable the Firewall Management NIC without the need to delete an existing firewall and redeploy a new one. You should always start/stop the firewall during maintenance hours to avoid disruptions, including when attempting to enable the Firewall Management NIC.

Use the following steps:

  1. Create the AzureFirewallManagementSubnet on the Azure portal and use the appropriate IP address range for the virtual network.

    Screenshot showing add a subnet.

  2. Create the new management public IP address with the same properties as the existing firewall public IP address: SKU, Tier, and Location.

    Screenshot showing the public IP address creation.

  3. Stop the firewall

    Use the information in Azure Firewall FAQ to stop the firewall:

    $azfw = Get-AzFirewall -Name "FW Name" -ResourceGroupName "RG Name"
    $azfw.Deallocate()
    Set-AzFirewall -AzureFirewall $azfw
    
  4. Start the firewall with the management public IP address and subnet.

    Start a firewall with one public IP address and a Management public IP address:

    $azfw = Get-AzFirewall -Name "FW Name" -ResourceGroupName "RG Name"
    $vnet = Get-AzVirtualNetwork -Name "VNet Name" -ResourceGroupName "RG Name" 
    $pip = Get-AzPublicIpAddress -Name "azfwpublicip" -ResourceGroupName "RG Name"
    $mgmtPip = Get-AzPublicIpAddress -Name "mgmtpip" -ResourceGroupName "RG Name" 
    $azfw.Allocate($vnet, $pip, $mgmtPip)
    $azfw | Set-AzFirewall
    

    Start a firewall with two public IP addresses and a Management public IP address:

    $azfw = Get-AzFirewall -Name "FW Name" -ResourceGroupName "RG Name"
    $vnet = Get-AzVirtualNetwork -Name "VNet Name" -ResourceGroupName "RG Name" 
    $pip1 = Get-AzPublicIpAddress -Name "azfwpublicip" -ResourceGroupName "RG Name"
    $pip2 = Get-AzPublicIpAddress -Name "azfwpublicip2" -ResourceGroupName "RG Name"
    $mgmtPip = Get-AzPublicIpAddress -Name "mgmtpip" -ResourceGroupName "RG Name" 
    $azfw.Allocate($vnet,@($pip1,$pip2), $mgmtPip)
    $azfw | Set-AzFirewall
    

    Note

    You must reallocate a firewall and public IP to the original resource group and subscription. When stop/start is performed, the private IP address of the firewall may change to a different IP address within the subnet. This can affect the connectivity of previously configured route tables.

Now when you view the firewall in the Azure portal, you see the assigned Management public IP address:

Screenshot showing the firewall with a management IP address.

Note

If you remove all other IP address configurations on your firewall, the management IP address configuration is removed as well, and the firewall is deallocated. The public IP address assigned to the management IP address configuration can't be removed, but you can assign a different public IP address.

Deploying a New Azure Firewall with Management NIC for Forced Tunneling

If you prefer to deploy a new Azure Firewall instead of the Stop/Start method, make sure to include a Management Subnet and Management NIC as part of your configuration.

Important Note

  • Single Firewall per Virtual Network (VNET): Since two firewalls cannot exist within the same virtual network, it is recommended to delete the old firewall before starting the new deployment if you plan to reuse the same VNET.
  • Pre-create Subnet: Ensure the AzureFirewallManagementSubnet is created in advance to avoid deployment issues when using an existing VNET.

Prerequisites

  • Create the AzureFirewallManagementSubnet:
    • Minimum subnet size: /26
    • Example: 10.0.1.0/26

Deployment Steps

  1. Go to Create a Resource in the Azure Portal.
  2. Search for Firewall and select Create.
  3. On the Create a Firewall page, configure the following:
    • Subscription: Select your subscription.
    • Resource Group: Select or create a new resource group.
    • Name: Enter a name for the firewall.
    • Region: Choose your region.
    • Firewall SKU: Select Basic, Standard, or Premium.
    • Virtual Network: Create a new virtual network or use an existing one.
      • Address space: e.g., 10.0.0.0/16
      • Subnet for AzureFirewallSubnet: e.g., 10.0.0.0/26
    • Public IP Address: Add new Public IP
      • Name: e.g., FW-PIP
  4. Firewall Management NIC
    • Select Enable Firewall Management NIC
      • Subnet for AzureFirewallManagementSubnet: e.g., 10.0.1.0/24
      • Create Management public IP address: e.g., Mgmt-PIP
  5. Select Review + Create to validate and deploy the firewall. This will take a few minutes to deploy.