Hub & Spoke - P2S VPN Traffic via Azure Firewall

devopsfj 201 Reputation points
2024-05-08T11:06:43.35+00:00

Is the following scenario supported?

We have 3 Virtual Networks:

VNET-01-UKSOUTH-PROD

VNET-01-UKWEST-PROD

VNET-02-UKWEST-PROD

VNET-01-UKSOUTH-PROD & VNET-01-UKWEST-PROD are peered.

VNET-01-UKWEST-PROD & VNET-02-UKWEST-PROD are peered.

VNET-01-UKSOUTH-PROD & VNET-02-UKWEST-PROD are NOT peered.

I need to be able to control the AKS private cluster in VNET-02-UKWEST-PROD from the P2S VPN in VNET-01-UKSOUTH-PROD. Is there anyway I can route traffic through both Firewalls to achieve this, is this a supported scenario.

Please find below diagram, the arrows in red is what I am trying to achieve.

User's image

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,555 questions
Azure Firewall
Azure Firewall
An Azure network security service that is used to protect Azure Virtual Network resources.
674 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,490 questions
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 46,676 Reputation points Microsoft Employee
    2024-05-08T11:42:15.03+00:00

    @devopsfj ,

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

    This should be doable provided that the UDR configurations and the VPN Gateway configurations are correct.

    Your exact/similar archietcture is documented here : Use Azure Firewall to route a multi hub and spoke topology.

    • User's image

    Firewall Configuration,

    • In VNET-01-UKSOUTH-PROD Firewall's Subnet, make sure you add the address prefix of the VNET-02-UKWEST-PROD and nextHop as the IP of VNET-01-UKWEST-PROD Firewall
    • In VNET-01-UKWEST-PROD Firewall's Subnet, make sure you add the address prefix of the P2S VPN Client Pool and nextHop as the IP of VNET-01-UKSOUTH-PROD Firewall

    AKS Subnet Configuration,

    • Make sure there is a route table attached and add the address prefix of the P2S VPN Client Pool and nextHop as the IP of VNET-01-UKWEST-PROD Firewall

    VPN Gateway Configuration,

    • In the GatewaySubnet, attach a route table with VNET-02-UKWEST-PROD and nextHop as the IP of VNET-01-UKSOUTH-PROD Firewall
    • Also, you must advertise the VNET-02-UKWEST-PROD to the P2S Clients.

    I'd suggest you deploy a VM in the VNET-01-UKSOUTH-PROD VNET first and make sure this has connectivity to the AKS first, then proceed to test this with P2S Clients.

    • As the document I shared primarily covers this scenario and you can validate the configuration.
    • And it will help you troubleshoot further with P2S Setup.

    Hope this helps.

    Cheers,

    Kapil

    1 person found this answer helpful.

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.