Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In a Linux netfilter router, connections table only includes information on end of connections. Where I reach real time rx/tx information for each connection? (In freebsd, session table already provides)

Thank you.

share|improve this question
    
Can you work on improving your question? It isn't very clear. –  Zoredache Nov 16 '12 at 0:14
add comment

1 Answer 1

up vote 0 down vote accepted

I am replying my own question:

The answer is conntrack accounting.

sysctl -w net.netfilter.nf_conntrack_acct=1

tcp 6 299 ESTABLISHED src=144.111.111.11 dst=192.168.1.2 sport=35042 dport=22 packets=585 bytes=41244 src=192.168.1.2 dst=144.111.111.11 sport=22 dport=35042 packets=423 bytes=195796 [ASSURED] mark=0 use=2

Thank you,

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.