Ec2 instance in private subnet can send outbound traffic without NAT gateway

0

Hi Team,

Could you please let me know if Ec2 instance in private subnet can send outbound traffic without NAT gateway.

Regards, Rajesh B

已提問 1 年前檢視次數 2012 次
3 個答案
0

For private subnets, access to the public Internet requires a NAT gateway or NAT instance.
Other outbound traffic (e.g., communications within a VPC) can communicate without a NAT gateway.
Access to AWS services (e.g. S3) requires a VPC endpoint or NAT gateway.

profile picture
專家
已回答 1 年前
0

You can use NAT instance, see the difference between the two solutions:

NAT Gateway Vs NAT Instance:

https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-comparison.html

You can also deploy Squid Proxy for internet outgoing access control.

Reference: https://aws.amazon.com/es/blogs/security/how-to-set-up-an-outbound-vpc-proxy-with-domain-whitelisting-and-content-filtering/

profile pictureAWS
專家
已回答 1 年前
0

It depends what you mean by "outbound". Previous answers have covered IPv4 traffic going directly from your subnet to the general internet or to AWS services. Also IPv6 traffic may use an egress-only IPv6 gateway to reach the internet from a private subnet. And outbound traffic could go via direct-connect or site-to-site VPN to go through an on-prem proxy on the way to the internet or just to reach on-prem servers.

專家
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南