For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

Configure PCAP capturing

Configuring PCAP collection using Kubernetes objects allows you to manage the entire setup in a centralized and declarative way. To do so, you must create and configure these two Kubernetes Custom Resources (CRs):

  • NetCaptureStorage - specifies the storage location for collected PCAP files
  • NetCaptureJob - defines the traffic capture configuration, including the source interface, start time and duration of traffic capture, and destinations

The configuration below is a simplified example that shows how to set up traffic capturing with NetCap. For a complete description of available configuration options, read About PCAP capturing.

Depending on your preference, you can configure PCAP collection using either Cennso Management Console (CMC) or CLI.

Set a storage location

First, create a NetCaptureStorage object to configure a storage where PCAP files will be stored:

  1. Go to Cennso Management → Network Applications → + New, and choose the NetCapture Storage tile.
  2. In the Metadata tab of the form, provide the name for your NetCapture Storage instance. You can also specify Kubernetes labelsOpens in a new tab and annotationsOpens in a new tab.
  3. Switch to the Specification tab and choose a storage type for your PCAPs: local, SFTP, or S3. Provide a path if you choose local storage (PCAPs saved on the NetCap Sink pod), or the necessary connection parameters if using SFTP or S3. NetCap supports all the rclone connection parameters. For the full set of fields, refer to the rclone SFTP documentationOpens in a new tab or rclone S3 documentationOpens in a new tab.
  4. Click Create.

Note

If you do not specify a destination in the Specification tab, by default PCAPs will be stored on the local disc in the Kubernetes Worker node where the NetCap Sink is running. The default path is /root/dumps.

For more details on the NetCaptureStorage configuration, see the dedicated sections:

Provide traffic capture configuration

Now that you configured the storage for PCAPs, you can specify other PCAP configuration options using NetCaptureJob:

  1. Go to Cennso Management → Network Applications → + New, and choose the NetCapture Job tile.
  2. In the Metadata tab of the form, provide the name for your NetCapture Job instance. You can also specify Kubernetes labelsOpens in a new tab and annotationsOpens in a new tab.
  3. Switch to the Specification tab and fill out the form:
    • In the Cluster field, choose the cluster to which this configuration should be applied.
    • In the Selector field, specify a name and a namespaces of the VPP pod to target.
    • In the Capture time schedule section, choose whether your traffic capture should occur one-time or periodically. For a one-time capture, specify the start and end time. For a periodic capture, define the schedule and duration.
    • In the Traffic stream source section, specify whether you want to capture traffic passing through the specified interface, or based on the specified IMSI. Here you can also provide all the configuration options you would like to apply to your traffic capture.
    • In the Traffic stream destination section, provide parameters that define a PCAP file and storage information including a reference to the NetCaptureStorage object created before.
  4. Click Create.

See the NetCaptureJob status

You can see the status of your NetCaptureJob to check if the stream was created successfully, packets were captured and forwarded, and whether any errors occurred during stream or destination setup.

To see the NetCaptureJob status:

  1. Go to Cennso Management → Network Applications and choose your NetCaptureJob from the list of resources.
  2. The status of the selected NetCaptureJob is visible on the Overview → Status tab.
  3. Click Details to see detailed information about NetCaptureJob.

Next steps

As a next step, you can inspect a live view of captured traffic using Wireshark. See the Observe real-time traffic in Wireshark document for more details.