Skip to main content

AWS Traffic Mirroring

i. Prerequisites

  • The Satellite has been successfully installed with the traffic mirroring listener
  • You have noted down the Satellite's Elastic Network Interface (target ENI) ID
  • You have noted down the Source Elastic Network Interface (source ENI) ID, usually the Load Balancer ENI
  • The Satellite is reachable from the source where you are mirroring traffic from

Setup Levo CLI with AWS credentials

ii. Create Mirroring Session Using Levo CLI

In order to create the traffic mirroring in AWS, you have to run:

levo mirror create

The CLI will ask for some inputs. First it will ask for the Elastic Network Interface resource id of the source instance from which you want to mirror the traffic.

? What is the source Network Interface resource id? [your-source-eni-for-traffic-mirroring]
Getting source mirroring details...

Then the CLI will ask for the Elastic Network Interface resource ID of the target Satellite instance you want to mirror the traffic to:

? What is the target Network Interface resource id? [eni-for-satellite-running-traffic-listener]
Getting source mirroring details...
Initializing traffic mirroring... creating traffic mirroring filter if necessary.
Looking for an existing traffic mirror target...
Looking for eni-*********** in us-west-2

Then it will ask you to name the traffic mirroring session so you can identify it.

? How do you want to name the mirroring session? [your-mirroring-session-name]
Creating traffic mirroring session...

Done. Now traffic should be mirrored from your source network interface into the Levo satellite.

iii. List Mirroring Sessions Using Levo CLI

foo@bar:~$ levo mirror list
my-mirroring-session-1
my-mirroring-session-2
my-mirroring-session-3

iv. Delete a Mirroring Session Using Levo CLI

foo@bar:~$ levo delete my-mirroring-session-1
Session successfully deleted!