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 traffic to Azure via S2S Connection for inspection.
I am afraid this will not be feasible with Azure VPN Gateway.
You will need Azure vWAN to achieve forced tunneling internet traffic from OnPrem towards Azure.
What's the Problem with traditional VPN gateway:
Please note that:
Internet connectivity is not provided through the VPN gateway. As a result, all traffic bound for the Internet is dropped.
How can this be achieved?:
You would require a
- Azure vWAN
- and Azure secured vHub (Azure Firewall or any such NVA)
In order to reach the Internet via Azure, you need to deploy a secured virtual hub with Azure firewall manager and use Internet Routing Policy (advertise 0.0.0.0/0 to your OnPrem site)
Refer:
- Azure Firewall as NVA : https://learn.microsoft.com/en-us/azure/firewall-manager/secure-cloud-network
- Internet Routing Policy : https://learn.microsoft.com/en-us/azure/virtual-wan/how-to-routing-policies#background
- Prefix advertisement to on-premises : https://learn.microsoft.com/en-us/azure/virtual-wan/how-to-routing-policies#prefixadvertisments
- Make sure Propagate default route or Enable internet security flag is set to true on the connection
Kindly let us know if you need further assistance on this issue.
Thanks,
Kapil
Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.