1. Home
  2. Training Library
  3. AWS Networking and Virtual Private Cloud (VPC) (ANS-C01)

AWS Network Firewall vs. Security Groups vs. NACLs

Contents

keyboard_tab
VPC Fundamentals
2
What is a VPC?
PREVIEW2m 25s
VPC Security and Control
VPC Connectivity
VPC Sharing using the AWS Resource Access Manager
Feature Spotlight:

Instructor: Jon Myer

AWS Network Firewall vs. Security Groups vs. NACLs

In this lecture we need to discuss the difference between an AWS Network Firewall, Security Group, and or Network Access Control Lists

An AWS security group is a virtual firewall used to protect AWS instances. Now we can’t say just EC2 instances because Security Groups are used for AWS Services that deploy AWS managed instances to support AWS Managed Services. Wow...a lot of “managed” in that sentence.

Example: AWS Directory Services using EC2 instances to support the service but you can’t access the instances since it’s a managed service.

SG’s (Security Groups) have granular rules for inbound/outbound traffic. By default all outbound traffic is allowed out but you can explicitly deny certain types of outbound traffic. Security groups are considered stateful so traffic that is allowed outbound, will be allowed back inbound since the communication has already been established. If you want to allow other types of inbound traffic where the communication didn’t originate from the instance, then an inbound rule will need to be configured.

What about Network Access Control Lists or what’s typically referred to as NACLs?

NACLs do not protect instances, they only protect the network around the infrastructure. Example: You can govern the access and network traffic to Public or Private Subnets within a VPC utilizing a different set of rules. The default is to allow all traffic to go through because let's face it, Network ACLs are tough to work with and understand if you aren’t used to it.

How does AWS Network Firewall fit into the picture with Security Groups and Network Access Control List. We can easily take Security Groups out of this comparison because they only protect instances. The real comparison is AWS Network Firewall vs NACLs. If you’re looking to fully manage all your VPCs network traffic, setup alerting, logging, handle application traffic, integrate with AWS WAF and AWS Shield using AWS Firewall Manager. My suggestion would be to go with AWS Network Firewalls. 

If not, then it’s probably easier to use NACLs in what I like to call a “set it and forget it” method that provides you VPC security.

Difficulty
Advanced
Duration
2h 44m
Students
174
Ratings
5/5
starstarstarstarstar
Description

In this section of the AWS Certified Advanced Networking - Specialty learning path, we introduce you to the various networking and VPC services currently available in AWS that are relevant to the ANS-C01 exam.

Learning Objectives

  • Identify and describe the various networking services available in AWS
  • Describe how to configure an Amazon Virtual Private Cloud (VPC)
  • Understand how to control network traffic via Security Groups and Network Access Control Lists (NACLs)
  • Describe options for VPC connectivity, subnets, and routing
  • Understand how to share VPC resources using the AWS Resource Access Manager (RAM)
  • Identify how to evaluate the configuration of VPC resources using the VPC Reachability Analyzer

Prerequisites

The AWS Certified Advanced Networking - Specialty certification has been designed for anyone with experience designing, implementing, and operating complex AWS and hybrid networking architectures. Ideally, you’ll also have some exposure to the nuances of AWS networking, particularly regarding the integration of AWS services and AWS security best practices. Many exam questions will require advanced level knowledge of many AWS services, including AWS networking services. The AWS Cloud concepts introduced in this course will be explained and reinforced from the ground up.

About the Author
Students
207448
Labs
1
Courses
211
Learning Paths
163

Stuart has been working within the IT industry for two decades covering a huge range of topic areas and technologies, from data center and network infrastructure design, to cloud architecture and implementation.

To date, Stuart has created 150+ courses relating to Cloud reaching over 180,000 students, mostly within the AWS category and with a heavy focus on security and compliance.

Stuart is a member of the AWS Community Builders Program for his contributions towards AWS.

He is AWS certified and accredited in addition to being a published author covering topics across the AWS landscape.

In January 2016 Stuart was awarded ‘Expert of the Year Award 2015’ from Experts Exchange for his knowledge share within cloud services to the community.

Stuart enjoys writing about cloud technologies and you will find many of his articles within our blog pages.