Several private subnets share a NAT gateway, and flow logs may be enabled only on the NAT gateway's network interface. Investigators must link each outbound connection's original private source address to its final internet destination address, destination port and time window. Which flow log configuration meets these requirements?
Show the answer
Correct answerB. Use custom flow logs with srcaddr, pkt-dstaddr, dstport, start, and end.
AWhy not this: On the gateway interface, dstaddr is the NAT gateway's private IP, not the internet destination.
BWhy this is right: srcaddr gives the instance, and pkt-dstaddr gives the final internet destination of the same packet.
CWhy not this: The default format lacks pkt-dstaddr, so its dstaddr shows only the gateway for instance-side records.
DWhy not this: This format lacks the final destination address and the destination port.
For traffic from an instance to the NAT gateway, the record on the gateway's interface shows the instance's private IP in srcaddr, but dstaddr is the gateway's own private IP. The pkt-dstaddr field holds the final internet destination, so srcaddr with pkt-dstaddr, dstport, start and end links each source to its destination.