Firewall in VPC
Firewall in Amazon VPC
ℹ️ Overview of VPC Security
- Amazon VPC provides two main layers of security:
- Security Groups (SG): a firewall at the instance level
- Network Access Control Lists (NACLs): a firewall at the subnet level
🔒 Security Groups
- Act as a virtual firewall for each EC2 instance
- Each instance can be assigned up to 5 Security Groups
- Operate only at the instance level, not the subnet level
- Allow fine-grained control over inbound and outbound traffic
⚠️ Scope of Operation
- Security Groups: apply to individual instances
- Network ACLs: apply to entire subnets
- Both can be combined to create multiple layers of security
💡 Layered Security Architecture
- Network ACLs act as a perimeter firewall
- Security Groups provide fine-grained security for individual resources
- Combining both creates a comprehensive security model