Unable to bypass network traffic through firewall, if private link is configured for storage account.

Paritosh Kabra 0 Reputation points
2024-11-04T04:49:13.8666667+00:00

I have a firewall configured in subnet x in my vnet.
I also have an aks cluster launched in the same vnet, within subnet y.

I have configured a private endpoint for a storage account, and am trying to access the same from my aks subnet, which is successfully accessible.

In my knowledge, since this traffic is internal subnet traffic within the vnet, this shouldn't have been going through the firewall, since the routing configuration passes the traffic through firewall if it's an internet traffic (wildcard match again 0.0.0.0/0).

Azure Firewall
Azure Firewall
An Azure network security service that is used to protect Azure Virtual Network resources.
685 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,532 questions
Azure Private Link
Azure Private Link
An Azure service that provides private connectivity from a virtual network to Azure platform as a service, customer-owned, or Microsoft partner services.
517 questions
{count} votes

1 answer

Sort by: Most helpful
  1. KapilAnanth-MSFT 47,206 Reputation points Microsoft Employee
    2024-11-05T05:57:07.4166667+00:00

    @Paritosh Kabra ,

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    I understand that

    • You have a Private EndPoint for Storage Account
    • Internet traffic are expected to go via Azure Firewall using the 0.0.0.0/0 route in UDR
    • However, despite having the PE, you see the traffic is going via Azure Firewall.

    Please note that having a Private EndPoint alone does not guarantee that the traffic stays within the VNET (or peered networks)

    • You should also have a Private DNS Zone that resolves the Storage Account's FQDN to the Private IP of the Storage Account's PE
    • Without this, the DNS would resolve to the Public IP of the Storage Account and traffic would go to Internet (via Firewall in your case because of 0.0.0.0/0 route)
    • See : DNS changes for private endpoints

    As next steps,

    Let us know how this goes

    Cheers,

    Kapil

    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.