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.

You are reading Session Management Controller 3.15, an older release. The newest release is 3.17. Go to 3.17

Traffic capturing and exposure

You can configure Session Management Controller (SMC) to capture and send traffic packets as PCAP files. To do so, you must configure dedicated containers to capture traffic in the values.yaml files. Then, the rclone service can send these data to further destinations.

The following example sets up PCAP captures with a shared storage of 30GB, acting on the sx and rf interfaces with different options:

yaml

PCAP capturing setup

For each of the {NAME} interfaces in the pcap.interfaces property, the Helm chart sets up a separate container to gather PCAP files. You can customize it using the pcap.interfaces.{NAME}.{ENV_KEY} environment variables as mentioned in the configuration reference.

Note

Each PCAP container takes a maximum of 0.1 CPU and 128 MB memory.

rclone setup

To publish traffic captured by the PCAP container, enable rclone and pcap, and configure them using environment variables. Use RCLONE_REMOTE_NAME to specify the remote endpoint and RCLONE_REMOTE_PATH to specify the destination path.

rclone is defined generically through the container environment. To find the name of the environment variable that corresponds to a command line option or a config file entry, take the long option name, strip the leading --, change - to _, make upper case, and prepend RCLONE_ or RCLONE_CONFIG_, as explained in the rclone documentationOpens in a new tab.

All available endpoints are described in the official rclone documentationOpens in a new tab. The inotifyOpens in a new tab pattern watches for captures and moves them from the /data/finished directory.

This container example-configuration enables authorisation for SFTP through username and password:

yaml

SFTP can also be authorised using private keys. Setting useSSHkeyFile will look for the secret which name is configured by .Values.rclone.secretName in the appropriate namespace and mount it to /etc/ssh in the container's filesystem. Rclone will look for the file using RCLONE_CONFIG_SFTP_KEY_FILE - environment variable.

yaml

Note that this secret .Values.rclone.secretName is not created automatically when deploying this helm chart, but needs to be manually prepared by the user like so:

bash

This container example-configuration enables authorisation for s3 through access-key and secret-access-key:

yaml

Note that using rclone_move implies that transferred files will be removed from the source path data/finished. This keeps the container's memory-footprint manageable and enables file-cycling. If the process crashes during transfer no garbage data will remain on the destination address and you will notice a Terminated in the container logs. When attempting to push duplicate files they will be removed from the source path but not overwritten/modified on the destination if MD5/SHAOpens in a new tab checksums and file-name are the same on both ends. Be aware this can cause data loss, if you were to lose the access to the data at the destination. Consider testing first using the --dry-run flag.