Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that you would like to route all internet bound traffic via Azure Firewall.
Observation:
- I see OnPrem is advertising a route 0.0.0.0/8 to Azure.
- Azure Firewall is configured in Forced Tunneling mode
Analysis:
1.We must first understand how Azure routes traffic :
- When outbound traffic is sent from a subnet, Azure selects a route based on the destination IP address, using the longest prefix match algorithm (This is the deciding factor)
- If multiple routes contain the same address prefix, Azure selects the route type, based on the following priority:
- User-defined route
- BGP route
- System route
- BGP route
- User-defined route
- Now, you have your OnPrem advertising 0.0.0.0/8 to Azure.
- So, adding a 0.0.0.0/1 Route to Route Tables will not be sufficient. (as 0.0.0.0/8 has a longest prefix match)
- Instead, you must have both, 0.0.0.0/8 (to override onPrem BGP Route) and 0.0.0.0/0 (for any unmatched routes)
2.Send Traffic from Azure Firewall to Internet
- Even if the Azure Firewall is created with support for Forced Tunneling, you do not have to add a Route Table here at all.
- The default behavior will provide outbound connectivity to Internet just like a regular firewall.
Hope this helps.
Cheers,
Kapil