Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 1.32 KB

File metadata and controls

32 lines (27 loc) · 1.32 KB

VPC Flow Logs

  • Essential diagnostic tools for complex networks
  • They only capture packet metadata, they do not capture packet content. For packet content a packet sniffer is required to be installed on an instance
  • Metadata can include: source/destination IP, source/destination ports, packet size, other externally visible metadata, etc.
  • Flow logs can capture data at various different points:
    • Applied to a VPC: all interfaces in that VPC
    • Subnet: every network interface in the subnet only
    • Network interface: only monitor traffic at a specific interface
  • VPC Flow Logs are NOT realtime
  • Flow logs can be configured to use S3 or CloudWatch Logs for the destination

VPC Flow Logs Content

  • <version>
  • <account-id>
  • <interface-id>
  • <srcaddr>: source IP address
  • <dstaddr>: destination IP address
  • <srcport>: source port, 0 if no port is used (example in case of ICMP ping)
  • <dscport>: destination port
  • <protocol>: ICMP=1, TPC=6, UDP=17, etc.
  • <packets>
  • <bytes>
  • <start>
  • <end>
  • <action>: traffic is ACCEPTed or REJECTed
  • <log-status>

Notes

  • VPC Flow Logs do not log all the traffic, things like the communication with the metadata IP (169.254.169.254), AWS time sync server (169.254.169.123), DHCP, Amazon DNS server and Amazon Windows license is not recorded