Setup NSG inbound security rules for multiple VM

401 Views Asked by At

In my NSG I have inbound security rules like this:

Priority Name Port Protocol Destination
-------- ---- ---- -------- -----------
340      RDP  3389 TCP      10.0.0.4
350      Tn   22   TCP      10.0.0.5

In NSG -> Network Interfaces

Name  Public IP   Private IP 
----- ----------  -----------
Svr1  137.116.x.x 10.0.0.4
Svr2  -           10.0.0.5

The NSG is only able to port forward port 3389 to Svr1 (10.0.0.4), where the public IP address was associated with.

I can't port forward any other port to Svr2 (10.0.0.5) or another VM within the subnet, where it Public IP address is not associated with.

My I know what is wrong with my setting?

1

There are 1 best solutions below

0
On

you need to assign public ip to any vm you want to access externally. alternatively you need to assign all the vms to the same load balancer and configure NATing\load balancing