Skip to content

Dockerization of CICFlowMeter, with an entry point to accept command line parameters when running the container.

License

Notifications You must be signed in to change notification settings

hamelin/cicflowmeter-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CICFlowMeter over Docker

This project provides code for building a Docker image for CICFlowMeter, a PCAP-to-flow conversion tool from the Canadian Institute for Cybersecurity. Once built, the entry point for the image admits three ways for running the container, depending on command line parameters:

  1. bash or no parameter -- Runs the bash shell into the container instance. Great for inspecting the container's runtime environment.
  2. sh -- Same as above, but running the lesser-featured sh shell. Just because.
  3. Other parameters -- Used as input and output paths for the Cmd class's main method. The former should either be a PCAP file or a folder container PCAP files; the latter is the directory where flow files are written.

Naturally, this container is most useful when bind-mounting directories containing your files, or as base for an ad hoc Docker image.

Building

docker build [-t <image tag you choose>] .

Running

Let's assume the image was built with tag cfm.

Computing flows from packet capture files:

docker run --rm \
    -v <path to folder with pcap files>:/pcap \
    -v <path to output foler>:/flow \
    cfm /pcap /flow

Interactive shell:

docker run --rm -ti cfm bash

About

Dockerization of CICFlowMeter, with an entry point to accept command line parameters when running the container.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published