Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am writing a utility which will use Conntrack commands to show the connection states. I am a beginner and I wanted to play with the Conntrack before I could start my work. So, when I tried conntrack -L conntrack, I get the output which says there are no flows. But, I do have a telnet and one ssh connection to the machine, which is seen in netstat as in ESTABLISHED state.

I also did tail -f /proc/net/ip_conntrack but didn't see any output.

Am I missing something?

share|improve this question
up vote 0 down vote accepted

If /proc/net/ip_conntrack is empty, you may have conntrack modules not loaded. Try

modprobe nf_conntrack
share|improve this answer
I did lsmod | grep nf_conntrack. It shows that conntrack is loaded already. Do I need to configure firewall or something for this to work? As per my understanding, it is not needed for basic testing. – Gaurav Sinha Oct 19 '11 at 23:29
I dont know how but it started to work, thanks!! – Gaurav Sinha Oct 19 '11 at 23:52

Your Answer


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.