Routing internet traffic through NVA

Ankith 0 Reputation points
2023-12-23T05:52:39.8533333+00:00

I have 2 subnets in my Vnet and in one of the subnet I have a NVA with ip forwarding enabled in the NIC as well as in the OS this also has a public ip so that I can ssh to it from my pc, the second subnet has a vm running in it, and also has a public ip for ssh, How do i make all the internet traffic to flow through the NVA before reaching the second subnet.
I tried adding a route table to the second subnet specifying that if the destination is the CIDR of second subnet, then next hop is virtual appliance (NVA) but that just disconnected my ssh connection to the vm in the second subnet and now im not able to ssh to it

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,256 questions
Azure ExpressRoute
Azure ExpressRoute
An Azure service that provides private connections between Azure datacenters and infrastructure, either on premises or in a colocation environment.
340 questions
{count} votes

1 answer

Sort by: Most helpful
  1. msrini-MSFT 9,266 Reputation points Microsoft Employee
    2023-12-23T20:12:11.4433333+00:00

    Hi,

    Currently the path is Asymmetric and hence your ssh session is getting dropped. Your traffic to the VM is over its public IP and you have added a UDR to forward traffic to NVA and when NVA SNATs and sends it back to client, it gets dropped.

    You will need to add a UDR rule where if your source is your client public IP next hop as internet and associate that to the VM subnet to which you are trying to ssh.

    Regards,

    Karthik Srinivas

    0 comments No comments