简体   繁体   中英

Setup NSG inbound security rules for multiple VM

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM