logging conntrack connection values into log file

Posted by seaquest on Server Fault See other posts from Server Fault or by seaquest
Published on 2011-09-26T20:33:55Z Indexed on 2011/11/20 18:01 UTC
Read the original article Hit count: 287

Filed under:
|

Linux netfilter iptables Conntrack table already has records for bytes and packets on both directions. Is there any way to log those values to a log file while a connection is closing by netfilter.

tcp      6 430619 ESTABLISHED src=192.168.0.145 dst=33.42.42.42 sport=53601 dport=22 packets=66560 bytes=14800077 src=33.42.42.42 dst=192.168.1.2 sport=22 dport=53601 packets=89726 bytes=68403910 [ASSURED] mark=0 use=1

© Server Fault or respective owner

Related posts about iptables

Related posts about conntrack