I want to write a script which runs a command or a bunch of commands to check if connection tracking is enabled. Or if any connection is being tracked. Basically knowing if any iptables rule is added that would track connections or is tracking connections.
Any suggestions? I have been trying out thing with listing tables with iptables list commands but I think there should be a more straightforward way.