An enterprise is designing a secure hybrid network topology in Azure. The design includes a hub virtual network named `vnet-hub-prod` () that contains an Azure VPN Gateway connected to an on-premises datacenter. A spoke virtual network named `vnet-spoke-app` () is peered with `vnet-hub-prod`. The spoke network contains a subnet named `subnet-app` ().
The enterprise requires that all outbound internet traffic from `subnet-app` is redirected to the on-premises datacenter for security inspection. Resources within `vnet-spoke-app` must retain the ability to communicate directly with each other.
Which three configuration steps should you recommend to meet these requirements?
- On the virtual network peering from vnet-hub-prod to vnet-spoke-app, enable the Allow gateway transit option.Cevap
- On the virtual network peering from vnet-spoke-app to vnet-hub-prod, enable the Use the remote virtual network's gateway or Route Server option.Cevap
- Associate a route table with subnet-app that contains a route for with a next hop type of Virtual network gateway.Cevap
- DAssociate a route table with subnet-app that contains a route for with a next hop type of Virtual network gateway.
- EAssociate a route table with subnet-app that contains a route for with a next hop type of Internet.
Cevap
To meet the requirements, you must enable Allow gateway transit on the peering link from the hub, enable Use the remote virtual network's gateway or Route Server on the peering link from the spoke, and associate a route table with the spoke subnet containing a route for with a next hop type of Virtual network gateway.
To route spoke traffic through a hub gateway, the hub-side peering must have 'Allow gateway transit' enabled, and the spoke-side peering must have 'Use the remote virtual network's gateway or Route Server' enabled. Additionally, to force all internet-bound traffic to on-premises via this gateway, a default route () must be defined in a route table associated with the spoke subnet, with the next hop set to the Virtual network gateway.
Adım Adım Çözüm
Anahtar Kavram
Forced tunneling and gateway transit in virtual network peering