netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ULOG Packet Count
@ 2014-02-03 21:40 Sassy Natan
  2014-02-03 22:05 ` Eric Leblond
  0 siblings, 1 reply; 4+ messages in thread
From: Sassy Natan @ 2014-02-03 21:40 UTC (permalink / raw)
  To: Eric Leblond, netfilter-devel

Hi All,


I being trying to understand how to get ulog2 to capture my network
traffic in terms of accounting.

I have setup my ubuntu to work with ulog2 and MySQL, and manage to get
the tables fill up with data.

Howerver, I didn't manage to understand how to get the packet length
so I could calculate the amount of data generated for the specific
service.

In ulogd.conf I configure the following:

stack=log1:NFLOG,base1:BASE,ifi1:IFINDEX,ip2bin1:IP2BIN,mac2str1:HWHDR,mysql1:MYSQL
stack=ct1:NFCT,ip2bin1:IP2BIN,mysql2:MYSQL


Tables ulog2 and ulog2_ct are being populated with the data.
In ulog2_ct I can see a column name orig_bytes and orig_packets but
both of them are always 0.

I google for this and found this
http://mohskitchen.wordpress.com/2012/08/27/accounting-with-ulogd-2-and-conntrack-on-a-gbit-nat/

I'm also aware of nfacct, but haven't find a way to make it work with MySQL.


Any idea?
Thank u



-- 
Regards,

Sassy Natan
972-(05)54-2203702

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-02-03 22:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-03 21:40 ULOG Packet Count Sassy Natan
2014-02-03 22:05 ` Eric Leblond
2014-02-03 22:13   ` Sassy Natan
2014-02-03 22:17     ` Eric Leblond

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).