An enterprise is planning a hub-and-spoke network topology in Azure. The hub virtual network, `vnet-east-hub` (), contains a Virtual Network Gateway connected to an on-premises network () via a Site-to-Site VPN. The spoke virtual network, `vnet-east-spoke` (), hosts application virtual machines. You must ensure that all outbound internet traffic from `vnet-east-spoke` is forced to route through the Virtual Network Gateway in `vnet-east-hub` to the on-premises firewall for inspection.
Which two configuration steps should you include in the design?
- Configure the virtual network peering connection to allow gateway transit on `vnet-east-hub` and use remote gateways on `vnet-east-spoke`.Answer
- Create a route table with a user-defined route for pointing to the Virtual Network Gateway as the next hop, and associate it with the subnets in `vnet-east-spoke`.Answer
- CCreate a route table with a user-defined route for pointing to the spoke virtual network address space, and associate it with the GatewaySubnet in `vnet-east-hub`.
- DConfigure a Network Security Group (NSG) in `vnet-east-spoke` with an outbound security rule that permits traffic to the Internet service tag via the VPN Gateway.
Answer
To route all outbound internet traffic from the spoke VNet to the on-premises firewall, you must configure the virtual network peering connection to allow gateway transit on the hub and use remote gateways on the spoke, and create a route table with a user-defined route for pointing to the Virtual Network Gateway, associating it with the spoke subnets.
To implement forced tunneling from the spoke VNet, you must allow transit across the peered virtual networks and define a custom default route. Configuring the peering to use the remote gateway enables the spoke VNet to access the hub's gateway. Associating a route table to the spoke subnets with a UDR pointing to the Virtual Network Gateway ensures all outbound internet-bound traffic is forwarded to the hub's gateway rather than egressing directly to the internet.
Step-by-Step Solution
Key Concept
Forced tunneling in Azure hub-and-spoke networks using virtual network peering and user-defined routes.
Estimated Time:1m 30s