Skip to content

Commit 8842fa5

Browse files
authored
Create how-to-apply-acl-to-nni.md
created a new document on how to apply acl to nni
1 parent b3df63a commit 8842fa5

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
title: Applying ACLs to Network-to-Network Interconnects (NNI)
3+
description: Learn how to apply Access Control Lists (ACLs) to network-to-network interconnects (NNI) within Azure Nexus Network Fabric.
4+
author: sushantjrao
5+
ms.author: sushrao
6+
ms.service: azure-operator-nexus
7+
ms.topic: how-to
8+
ms.date: 04/18/2024
9+
ms.custom: template-how-to
10+
---
11+
12+
In Azure Nexus Network Fabric, maintaining network security is paramount for ensuring a robust and secure infrastructure. Access Control Lists (ACLs) are crucial tools for enforcing network security policies. This guide will lead you through the process of applying ACLs to network-to-network interconnects (NNI) within the Nexus Network Fabric.
13+
14+
### Applying Access Control Lists (ACLs) to NNI in Azure Fabric
15+
16+
To maintain network security and regulate traffic flow within your Azure Fabric network, applying Access Control Lists (ACLs) to network-to-network interconnects (NNI) is essential. This guide delineates the steps for effectively applying ACLs to NNIs.
17+
18+
#### Applying ACLs to NNI
19+
20+
Before applying ACLs to NNIs, utilize the following commands to view ACL details.
21+
22+
#### Viewing ACL Details
23+
24+
To view the specifics of a particular ACL, execute the following command:
25+
26+
```azurecli
27+
az networkfabric acl show --name acl-ingress --resource-group myResourceGroup
28+
```
29+
30+
This command furnishes detailed information regarding the ACL's configuration, administrative state, default action, and matching conditions.
31+
32+
#### Listing ACLs in a Resource Group
33+
34+
To list all ACLs within a resource group, use the command:
35+
36+
```azurecli
37+
az networkfabric acl list --resource-group myResourceGroup
38+
```
39+
40+
This command presents a comprehensive list of ACLs along with their configuration states and other pertinent details.
41+
42+
#### Applying Ingress ACL to NNI
43+
44+
```azurecli
45+
az networkfabric nni update --resource-group "example-rg" --resource-name "example-nnimgmt" --fabric "examplefabric" --ingress-acl-id "/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxx/resourceGroups/example-rg/providers/Microsoft.ManagedNetworkFabric/accesscontrollists/example-Ipv4ingressACL"
46+
```
47+
48+
| Parameter | Description |
49+
|-------------------|--------------------------------------------------|
50+
| --ingress-acl-id | Apply the ACL as ingress by specifying its ID. |
51+
52+
#### Applying Egress ACL to NNI
53+
54+
```azurecli
55+
az networkfabric nni update --resource-group "example-rg" --resource-name "example-nnimgmt" --fabric "examplefabric" --egress-acl-id "/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxx/resourceGroups/example-rg/providers/Microsoft.ManagedNetworkFabric/accesscontrollists/example-Ipv4ingressACL"
56+
```
57+
58+
| Parameter | Description |
59+
|------------------|------------------------------------------------|
60+
| --egress-acl-id | Apply the ACL as egress by specifying its ID. |
61+
62+
#### Applying Ingress and Egress ACLs to NNI:
63+
64+
```azurecli
65+
az networkfabric nni update --resource-group "example-rg" --resource-name "example-nnimgmt" --fabric "examplefabric" --ingress-acl-id "/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxx/resourceGroups/example-rg/providers/Microsoft.ManagedNetworkFabric/accesscontrollists/example-Ipv4ingressACL" --egress-acl-id "/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxx/resourceGroups/example-rg/providers/Microsoft.ManagedNetworkFabric/accesscontrollists/example-Ipv4egressACL"
66+
```
67+
68+
| Parameter | Description |
69+
|-------------------|----------------------------------------------------------------------------------------------------------------|
70+
| --ingress-acl-id, --egress-acl-id | To apply both ingress and egress ACLs simultaneously, create two new ACLs and include their respective IDs. |

0 commit comments

Comments
 (0)