Network Access Control List (NACL) Flashcards
What are NACLs?
They are a type of security filters (like firewalls) that can filter traffic as it enters or leaves a subnet.
What traffic can a NACL control/filter?
Traffic that enters/leaves a subnet
To what network conponent are attached?
To subnets
Can NACLs be associated with resources?
No, they are associated with subnets
Do VPCs have default NACLs associated with them?
Yes, they are associated with all subnets of that VPC by default.
What do NACLs do when 2 EC2 instances in a subnet want to communicate?
Nothing, because they interact only with data leaving and entering subnets.
What types of sets of rules do NACLs have?
INBOUND rules and OUTBOUND rules
How do NACLs manage multiple rules? Is there any prioritization?
Yes, there is a priority rule.
The lower the rule number, the higher the priority.
What happens when a set of rules is matched by the NACL? Can NACLs consider multiple rules?
No, once a rule is matched, the NACL stops processing for that piece of traffic.
What types of actions can you specify in NACL rules?
(Explicitly) ALLOW or DENY
What fields can you find in NACL rules?
- Type
- Protocol: tcp, udp, icmp
- Port range
- For inbound rules: source
- For outbound rules: destination
What protocols are supported in NACLs?
tcp, udp or icmp
Define protocol and port range for SSH traffic
tcp port 22
Define protocol and port range for http traffic
tcp port 80
Define protocol and port range for https traffic
tcp port 443
Define protocol and port range for ping traffic
icmp, no port
Is there a default rule in NACLs in case no explicit rule sets exist?
Yes, there a rule at the bottom ‘*’, it is the default implicit deny and another rule with number 100 (EXPLICIT ALLOW)
What happens if no rules are matched for given traffic?
A default rule is applied –> Implicit DENY
What is the most important feature of why NACLs are used?
They can EXPLICITLY ALLOW or DENY traffic.
Can the ‘*’ rule or implicit DENY be removed?
No, it can never be removed
Can the default rule #100 or explicit ALLOW be removed or adjusted?
Yes
Are NACLs designed to block traffic by default?
No, they have 2 rules, one Explicit ALLOW and one Implicit DENY. As long as you have the Explicit ALLOW (#100) in your rules, all the traffic will be allowed by default.
What is one of the disadvantages of using NACLs?
They are stateless and each stream of traffic needs to be configured with individual rules (request + response streams)
What data do NACLs filter?
Data crossing subnets