A company is hosting a secure web application on Amazon EC2 instances within a VPC. The security team wants to allow incoming traffic on port (HTTPS) while blocking a specific range of known malicious IP addresses at the boundary before the traffic reaches any EC2 instance. They also need to ensure that the EC2 instances can send outbound response traffic back to clients. Which of the following network security configurations meets these requirements?
- AConfigure a stateless Security Group at the instance level to deny the malicious IP range, and apply a stateful Network ACL at the subnet level to allow inbound HTTPS traffic, which will automatically permit the outbound response traffic.
- BSubmit an AWS Support request to apply a global IP block at the AWS perimeter, as infrastructure edge protection and customer subnet routing configurations are the sole responsibility of AWS under the Shared Responsibility Model.
- Apply a stateful Security Group to the EC2 instances to allow inbound HTTPS traffic, and configure a stateless Network ACL at the subnet level with a rule that denies the malicious IP range and a rule that allows inbound HTTPS traffic along with outbound ephemeral port traffic.Cevap
- DDeploy Amazon Inspector at the subnet boundary to analyze network packets and dynamically modify the instance firewalls to block the malicious IP range.
Cevap
Apply a stateful Security Group to the EC2 instances to allow inbound HTTPS traffic, and configure a stateless Network ACL at the subnet level with a rule that denies the malicious IP range and a rule that allows inbound HTTPS traffic along with outbound ephemeral port traffic.
The correct configuration combines stateful Security Groups at the instance level with stateless Network ACLs at the subnet level. Because Security Groups are stateful, allowing inbound HTTPS traffic on port automatically permits the return outbound traffic. Because Network ACLs are stateless, they require both inbound and outbound rules to allow the connection to succeed, which includes allowing outbound ephemeral port traffic (). Additionally, Network ACLs support explicit deny rules, which makes them the correct choice for blocking a specific malicious IP range at the subnet boundary.
Adım Adım Çözüm
Anahtar Kavram
Stateful Security Groups vs Stateless Network ACLs