mk-fg / conntrack-logger Goto Github PK
View Code? Open in Web Editor NEWTool to log conntrack flows and associated process/service info
License: Do What The F*ck You Want To Public License
Tool to log conntrack flows and associated process/service info
License: Do What The F*ck You Want To Public License
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.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 :)
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.