Is there a way to log to file all the outgoing connections that a process creates? I am aware of netstat
but that seems to be more of a snapshot of a point in time rather than something that runs and logs information over a period.
I only need the IP or hostname, port and the process making the connection.
watch -n 2 netstat
in the meantime, but that's not a proper solution, is it. – Ulrich Schwarz Jan 26 '12 at 11:22