Configuring ipv6 NSG rules on expressroute internal ip addresses

Peter Boers 0 Reputation points
2024-02-28T14:40:51.7366667+00:00

When attempting to setup IPv6 NSG rules they either seem to block all traffic or none. Our setup is as follows:

  • Expressroute peering towards a dualstack VNet
  • A default route is announced over the expressroute towards the VNet
  • The VNet hosts an AKS service
  • The NSG inbound filter has a deny all rule which is a catch all
  • The NSG outbound filter allows all traffic

When attempting to block Ipv6 access to certain TCP or UDP ports this results in a request timeout. An example of what I'm attempting is defining an allow rule for traffic to TCP 80 and 443 to enable access to a webserver available in IPv6 and IPv4. This works fine for IPv4 but not for IPv6. When I attempt to create an IPv6 only rule, it also does not work. When I allow all traffic on IPv6 subnets it does allow traffic (but also traffic to unwanted ports). When I narrow down the source IP prefixes, I am able to filter traffic more accurately, however I also need to be able to filter on TCP and UDP ports. Is anyone experiencing similar problems?

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,256 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,952 questions
Azure ExpressRoute
Azure ExpressRoute
An Azure service that provides private connections between Azure datacenters and infrastructure, either on premises or in a colocation environment.
340 questions
{count} votes

1 answer

Sort by: Most helpful
  1. dashanan13 930 Reputation points
    2024-02-29T14:32:46.9733333+00:00

    Hei @Peter Boers ,Thank you for contacting Microsoft Q&A. I am afraid that the problem you asre facing may be due to limited support for IPv6 on Azure. According to the IPV6 Azure Vnet documentation, it says "While it's possible to create NSG rules for IPv4 and IPv6 within the same NSG, it isn't currently possible to combine an IPv4 subnet with an IPv6 subnet in the same rule when specifying IP prefixes." This may be contributing to the behavior. Please mark this as answer if it helped.