Network Access Control List (NACL) Flashcards

1
Q

What are NACLs?

A

They are a type of security filters (like firewalls) that can filter traffic as it enters or leaves a subnet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What traffic can a NACL control/filter?

A

Traffic that enters/leaves a subnet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

To what network conponent are attached?

A

To subnets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Can NACLs be associated with resources?

A

No, they are associated with subnets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Do VPCs have default NACLs associated with them?

A

Yes, they are associated with all subnets of that VPC by default.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What do NACLs do when 2 EC2 instances in a subnet want to communicate?

A

Nothing, because they interact only with data leaving and entering subnets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What types of sets of rules do NACLs have?

A

INBOUND rules and OUTBOUND rules

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do NACLs manage multiple rules? Is there any prioritization?

A

Yes, there is a priority rule.

The lower the rule number, the higher the priority.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What happens when a set of rules is matched by the NACL? Can NACLs consider multiple rules?

A

No, once a rule is matched, the NACL stops processing for that piece of traffic.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What types of actions can you specify in NACL rules?

A

(Explicitly) ALLOW or DENY

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What fields can you find in NACL rules?

A
  1. Type
  2. Protocol: tcp, udp, icmp
  3. Port range
  4. For inbound rules: source
  5. For outbound rules: destination
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What protocols are supported in NACLs?

A

tcp, udp or icmp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Define protocol and port range for SSH traffic

A

tcp port 22

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Define protocol and port range for http traffic

A

tcp port 80

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Define protocol and port range for https traffic

A

tcp port 443

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Define protocol and port range for ping traffic

A

icmp, no port

17
Q

Is there a default rule in NACLs in case no explicit rule sets exist?

A

Yes, there a rule at the bottom ‘*’, it is the default implicit deny and another rule with number 100 (EXPLICIT ALLOW)

18
Q

What happens if no rules are matched for given traffic?

A

A default rule is applied –> Implicit DENY

19
Q

What is the most important feature of why NACLs are used?

A

They can EXPLICITLY ALLOW or DENY traffic.

20
Q

Can the ‘*’ rule or implicit DENY be removed?

A

No, it can never be removed

21
Q

Can the default rule #100 or explicit ALLOW be removed or adjusted?

A

Yes

22
Q

Are NACLs designed to block traffic by default?

A

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.

23
Q

What is one of the disadvantages of using NACLs?

A

They are stateless and each stream of traffic needs to be configured with individual rules (request + response streams)

24
Q

What data do NACLs filter?

A

Data crossing subnets

25
Q

What is a common use for NACLs?

A

Blocking particular things, deny traffic to bad IPs/nets.

26
Q

How many NACLs can you assign to a subnet?

A

Only one at a time.

27
Q

Explain the Priority to process rules when using NACLs

A

NACLs are processed in order starting at the lowest rule number until it gets to the catch all. A rule with a lower rule number will be processed before another rule with a higher rule number.