I have a LAN behind my Ubuntu Server. I would like to know how many connections there are passing through my server to the internet, including the connections to my server and from my server to the internet.I am using iptables to save connections using the conntrack table. However, this table (using the 'conntrack -L' command) include connections of IP that are currently disconnected, thus, the amount is incorrect. I would like to know the amount of connections that are currently established or open.
How to get the amount of connections that are crossing through my GNU/Linux Server?
ip conntrack