Coder Social home page Coder Social logo

docker-pcap's People

Contributors

flyingklop avatar hsychla avatar kiliandargel avatar korroot avatar ksputo avatar mgumz avatar tlnd avatar wfailla avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-pcap's Issues

Support multiple interfaces

Capturing multiple interfaces should be supported, i.e. a list of interfaces is passed as config in environment and each of the interfaces is captured.

Two options:
a) One capture file per interface
b) One capture file with traffic of all interfaces

Replacing tcpdump with dumpcap might be helpful.

Allow extended filters

As tshark is used now, extended filter syntax can be used (tshark read filter). It should be allowed to pass an extended filter as option to the container in addition to the pcap filter. The pcap filter should always be applied for efficiency. The extended filter should only apply if given as argument.

Filter is only applied to last interface

From dumpcap man page regarding -f <capture filter>:

This option can occur multiple times. If used before the first occurrence of the -i option, it sets the default capture filter expression. If used after an -i option, it sets the capture filter expression for the interface specified by the last -i option occurring before this option. If the capture filter expression is not set specifically, the default capture filter expression is used if provided.

Hence, the filter expression must precede the interfaces. Having different filters per interface must not be supported by this container, IMHO. If I want to trace different stuff on different interface, I would run this container several times.

Add option for snaplen

It should be possible to truncate captured packets by supporting the -s <snaplen> option.

Support duration option

In addition to MAXFILESIZE and MAXFILENUM , also the duration option of tshark (also availbale in dumpcap) should be supported. Capture files can rotate on e.g. daily, even if not filled up.

Support "interval" option

In latest manual the capture rotation option -b also supports an interval option to extend the duration attribute and streamline the rotation of file, i.e. to always rotate at 00:00 and 12:00.

Update the dumpcap/tshark to a version supporting this feature.

Wrong filesize unit

While tcpdump used MB as unit, tshark is using kB. Hence, at present the MAXFILESIZE parameter is not applied correctly. That parameter should stick to MB, but the tshark parameter must be set accordingly.

Configurable filename prefix

The file prefix to be used should be configurable.

If capture files from different hosts are collected, there is a name clash at present, so all files need to be manually renamed. Configuring a filename prefix would already create appropriate names for the capture files.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.