- 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.
推薦閱讀
- GAE編程指南
- Java Web基礎(chǔ)與實(shí)例教程(第2版·微課版)
- Mastering Natural Language Processing with Python
- Microsoft System Center Orchestrator 2012 R2 Essentials
- Mastering Linux Network Administration
- Learning R for Geospatial Analysis
- ServiceNow:Building Powerful Workflows
- OpenCV Android Programming By Example
- Angular Design Patterns
- Secret Recipes of the Python Ninja
- Clojure High Performance Programming(Second Edition)
- ASP.NET開發(fā)寶典
- Laravel Design Patterns and Best Practices
- Spring Boot從入門到實(shí)戰(zhàn)
- ServiceDesk Plus 8.x Essentials