# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
