I noticed that the effective route using the Azure troubleshooting tools: https://docs.microsoft.com/en-us/azure/virtual-network/diagnose-network-routing-problem points the default route to the internet. What is the easiest way to route traffic back on premise through a VPN so it will then go through an on-premise FW/Web Proxy and then out on the internet. The LGW won't let me add that default route back on prem and I'm trying to avoid installing an NVA to route this traffic.


We worked with MCS and this is the solution: https://docs.microsoft.com/en-us/powershell/module/az.network/set-azvirtualnetworkgatewaydefaultsite?view=azps-2.4.0

The Set-AzVirtualNetworkGatewayDefaultSite is not exposed in the Azure portal and allows you to force tunneling traffic back to your VPN.

Using the above command along with creating an UDR that points traffic to the virtual gateway seems to do the trick.

| improve this answer | |

You need to advertise via BGP to Azure VPN gateway to achieve Force Tunneling.

You can follow this document to achieve what you asked for.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.