ULOG Packet Count

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux