> For the complete documentation index, see [llms.txt](https://chloe-codes1.gitbook.io/til/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chloe-codes1.gitbook.io/til/aws/practical-aws/07_network_acls.md).

# Network ACLs

> A deep dive into Network ACL - Practical ver.

\ <br>

### Before getting started

Things that can control the network besides firewalls

* Routing Table
  * Controls where to send packets
* Network ACL
  * Transmits or blocks packets based on rules

\ <br>

### What are Network ACLs?

* Rules that determine whether to block or allow certain packets
* Configured rules apply to all resources, so you can't set too many
  * They apply to all resources in the subnet
    * Therefore, Network ACLs must be well designed
      * Why? Even if the firewall (SG) is properly configured, access may be blocked due to a **Deny Rule** in the `Network ACL`
* The more `Network ACL` rules there are, the more confusing firewall configuration becomes, so it's best to keep `Network ACL` rules as concise as possible
  * If firewall settings are done properly, you don't need to configure `Network ACLs` separately!

\ <br>

### Rule number in Network ACLs

* Network ACL rules have priorities
  * They are applied in order of highest priority (Rule number)!

\ <br>

### Network ACLs and Well Known Ports

* The reason why `1024 - 65535` is allowed in the **Port Range** of Network Inbound rules
  * \== Because they are `Well Known Ports`!
    * [Learn about well known ports](https://chloe-codes1.gitbook.io/til/network/11_tcp_and_udp#1-layer-4-protocol-tcp-udp-and-service-port)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://chloe-codes1.gitbook.io/til/aws/practical-aws/07_network_acls.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
