NACL's vs Security Groups Flashcards
How many NACL’s can a subnet associate with?
One
What’s the default NACL configuration for a VPC?
Your VPC automatically comes with a modifiable default network ACL.
By default, it ALLOWS ALLl inbound and outbound IPv4 traffic and, if applicable, IPv6 traffic.
What’s the default custom NACL configuration?
You can create a custom network ACL and associate it with a subnet.
By default, each custom network ACL DENIES ALL inbound and outbound traffic until you add rules.
What happens if you don’t explicitly associate a subnet with a NACL?
Each subnet in your VPC must be associated with a network ACL.
If you don’t explicitly associate a subnet with a network ACL, the subnet is automatically associated with the default network ACL.
Can you associate a NACL with multiple subnets?
Can you associate a subnet with multiple NACLs?
You can associate a network ACL with multiple subnets; however, a subnet can be associated with only one network ACL at a time.
When you associate a network ACL with a subnet, the previous association is removed.
How does AWS recommend you number your NACL rules?
A network ACL contains a numbered list of rules evaluated in order, starting with the lowest numbered rule, to determine whether traffic is allowed in or out of any subnet associated with the network ACL. The highest number that you can use for a rule is 32766.
We recommend that you start by creating rules with rule numbers that are multiples of 100, so that you can insert new rules where you need to later on.
Does a NACL have separate in and outbound rules?
Yes
A network ACL has separate inbound and outbound rules, and each rule can either allow or deny traffic.
Are NACL’s stateless?
Network ACLs are stateless; responses to allowed inbound traffic are subject to the rules for outbound traffic (and vice versa).
What do Security Groups act as a firewall for?
EC2 Instances (as long as an instance is associated with a SG)
They control in/out traffic at the instance level
What do Network Access Control Lists act as a firewall for?
Subnets (and so to all instances in the subnets)
they control in/out traffic at the subnet level
What do flow logs do?
Where is their data published to?
Capture information about IP traffic going in/out of the network interfaces in the VPC
Data is published to Cloudwatch Logs
Can you secure VPC instances with only Security Groups , and add NACL’s as a second layer of defense?
yes
Do Security Groups support Allow Rules, Deny Rules or both?
Allow Rules only
Do NACLs support allow rules, deny rules, or both?
Both
Is return traffic automatically allowed for a Security Group
Yes. Because they are stateful