Azure: Creating Network Security Group

This article was written using chatGPT.

To create a Network Security Group (NSG) in Azure, you can follow these steps:

  1. Log in to the Azure portal at https://portal.azure.com/
  2. In the search bar, search for "Network security group" in the search bar.
  3. Click on "Network security group" from the list of results and then click on "Create".
  4. In the "Basics" tab of the deployment page, fill out the following information:
  5. Subscription: Select the Azure subscription that you want to use.
  6. Resource group: Select an existing resource group or create a new one.
  7. Name: Enter a name for the NSG.
  8. Region: Select the Azure region where you want to deploy the NSG.
  9. Click on "Review + create" to review the configuration settings for the NSG.
  10. Once you have reviewed the settings, click on "Create" to deploy the NSG in Azure.

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

Now you have a NSG to configure.

Your NSG comes with default inbound and outbound security rules. If you attach this NSG to your management subnet, for example, you can control traffic going to that subnet by inbound rule (e.g., I can allow only SSH traffic to my chosen subnet).

  1. Select "Inbound security rules" tab.
  2. Click on "Add" to create a new rule.
  3. Choose the source and destination for the traffic.
  4. Select the protocol (TCP, UDP, etc.) and port numbers for the traffic.
  5. Choose whether to allow or deny the traffic.
  6. Change priority if you want to (rule is executed top down with lower value having higher priority).
  7. Choose a new or accept the default.
  8. Once you have configured the security rules, click on "Add" to add the security rule to this NSG.

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

After the NSG is deployed, you can associate it with your virtual machines, subnets, or network interfaces to control the traffic flow to and from your Azure resources.

No alt text provided for this image

To attach a Network Security Group (NSG) to a subnet in Azure, you can follow these steps:

  1. Navigate to the virtual network where the subnet is located and select the subnet to which you want to attach the NSG.
  2. Select the NSG from the list of existing NSGs.
  3. Once you have selected the NSG, click on "Save" to associate the NSG with the subnet.

No alt text provided for this image
No alt text provided for this image

After the NSG is associated with the subnet, the NSG rules will be applied to all the resources in that subnet. You can also associate an NSG directly with a network interface or a virtual machine.

要查看或添加评论,请登录

Tai?? Tran的更多文章

  • Wiz Security, an Intro to

    Wiz Security, an Intro to

    Over the weekend, I had the chance to dive into a demo from Wiz.io, and it’s pretty damn cool! Wiz.

  • Azure: Deploying Palo Alto Networks VM-series Part-3

    Azure: Deploying Palo Alto Networks VM-series Part-3

    In this article, we'll explore how to set up the VM-series firewall to protect your Azure resources. We will configure…

  • Azure: Creating a vnet Peering

    Azure: Creating a vnet Peering

    Virtual network (vnet) peering enable communication between two different vnets. In this demo, I want to peer my vnet…

    1 条评论
  • Generate Certificate Request using OpenSSL

    Generate Certificate Request using OpenSSL

    This article was written using chatGPT. You must have OpenSSL installed in your machine in order to do this.

  • Generating a server certificate

    Generating a server certificate

    This article was written using chatGPT. Creating a server identity certificate involves purchasing one from a trusted…

  • TLS Certificates

    TLS Certificates

    This article was written using chatGPT. Transport Layer Security (TLS) certificates play a crucial role in securing…

  • Crypto scam: pig butchering

    Crypto scam: pig butchering

    Hi everyone! I want to talk to you about this thing called Pig Butchering, which is a scam with crypto money. You might…

    16 条评论
  • Azure: Deploying Palo Alto Networks VM-series Part-2

    Azure: Deploying Palo Alto Networks VM-series Part-2

    This is a continuation of Part-1. Configure Security Zones There should only be INSIDE (trust) and OUTSIDE (untrust)…

  • Azure: Deploying Palo Alto Networks VM-series Part-1

    Azure: Deploying Palo Alto Networks VM-series Part-1

    This is Part 1 of 2-parts article. Refer to the diagram above for the design description: a Palo Alto Networks…

    2 条评论
  • Azure: Creating Route Table

    Azure: Creating Route Table

    This article was written using chatGPT. To create an Azure route table, you can follow these steps: Go to the Azure…

社区洞察

其他会员也浏览了