Log of connections

Hi,

Is it possible to see a log of the connections from clients to external targets? The kernel/system logs don't show this.
Something like netstat but for the client connections.
I hope I'm explain what I'm looking for correctly.

I have some targets blocked but I want to see if I have connections to some other IP addresses being used.

thanks

cat /proc/net/nf_conntrack will show all tracked connections, or you can just leave tcpdump running looking for a specific target IP (or subnet)

2 Likes

Brilliant, thank you!