QuestionQ182

VerifiedImplement and manage virtual networking

You have an Azure virtual network named VNet1 that includes a subnet named Subnet1. Subnet1 contains three Azure virtual machines, and each virtual machine has a public IP address.

The virtual machines host several applications that are available to users on the Internet over port 443.

Your on-premises network has a site-to-site VPN connection to VNet1.

You discover that the virtual machines are accessible by using Remote Desktop Protocol (RDP) from both the Internet and the on-premises network.

You need to prevent RDP access to the virtual machines from the Internet, unless the RDP connection is established from the on-premises network. The solution must ensure that all the applications remain accessible to Internet users.

What should you do?

Explanation

A network security group linked to Subnet1 can filter inbound traffic by protocol, port, and source. Creating a deny inbound rule for TCP port 3389 from Internet sources blocks direct RDP from the public Internet, while higher-priority allow rules can permit RDP from the on-premises address range across the site-to-site VPN. NSGs can also continue to allow HTTPS traffic on port 443, so the Internet-facing applications remain reachable. Azure NSG rules are designed for exactly this kind of subnet-level access control.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!