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

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.
主站蜘蛛池模板: 卢龙县| 蓝山县| 通化县| 屯昌县| 苍梧县| 伊川县| 获嘉县| 锡林浩特市| 贡山| 青海省| 静宁县| 卢湾区| 通道| 富锦市| 若羌县| 白城市| 昭通市| 宝山区| 清苑县| 寻乌县| 定陶县| 大新县| 翼城县| 右玉县| 赞皇县| 新河县| 麟游县| 衡南县| 彰化市| 长兴县| 吉隆县| 大庆市| 那坡县| 宣武区| 名山县| 甘孜| 通河县| 元氏县| 祁门县| 榆林市| 安平县|