Edit

Configure a network security group for Azure Managed Lustre

You can configure a network security group to filter inbound and outbound network traffic to and from Azure resources in an Azure virtual network. A network security group can contain security rules that filter network traffic by IP address, port, and protocol. When a network security group is associated with a subnet, security rules are applied to resources deployed in that subnet.

This article describes how to configure network security group rules to secure access to an Azure Managed Lustre file system cluster as part of a Zero Trust strategy.

Prerequisites

Create and configure a network security group

To create a network security group in the Azure portal:

  1. In the portal search box, enter Network security group, and then select Network security groups.

  2. Select Create.

  3. On the Create network security group pane, on the Basics tab, enter or select the following values:

    Setting Action
    Project details
    Subscription Select your Azure subscription.
    Resource group Select an existing resource group, or create a new one by selecting Create new. This example uses the sample-rg resource group.
    Instance details
    Network security group name Enter a name for the network security group.
    Region Select the Azure region to use.

    Screenshot that shows how to create a network security group in the Azure portal.

  4. Select Review + create.

  5. After Validation passed appears, select Create.

Associate the network security group to a subnet

After you create the network security group, you can associate it to the unique subnet in your virtual network where the Azure Managed Lustre file system is located.

To associate the network security group to a subnet by using the Azure portal:

  1. In the portal search box, enter Network security group, and then select Network security groups.

  2. Select the name of your network security group, and then select Subnets.

  3. To associate a network security group to the subnet, select Associate. Then select your virtual network and a subnet to associate the network security group.

  4. Select OK.

Screenshot that shows how to associate a network security group to a subnet in the Azure portal.

Configure network security group rules

When you configure your network security group, it's important to align with the guidelines that are provided. If you correctly set up your network security group, Managed Lustre operates essential services like the Managed Lustre protocol, engineering and diagnostic support, Azure Blob Storage, and security monitoring. Disabling any of these essential services might result in degraded product and support experience.

To configure network security group rules for Azure Managed Lustre file system support, add inbound and outbound security rules to the network security group associated with the Managed Lustre subnet. The following sections describe how to create and configure the inbound and outbound security rules for Azure Managed Lustre file system support.

Note

The security rules described in this section are based on an Azure Managed Lustre file system test deployment in the East US region and with Blob Storage integration enabled. Adjust the rules for your deployment region, virtual network subnet IP address, and other configuration settings for your Managed Lustre file system.

Create inbound security rules

The following example shows how to create and configure a new inbound security rule in the Azure portal.

  1. In the Azure portal, go to your network security group resource.
  2. Under Settings, select Inbound security rules.
  3. On the command bar, select Add.
  4. On the Add inbound security rule pane, configure the settings for the rule, and then select Add.

Screenshot that shows how to create an inbound security rule for a network security group in the Azure portal.

Add the following inbound rules to the network security group. For a description of all Azure service tags, see the Azure service tags overview.

Priority Name Ports Protocol Source Destination Action Description
110 rule-name Any Any IP address/CIDR range for the Managed Lustre file system subnet IP address/CIDR range for the Managed Lustre file system subnet Allow Allows traffic flow between Managed Lustre hosts for file system activities. The system also requires TCP port 22 (Secure Shell) for initial deployment and configuration.
111 rule-name 988, 1019 to 1023 TCP IP address/CIDR range for the Managed Lustre client subnet IP address/CIDR range for the Managed Lustre file system subnet Allow Allows your Managed Lustre clients to interact with all Managed Lustre storage nodes for file system activities. The Azure Managed Lustre file system protocol requires ports 988 and 1019 to 1023.
112 rule-name Any TCP AzureMonitor VirtualNetwork Allow Allows the AzureMonitor service to detect health or security issues with the Managed Lustre service hosts.
120 rule-name Any Any Any Any Deny Denies all other inbound flows.

The inbound security rules in the Azure portal should look similar to the following example:

Screenshot that shows inbound security rules for a network security group in the Azure portal.

The figure is provided as an example. For the complete list of rules, see the preceding table. Adjust the subnet IP address, CIDR range, and other settings for your deployment.

Create outbound security rules

To create and configure a new outbound security rule:

  1. In the Azure portal, open the network security group resource.
  2. Under Settings, select Outbound security rules.
  3. On the command bar, select Add.
  4. On the Add outbound security rule pane, configure the settings for the rule, and then select Add.

Screenshot showing how to create an outbound security rule for a network security group in the Azure portal.

Add the following outbound rules and network service tags to the network security group. For a description of all Azure service tags, see the Azure service tags overview.

Priority Name Ports Protocol Source Destination Action Description
100 rule-name 443 TCP VirtualNetwork AzureMonitor Allow Allows the AzureMonitor service to report health and security issues diagnosed by the Managed Lustre service hosts.
101 rule-name 443 TCP VirtualNetwork AzureKeyVault.EastUS Allow Allows access to the AzureKeyVault network service to store essential security secrets for basic operation and storage access.
102 rule-name 443 TCP VirtualNetwork AzureActiveDirectory Allow Allows access to AzureActiveDirectory for the secure Microsoft Entra ID service used during deployment and support activities.
103 rule-name 443 TCP VirtualNetwork Storage.EastUS Allow Allows access to storage account endpoints that are required for the Managed Lustre hardware security module, system health signals, and other communication flows to the Managed Lustre resource provider.
104 rule-name 443 TCP VirtualNetwork GuestAndHybridManagement Allow Allows access to GuestAndHybridManagement so that the service can use Azure Log Analytics for supportability workflows.
105 rule-name 443 TCP VirtualNetwork ApiManagement.EastUS Allow Allows access to ApiManagement for security and performance of Managed Lustre interactions with other services.
106 rule-name 443 TCP VirtualNetwork AzureDataLake Allow Allows access to AzureDataLake so that security and health services running on the Managed Lustre platform can log essential information for platform supportability.
107 rule-name 443 TCP VirtualNetwork AzureResourceManager Allow Allows access to AzureResourceManager for deployment and maintenance of internal resources. Note: Don't use the region-specific tag (for example, AzureResourceManager.EastUS).
108 rule-name 988, 1019-1023 TCP IP address/CIDR range for the Managed Lustre file system subnet IP address/CIDR range for the Managed Lustre client subnet Allow Allows the essential ports for Managed Lustre protocol operation between the storage servers and Managed Lustre client VMs.
109 rule-name 123 UDP IP address/CIDR range for the Managed Lustre file system subnet 168.61.215.74/32 Allow Allows access to the Microsoft NTP server for time sync of Managed Lustre storage servers and client VMs.
110 rule-name 443 TCP VirtualNetwork 20.34.120.0/21 Allow Allows Managed Lustre to upload telemetry to its telemetry service so that Azure engineering can provide product support.
111 rule-name Any Any IP address/CIDR range for the Managed Lustre file system subnet IP address/CIDR range for the Managed Lustre file system subnet Allow Allows Managed Lustre servers to communicate with each other within the subnet. The system uses port 22 (Secure Shell) during initial deployment and configuration.
112 rule-name 443 TCP VirtualNetwork EventHub Allow Allows access to EventHub so that security and monitoring services running on the Managed Lustre platform can store real-time system events.
1000 rule-name Any Any VirtualNetwork Internet Deny Denies outbound flows to the internet.
1010 rule-name Any Any Any Any Deny Deny all other outbound flows.

The outbound security rules in the Azure portal should look similar to the following example:

Screenshot that shows outbound security rules for a network security group in the Azure portal.

This figure is provided as an example. For the complete list of rules, see the preceding table. Adjust the subnet IP address, the CIDR range, and other settings for your deployment.

Check connectivity from the file system subnet

The client network check script can help diagnose DNS, routing, and outbound connectivity issues after you configure the rules. Run it on a Linux VM in the intended Azure Managed Lustre cluster subnet so the VM encounters the same subnet network security group and routes. A VM in a peered subnet with equivalent routing and rules provides only indicative results. The VM needs Bash, curl, getent, timeout, and common Linux utilities; the script doesn't require sudo.

Download and run the script without Azure CLI checks:

curl -fLO https://raw.githubusercontent.com/microsoft/amlFilesystem-tools/main/tools/client/client_network_check.bash
bash client_network_check.bash --skip-az

Without --skip-az, the script also attempts effective network security group and route checks for the VM's network interface. Install Azure CLI and sign in first with az login --identity (for an assigned managed identity) or az login. The identity needs permission to read the VM and its network resources, and the effective-rule and route checks require the applicable permissions; these checks can be skipped if access is unavailable.

If you use HSM storage integration, you can pass the full HTTPS storage endpoint URL from your configuration with --storage-url, for example --storage-url https://myacct.blob.core.windows.net. Without this option, the storage check is skipped; don't infer the endpoint from the storage account name.

On an Azure US Government VM, the script can detect AzureUSGovernment from instance metadata. If detection isn't available, specify --cloud AzureUSGovernment (for example, bash client_network_check.bash --skip-az --cloud AzureUSGovernment). This setting selects the government Azure Resource Manager (management.usgovcloudapi.net), sign-in (login.microsoftonline.us), Geneva logging (gcs.monitoring.core.usgovcloudapi.net), and Watson (analysisservice.watson.azure.us) endpoints instead of the public-cloud endpoints.

The script is a diagnostic aid, not a validation of every Azure Managed Lustre dependency or the Lustre protocol ports. A successful run doesn't guarantee that all required paths are open; investigate any failures alongside your network security group, routes, DNS, and private endpoint configuration.