- AWS Networking Cookbook
- Satyajit Das Jhalak Modi
- 406字
- 2021-07-02 19:41:35
How to do it...
- Log in to your AWS account and open the VPC Dashboard.

VPC Dashboard
- 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
- 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
- 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
- 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
- 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
- Click on Subnet Associations. Select the subnet that we created earlier. Click on the Save button:

NACL and subnet association
- We can go and select the subnet menu and see that the NACL associated with the subnet has changed:

NACL and subnet association success
- 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.
推薦閱讀
- Facebook Application Development with Graph API Cookbook
- Node.js Design Patterns
- Angular UI Development with PrimeNG
- JavaScript+DHTML語法與范例詳解詞典
- Python零基礎快樂學習之旅(K12實戰訓練)
- Python程序設計
- 單片機C語言程序設計實訓100例
- The Professional ScrumMaster’s Handbook
- Unity 5.X從入門到精通
- 軟件設計模式(Java版)
- HTML并不簡單:Web前端開發精進秘籍
- Linux Networking Cookbook
- jBPM6 Developer Guide
- Netty 4核心原理與手寫RPC框架實戰
- Ajax與jQuery程序設計