VPC Traffic Mirroring
What You'll Learn
You'll learn how to create a copy of network traffic flowing through your virtual network for security analysis and troubleshooting without affecting actual traffic.
The Core Concept
VPC Traffic Mirroring is like installing a hidden camera on your network highway. It creates an exact copy of network packets (inbound and outbound traffic) from specific instances and sends that copy to monitoring tools for deep inspection — all without slowing down or interrupting your production traffic.
Think of it as a "tap" on a network wire: the original traffic flows normally to its destination, while a duplicate stream goes to your security or monitoring appliance for analysis.
How It Works
Traffic Mirroring involves three components:
- Source: The elastic network interface (ENI) you want to monitor
- Target: Where the copied traffic goes (another instance, network load balancer, or gateway endpoint running inspection tools)
- Filter: Rules defining which traffic to copy (all traffic, specific protocols, or certain port ranges)
Common Use Cases
- Security monitoring: Detect intrusions, malware, or suspicious patterns using intrusion detection systems (IDS)
- Compliance auditing: Capture evidence of network activity for regulatory requirements
- Troubleshooting: Diagnose network issues by analyzing actual packet contents
- Performance analysis: Study traffic patterns without adding overhead to production workloads
Unlike VPC Flow Logs (which capture metadata about connections), Traffic Mirroring copies the actual packet contents, enabling deep packet inspection (DPI) tools to see inside application data.
Key Takeaway: VPC Traffic Mirroring creates non-intrusive copies of network traffic from selected instances, sending them to specialized monitoring appliances for security analysis and troubleshooting without impacting production performance.