How can I tell how my NAT gateway is being used and what's behind it?

0

OK.. I inherited a 2 year old configuration. The original creator of a NAT gateway (in US west 1 region) is no longer with the organization. Nobody at the organization can tell me what it is about. We have no other workloads running in this region, so it is a mystery to me why the gateway was even created, and what it might be doing. I am not a hands-on DevOps expert, but understand enough tech to poke around with some guidance. Where do I start? I want to make sure I understand if there is a reason ( a real use case) for this NAT gateway to exist. Thanks for any pointers... Rajiv

Rajiv
已提問 10 個月前檢視次數 1476 次
3 個答案
1

See this blog which walks you through on how to use VPC flow-logs with additional Meta-Data:

https://aws.amazon.com/blogs/aws/learn-from-your-vpc-flow-logs-with-additional-meta-data/

When you create a new VPC Flow Log, in addition to existing fields, you can now choose to add the following meta-data:

pkt-srcaddr : the packet-level IP address of the source. You typically use this field in conjunction with srcaddr to distinguish between the IP address of an intermediate layer through which traffic flows, such as a NAT gateway.

pkt-dstaddr : the packet-level destination IP address, similar to the previous one, but for destination IP addresses.

profile pictureAWS
專家
已回答 10 個月前
profile pictureAWS
專家
已審閱 10 個月前
1

You could also take a look at the CloudWatch metrics that the NAT gateway is sending to see if it is active.

profile pictureAWS
專家
kentrad
已回答 10 個月前
0

NAT GW will be in the Public subnet of this VPC. Check the private subnet in that VPC, then check the routes and find out if the internet access (usually 0.0.0.0/0)is pointed to NAT-abc. If the route is present then the instances in the private subnet is using this NAT to communicate outside.

AWS
PK
已回答 10 個月前

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

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

回答問題指南