Iptables – conntrack -L does not show any connection

conntrackiptables

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?

Best Answer

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

modprobe nf_conntrack
Related Topic