A community member has associated this post with a similar question:
How to route all internet bound traffic originating from a VM flow through a NVA
Only moderators can edit this content.
I have 2 subnets inside a VNet, default subnet & NVA subnet. I have one VM(windows server 2022 data center) inside NVA subnet configured as a NVA with ip forwarding enabled at NIC level and in OS level I have enabled LAN routing. This NVA machine is having a public IP as well. In the default subnet I have one Windows VM.
Now I want to route all internet bound traffic originating from VMs inside default subnet flow through the NVA VM inside NVA subnet. I created one route table and created one custom user defined route with destination CIDR range as 0.0.0.0/0, next hop type as Virtual appliance and next hop address as NVA VM's private IP address and attached this route to default subnet. Still VMs inside default subnet are not able to connect to the internet. Please suggest.