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.
780 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,772 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.
550 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Deepanshu katara 16,720 Reputation points MVP Moderator
    2024-11-04T10:22:57.4833333+00:00

    Ok then I think network policies are enabled for your subnet in a virtual network by default it should be disabled so that certain security rules or configurations—specifically those involving Network Security Groups (NSGs) and User-Defined Routes (UDRs)—do not apply to private endpoints within that subnet.

    Please check this doc for more ref and also look for steps to disable this policy if enabled

    https://learn.microsoft.com/en-us/azure/private-link/disable-private-endpoint-network-policy?tabs=network-policy-portal\

    If still have questions , please let me know

    0 comments No comments

  2. KapilAnanth-MSFT 49,611 Reputation points Microsoft Employee Moderator
    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.