跳至内容

EC2 VPC Block Public Access settings should block internet gateway traffic

0

We have a NAT Gateway configured for our private subnet with a route table entry 0.0.0.0/0 → NAT Gateway. Security Hub recommends enabling the EC2 VPC Block Public Access settings to block Internet Gateway traffic. Will enabling this setting impact our current setup, where private instances access the internet via the NAT Gateway?

已提问 1 年前312 查看次数

1 回答
1

Before blocking the public access you should read this https://aws.amazon.com/blogs/networking-and-content-delivery/vpc-block-public-access/ explaing how it works and what options you have. In short, if you would just block all public access it would also block access via existing NAT gateway (not what you want). But you can block public ingress or make exceptions for resources that need to be accessible from the internet. And don't start with your production VPC but test first somewhere where you can affort some trial & errors.

专家

已回答 1 年前

专家

已审核 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。