官术网_书友最值得收藏!

How to do it...

  1. Log in to your AWS account and open the VPC Dashboard.
 VPC Dashboard
  1. Click on Network ACLs from the left menu bar under the Security menu. Default NACLs created with a default VPC and other VPCs that we created in Chapter 1, Getting Started with AWS Networking Components, appear on the screen. If you click on Inbound Rules and Outbound Rules, you will see that there is a rule number 100 which allows all traffic with all protocols from all ports. So effectively, the firewall is all open and traffic from any source, protocol, and port can connect to resources in this NACL. In the Subnet Associations tab, you can see that both subnets in the VPC are associated with NACL:
 Default NACL
  1. Click on Create Network ACL for creating a new NACL. Provide the Name tag and select the VPC for which you want to create an NACL. Click on Yes, Create:
 Network ACL creation from console
  1. You can see that the Default column is No for the NACL that we just created. Click on Inbound Rules or Outbound Rules:
 User created NACL
  1. Click on the Edit button in the Inbound Rules tab. Click on Add another rule. You can add multiple rules. Here I am allowing all traffic for simplicity. Click on the Save button:
 Add inbound rules to NACL
  1. Click on the Edit button in the Outbound Rules tab. Click on Add another rule. You can add multiple rules. Here I am allowing all traffic for simplicity. Click on the Save button:
 Add outbound rules to NACL
  1. Click on Subnet Associations. Select the subnet that we created earlier. Click on the Save button:
 NACL and subnet association
  1. We can go and select the subnet menu and see that the NACL associated with the subnet has changed:
 NACL and subnet association success
  1. If a custom NACL is not associated with any subnet, it can be deleted by selecting the Delete button in the console. However, we can't delete the NACL that we created now as it is attached to a subnet. First we need to replace the subnet association, as given in step 7, and then can delete it if required.
主站蜘蛛池模板: 新竹县| 西乡县| 凌海市| 乐陵市| 修文县| 吉木萨尔县| 襄樊市| 且末县| 商南县| 龙江县| 大同市| 泗阳县| 年辖:市辖区| 江安县| 仁怀市| 凌云县| 肇东市| 清涧县| 尼木县| 清丰县| 靖远县| 来凤县| 马公市| 旺苍县| 云南省| 宁陵县| 湘潭市| 道真| 乌拉特前旗| 宁武县| 保康县| 平果县| 六安市| 三明市| 九寨沟县| 河间市| 广州市| 遂平县| 江安县| 巧家县| 台东县|