Is it possible to route all vnet traffic back down a VPN tunnel when peered in hub and spoke

Simon Windeler 20 Reputation points
2024-06-12T11:15:20.8933333+00:00

I have one Virtual Network Gateway in an hub network and two spoke vnets connected to it. Is it possible to route all vnet traffic down the VPN tunnel (override the gateway routes) to on-premises firewall or would it require an additional VPN to separate the routes?

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,236 questions
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 38,606 Reputation points Microsoft Employee
    2024-06-14T10:33:29.64+00:00

    @Simon Windeler ,

    Thanks for the info.

    I am afraid this routing scenario will not be possible.

    And I am not able to find any documents that describes such configurations.

    If your requirement is to VNET to VNET traffic to go OnPREM firewall,

    • You should not use Hub-Spoke Architecture
    • Instead, have two VPN Gateways in each VNETs and connect the VNETs to the OnPrem
      • Let's call the VNETs VNET1 and VNET2
    • Enable BGP across VNET1 <----> OnPrem and VNET2 <----> OnPrem
    • Once this is done, all the traffic from VNET1 destined to VNET2 will go via OnPrem
      • Where you can filter the traffic via your OnPrem Firewall
    • Similarly, all the traffic from VNET2 destined to VNET1 will go via OnPrem
    • Practically, the network flow becomes,
      • VNET1 <----> OnPrem <----> VNET2
      • Where "<---->" indicates a S2S Connection.

    Alternatively, my suggestion would be to deploy Azure Firewall or NVA in the Hub VNET in a Hub Spoke scenario

    This way, all traffic between HubVNET and SpokeVNET would go via the Azure Firewall or NVA

    Should there be any follow-up questions or concerns, please let us know and we shall try to address them.

    Thanks,

    Kapil

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful