GithubHelp home page GithubHelp logo

mk-fg / conntrack-logger Goto Github PK

View Code? Open in Web Editor NEW
16.0 5.0 7.0 23 KB

Tool to log conntrack flows and associated process/service info

License: Do What The F*ck You Want To Public License

Python 100.00%
conntrack libnetfilter-conntrack netlink-sockets python cffi network-monitoring linux auditing

conntrack-logger's People

Contributors

mk-fg avatar mpontillo avatar simeonmiteff avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

conntrack-logger's Issues

No accounting fields in event handler

While testing on Ubuntu enabled conntrack with accounting module.
I see the event using conntrack -E with bytes and packets field.
However, when using conntrack logger, such information is not present in the event xml (all flags enabled in the generator)
Any possible hint?

Best regards,
Zied

nfct_logger crashes on start up.

./nfct_logger.py -p tcp
python: api.c:306: nfct_callback_register2: Assertion `h != ((void *)0)' failed.
Aborted (core dumped)

That's a permission issue. running with sudo solved the issue.
I suggest testing for the appropriate permissions and not crashing :)

Failed to parse event data (on Ubuntu "Xenial" 16.04)

I see intermittent parse failures when I run this on Ubuntu 16.04, such as the following:

ERROR:root:Failed to parse event data: <flow type="new"><meta direction="original"><layer3 protonum="2" protoname="ipv4"><src>192.168.0.2</src><dst>1.75.7.178</dst></layer3><layer4 protonum="6" protoname="tcp"><sport>33367</sport><dport>80</dport></layer4></meta><meta direction="reply"><layer3 protonum="2" protoname="ipv4"><src>1.75.7.178</src><dst>1.2.4.5</dst></layer3><layer4 protonum="6" protoname="tcp"><sport>80</sport><dport>33367</dport></layer4></meta><meta direction="independent"><state>SYN_SENT</state><timeout>120</timeout><id>501034516</id><unreplied/></meta><when><hour>21</hour><min>39</min><sec>50</sec><wday>3</wday><day>11</day><month>7</month><year>2017</year></when></flow>

I haven't had a chance to triage further; will update this issue if I do.

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.